Converted this to a kcm as suggested.  Allows user to change individual theme 
items, save and remove themes.  It's placed under Advanced User Settings.  
Theme items are now read from a file so they can be added or removed without 
changing code.

Export theme button doesn't do anything yet, but most of the code is in place.  
A DBUS interface to directly change the theme would be nice, but I'm content to 
leave this as is until/if that becomes available.

The attached diff is a one line patch for 
workspace/plasma/shells/desktop/backgrounddialog.cpp to refresh the theme 
selection droplist in Desktop Settings each time the dialog is opened.  This is 
necessary to show the customized theme created by the kcm.  Let me know if it's 
ok and I'll commit this patch.

Hopefully this'll be useful and can find a home in 
kdebase/workspace/plasma/tools.

Respect,
Andrew (Jamboarder) Lake
Index: backgrounddialog.cpp
===================================================================
--- backgrounddialog.cpp	(revision 869389)
+++ backgrounddialog.cpp	(working copy)
@@ -506,6 +506,7 @@
     }
 
     // Theme
+    m_themeModel->reload();
     m_theme->setCurrentIndex(m_themeModel->indexOf(Plasma::Theme::defaultTheme()->themeName()));
 
     connect(m_wallpaperMode, SIGNAL(currentIndexChanged(int)), this, SLOT(changeBackgroundMode(int)));
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to