From daff95cb2a46fc5f99ce97fa828de22616aec9e3 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sat, 2 Mar 2013 20:46:09 -0600 Subject: Patch to add GUI controls for the logoff gray fadeaway. Work is needed to provide sliders to control darkness and fade speeds. This partially resolves bug report 258. --- kcontrol/smserver/kcmsmserver.cpp | 2 ++ kcontrol/smserver/smserverconfigdlg.ui | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) (limited to 'kcontrol/smserver') diff --git a/kcontrol/smserver/kcmsmserver.cpp b/kcontrol/smserver/kcmsmserver.cpp index 3aca33508..b81e41c77 100644 --- a/kcontrol/smserver/kcmsmserver.cpp +++ b/kcontrol/smserver/kcmsmserver.cpp @@ -94,6 +94,7 @@ void SMServerConfig::load(bool useDefaults ) c->setGroup("Logout"); dialog->showLogoutStatusDialog->setChecked(c->readBoolEntry("showLogoutStatusDlg", true)); + dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true)); delete c; @@ -123,6 +124,7 @@ void SMServerConfig::save() c->writeEntry("excludeApps", dialog->excludeLineedit->text()); c->setGroup("Logout"); c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked()); + c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked()); c->sync(); delete c; diff --git a/kcontrol/smserver/smserverconfigdlg.ui b/kcontrol/smserver/smserverconfigdlg.ui index 2381a20c2..d222fefa8 100644 --- a/kcontrol/smserver/smserverconfigdlg.ui +++ b/kcontrol/smserver/smserverconfigdlg.ui @@ -54,6 +54,20 @@ Check this option if you want the session manager to display a logout confirmation dialog box. + + + showFancyFadeAway + + + false + + + Show fancy &logout fadeaway + + + Check this option if you want to see a fancy fadeaway when displaying a logout confirmation dialog box. + + offerShutdownCheck @@ -220,6 +234,18 @@ SMServerConfigDlg configChanged() + + confirmLogoutCheck + toggled(bool) + showFancyFadeAway + setEnabled(bool) + + + showFancyFadeAway + toggled(bool) + SMServerConfigDlg + configChanged() + showLogoutStatusDialog toggled(bool) -- cgit v1.2.1