ui: Added checkbox to enable/disable animations to preferences

This commit is contained in:
Eberhard Graether
2017-01-09 21:32:59 +01:00
parent 757f728f98
commit cee8a52ca4
7 changed files with 30 additions and 3 deletions
+10
View File
@@ -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");
+3
View File
@@ -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;