like a rainbow.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816090
This commit is contained in:
parent
8e9bd0ff09
commit
b4dc4d9e75
|
@ -273,6 +273,10 @@ QColor Theme::color(ColorRole role) const
|
||||||
return colorScheme.foreground(KColorScheme::NormalText).color();
|
return colorScheme.foreground(KColorScheme::NormalText).color();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case HighlightColor:
|
||||||
|
return colorScheme.background(KColorScheme::ActiveBackground).color();
|
||||||
|
break;
|
||||||
|
|
||||||
case BackgroundColor:
|
case BackgroundColor:
|
||||||
return colorScheme.background().color();
|
return colorScheme.background().color();
|
||||||
break;
|
break;
|
||||||
|
|
1
theme.h
1
theme.h
|
@ -56,6 +56,7 @@ class PLASMA_EXPORT Theme : public QObject
|
||||||
enum ColorRole
|
enum ColorRole
|
||||||
{
|
{
|
||||||
TextColor = 0 /**< the text color to be used by items resting on the background */,
|
TextColor = 0 /**< the text color to be used by items resting on the background */,
|
||||||
|
HighlightColor = 1 /**< the text higlight color to be used by items resting on the background */,
|
||||||
BackgroundColor /**< the default background color */
|
BackgroundColor /**< the default background color */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user