ui: added universal font size setting and shortcuts for changing it
This change adds font size and font family to the ApplicationSettings to have a single point for manipulating them. The font size can also be changed via the menu or the zoomIn and zoomOut shortcuts on all platforms.
This commit is contained in:
@@ -13,6 +13,7 @@ public:
|
||||
virtual ~Settings();
|
||||
|
||||
bool load(const std::string& filePath);
|
||||
void save();
|
||||
void save(const std::string& filePath);
|
||||
void clear();
|
||||
|
||||
@@ -32,6 +33,7 @@ protected:
|
||||
bool setValues(const std::string& key, std::vector<T> values);
|
||||
|
||||
private:
|
||||
std::string m_filePath;
|
||||
std::shared_ptr<ConfigManager> m_config;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user