Clean up font management

Default to b.userName instead of message->account()
Made font updatable in the Settings dialog with a font dialog
More work on subscription badge loading

Known issues:
  - Font isn't updated in a split until a new message is written in that split
  - When font/font size is changed, old messages don't have their size updated causing weird layout of old messages
This commit is contained in:
Rasmus Karlsson
2017-06-17 11:37:13 +02:00
parent d2cbef9dff
commit 1ecc6ff612
6 changed files with 204 additions and 104 deletions
+5 -6
View File
@@ -12,6 +12,9 @@ class WindowManager;
class Resources
{
EmoteManager &emoteManager;
WindowManager &windowManager;
public:
explicit Resources(EmoteManager &emoteManager, WindowManager &windowManager);
@@ -60,13 +63,9 @@ public:
messages::LazyLoadedImage *buttonTimeout;
struct Channel {
std::string id;
std::map<std::string, BadgeSet> badgeSets;
std::mutex globalMapMutex;
void loadData();
// std::atomic<bool> loaded = false;
bool loaded = false;
};
// channelId