mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kcontrol: enable Katie effects based on Katana graphics effect level
note that the only way to set EffectsEnabled, EffectFadeMenu, EffectFadeTooltip and EffectAnimateCombo was manually (by editing the ~/.katana/share/config/kdeglobals config file) because there is no GUI for those config options but there is for the graphics effects level Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
020b15b996
commit
2266ab6cba
1 changed files with 4 additions and 5 deletions
|
@ -131,11 +131,10 @@ static void applyQtSettings( KSharedConfigPtr kglobalcfg, QSettings& settings )
|
||||||
settings.setValue("Qt/font", KGlobalSettings::generalFont().toString());
|
settings.setValue("Qt/font", KGlobalSettings::generalFont().toString());
|
||||||
|
|
||||||
/* export effects settings */
|
/* export effects settings */
|
||||||
KConfigGroup kdeCfgGroup(kglobalcfg, "General");
|
bool effectsEnabled = (KGlobalSettings::graphicEffectsLevel() > KGlobalSettings::NoEffects);
|
||||||
bool effectsEnabled = kdeCfgGroup.readEntry("EffectsEnabled", false);
|
bool fadeMenus = (KGlobalSettings::graphicEffectsLevel() >= KGlobalSettings::ComplexAnimationEffects);
|
||||||
bool fadeMenus = kdeCfgGroup.readEntry("EffectFadeMenu", false);
|
bool fadeTooltips = (KGlobalSettings::graphicEffectsLevel() >= KGlobalSettings::ComplexAnimationEffects);
|
||||||
bool fadeTooltips = kdeCfgGroup.readEntry("EffectFadeTooltip", false);
|
bool animateCombobox = (KGlobalSettings::graphicEffectsLevel() >= KGlobalSettings::SimpleAnimationEffects);
|
||||||
bool animateCombobox = kdeCfgGroup.readEntry("EffectAnimateCombo", false);
|
|
||||||
|
|
||||||
QStringList guieffects;
|
QStringList guieffects;
|
||||||
if (effectsEnabled) {
|
if (effectsEnabled) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue