ui: Added checkbox to enable/disable animations to preferences
This commit is contained in:
@@ -89,6 +89,16 @@ void ApplicationSettings::setFontSize(int fontSize)
|
||||
setValue<int>("application/font_size", fontSize);
|
||||
}
|
||||
|
||||
bool ApplicationSettings::getUseAnimations() const
|
||||
{
|
||||
return getValue<bool>("application/use_animations", true);
|
||||
}
|
||||
|
||||
void ApplicationSettings::setUseAnimations(bool useAnimations)
|
||||
{
|
||||
setValue<bool>("application/use_animations", useAnimations);
|
||||
}
|
||||
|
||||
FilePath ApplicationSettings::getColorSchemePath() const
|
||||
{
|
||||
FilePath defaultPath(ResourcePaths::getColorSchemesPath() + "bright.xml");
|
||||
|
||||
@@ -41,6 +41,9 @@ public:
|
||||
int getFontSizeStd() const;
|
||||
void setFontSizeStd(const int fontSizeStd);
|
||||
|
||||
bool getUseAnimations() const;
|
||||
void setUseAnimations(bool useAnimations);
|
||||
|
||||
int getWindowBaseWidth() const;
|
||||
int getWindowBaseHeight() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user