Add theme file option to scale icons

Disable icon scaling by default
This relates to Bug 2009
pull/1/head
Timothy Pearson 9 years ago
parent 4abbb950f3
commit 4bdcac9026

@ -85,6 +85,7 @@ void ThemeMoodin::readSettings()
mBaseResolution = cfg->readSizeEntry("BaseResolution", new TQSize(1280, 1024)); mBaseResolution = cfg->readSizeEntry("BaseResolution", new TQSize(1280, 1024));
mTranslate = cfg->readBoolEntry("Translate", true); mTranslate = cfg->readBoolEntry("Translate", true);
mLineUpImages = cfg->readBoolEntry("LineUpImages", false); mLineUpImages = cfg->readBoolEntry("LineUpImages", false);
mScaleIcons = cfg->readBoolEntry("ScaleIcons", false);
mKubuntuStyle = cfg->readBoolEntry("KubuntuStyle", false); mKubuntuStyle = cfg->readBoolEntry("KubuntuStyle", false);
// so we can centre icons, JRiddell // so we can centre icons, JRiddell
@ -273,7 +274,7 @@ void ThemeMoodin::initEffectWidgets()
TQPixmap* px = new TQPixmap(DesktopIcon(*it, mIconSetSize)); TQPixmap* px = new TQPixmap(DesktopIcon(*it, mIconSetSize));
image = new TQImage(px->convertToImage()); image = new TQImage(px->convertToImage());
// JRiddell don't scale icons // JRiddell don't scale icons
if (!mKubuntuStyle) { if (!mKubuntuStyle && mScaleIcons) {
mScaler->scaleSize(image); mScaler->scaleSize(image);
} }
} }

@ -78,6 +78,7 @@ private:
bool mUsersBackground; bool mUsersBackground;
bool mTranslate; bool mTranslate;
bool mLineUpImages; bool mLineUpImages;
bool mScaleIcons;
bool mKubuntuStyle; bool mKubuntuStyle;
int mAnimationLength; int mAnimationLength;
int mAnimationDelay; int mAnimationDelay;

Loading…
Cancel
Save