summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2015-06-29 14:48:59 -0500
committerMichele Calgaro <[email protected]>2015-09-05 00:15:38 +0900
commit123691e9763aae93217910610d8f25ab2ddf11b3 (patch)
tree2d7ea5773287e93c787ff721311556e50dbf4056
parent1ffd7de051798f2283b0f8947fd1fe9e8e70bb9b (diff)
downloadksplash-engine-moodin-123691e9763aae93217910610d8f25ab2ddf11b3.tar.gz
ksplash-engine-moodin-123691e9763aae93217910610d8f25ab2ddf11b3.zip
Add theme file option to scale iconsr14.0.3r14.0.2
Disable icon scaling by default This relates to Bug 2009 (cherry picked from commit 4bdcac90265e9f7489bc8f48746e9c020182a1a9) Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--src/thememoodin.cpp3
-rw-r--r--src/thememoodin.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/thememoodin.cpp b/src/thememoodin.cpp
index 2ad557c..b87b92a 100644
--- a/src/thememoodin.cpp
+++ b/src/thememoodin.cpp
@@ -85,6 +85,7 @@ void ThemeMoodin::readSettings()
mBaseResolution = cfg->readSizeEntry("BaseResolution", new TQSize(1280, 1024));
mTranslate = cfg->readBoolEntry("Translate", true);
mLineUpImages = cfg->readBoolEntry("LineUpImages", false);
+ mScaleIcons = cfg->readBoolEntry("ScaleIcons", false);
mKubuntuStyle = cfg->readBoolEntry("KubuntuStyle", false);
// so we can centre icons, JRiddell
@@ -273,7 +274,7 @@ void ThemeMoodin::initEffectWidgets()
TQPixmap* px = new TQPixmap(DesktopIcon(*it, mIconSetSize));
image = new TQImage(px->convertToImage());
// JRiddell don't scale icons
- if (!mKubuntuStyle) {
+ if (!mKubuntuStyle && mScaleIcons) {
mScaler->scaleSize(image);
}
}
diff --git a/src/thememoodin.h b/src/thememoodin.h
index 605368c..bea5d2f 100644
--- a/src/thememoodin.h
+++ b/src/thememoodin.h
@@ -78,6 +78,7 @@ private:
bool mUsersBackground;
bool mTranslate;
bool mLineUpImages;
+ bool mScaleIcons;
bool mKubuntuStyle;
int mAnimationLength;
int mAnimationDelay;