Branch: master

4bdcac90 2015-06-29 14:49:25 Timothy Pearson
Add theme file option to scale icons
Disable icon scaling by default
This relates to Bug 2009
M src/thememoodin.cpp
M src/thememoodin.h
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 @@
   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 @@
       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 8e7a835..a10f306 100644
--- a/src/thememoodin.h
+++ b/src/thememoodin.h
@@ -78,6 +78,7 @@
   bool mUsersBackground;
   bool mTranslate;
   bool mLineUpImages;
+  bool mScaleIcons;
   bool mKubuntuStyle;
   int mAnimationLength;
   int mAnimationDelay;