You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-packaging/opensuse/tdebase/kdm-color-scheme.diff

29 lines
973 B

Index: kdm/kfrontend/kgapp.cpp
===================================================================
--- kdm/kfrontend/kgapp.cpp.orig
+++ kdm/kfrontend/kgapp.cpp
@@ -42,6 +42,7 @@ Foundation, Inc., 51 Franklin Street, Fi
#include <qtimer.h>
#include <qcursor.h>
#include <qpalette.h>
+#include <qfile.h>
#include <stdlib.h> // free(), exit()
#include <unistd.h> // alarm()
@@ -144,7 +145,14 @@ kg_main( const char *argv0 )
if (!_GUIStyle.isEmpty())
app.setStyle( _GUIStyle );
- _colorScheme = locate( "data", "kdisplay/color-schemes/" + _colorScheme + ".kcsrc" );
+ const QString _configColorScheme = _colorScheme;
+
+ if (_useTheme && !_theme.isEmpty())
+ _colorScheme = _theme + "/color.kcsrc";
+
+ if (!QFile::exists(_colorScheme))
+ _colorScheme = locate( "data", "kdisplay/color-schemes/" + _configColorScheme + ".kcsrc" );
+
if (!_colorScheme.isEmpty()) {
KSimpleConfig config( _colorScheme, true );
config.setGroup( "Color Scheme" );