Change default for MakeTransparent to enable only transparent move/resize

by default (we have defaults in 3 places :(  ) and enable the effect
by default.


svn path=/trunk/KDE/kdebase/workspace/; revision=762716
This commit is contained in:
Luboš Luňák 2008-01-17 18:41:21 +00:00
parent caf1627047
commit 6b2566980c
3 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ KWIN_EFFECT( maketransparent, MakeTransparentEffect )
MakeTransparentEffect::MakeTransparentEffect()
{
KConfigGroup conf = effects->effectConfig("MakeTransparent");
decoration = conf.readEntry( "Decoration", 0.7 );
decoration = conf.readEntry( "Decoration", 1.0 );
moveresize = conf.readEntry( "MoveResize", 0.8 );
dialogs = conf.readEntry( "Dialogs", 1.0 );
inactive = conf.readEntry( "Inactive", 1.0 );

View file

@ -103,6 +103,6 @@ X-KDE-PluginInfo-Version=0.1.0
X-KDE-PluginInfo-Category=Appearance
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=false
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-Library=kwin4_effect_builtins
X-Ordering=50

View file

@ -88,7 +88,7 @@ void MakeTransparentEffectConfig::load()
mDecoration->setValue( (int)( conf.readEntry( "Decoration", 1.0 ) * 100 ) );
mMoveResize->setValue( (int)( conf.readEntry( "MoveResize", 0.8 ) * 100 ) );
mDialogs->setValue( (int)( conf.readEntry( "Dialogs", 1.0 ) * 100 ) );
mInactive->setValue( (int)( conf.readEntry( "Inactive", 0.6 ) * 100 ) );
mInactive->setValue( (int)( conf.readEntry( "Inactive", 1.0 ) * 100 ) );
emit changed(false);
}
@ -112,7 +112,7 @@ void MakeTransparentEffectConfig::save()
void MakeTransparentEffectConfig::defaults()
{
kDebug() ;
mDecoration->setValue( 70 );
mDecoration->setValue( 100 );
mMoveResize->setValue( 80 );
mDialogs->setValue( 100 );
mInactive->setValue( 100 );