[PATCH] Make shutdown dialog text use theme color.

Aaron J. Seigo aseigo at kde.org
Mon May 19 08:31:18 CEST 2008


On Saturday 17 May 2008, Jamboarder wrote:
> This patch makes the shutdown dialog use the text
> color from the current plasma theme. This fixes text
> colors that conflict with the shutdowndialog.svg used
> by the currently selected theme.
>
> The shutdowndialog background is not correctly
> responding to theme changes but that could be
> addressed in a separate patch.
>
> Ok to commit?

does this:

QColor fntColor = 
Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);

work just as well as this:

QColor fntColor = KColorScheme(QPalette::Active, KColorScheme::View, 
Plasma::Theme::defaultTheme()->colorScheme()).foreground().color();

?

if so, i think the former is a bit clearer; if not, please commit.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080519/7cd2801e/attachment.pgp 


More information about the Panel-devel mailing list