[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/devicenotifier
From:       Andre Duffeck <andre () duffeck ! de>
Date:       2008-04-02 12:07:29
Message-ID: 1207138049.269374.357.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 792851 by duffeck:

don't hardcode header color
BUG:160063


 M  +5 -1      devicenotifier.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier.cpp \
#792850:792851 @@ -36,6 +36,7 @@
 #include <KDesktopFile>
 #include <kdesktopfileactions.h>
 #include <KGlobalSettings>
+#include <KColorScheme>
 
 #include <plasma/svg.h>
 #include <plasma/widgets/widget.h>
@@ -47,6 +48,7 @@
 //use for desktop view
 #include <plasma/layouts/boxlayout.h>
 #include <plasma/widgets/icon.h>
+#include <plasma/theme.h>
 
 #include <solid/device.h>
 #include <solid/opticaldisc.h>
@@ -94,7 +96,9 @@
 
     m_hotplugModel = new QStandardItemModel(this);
 
-    QLabel *label = new QLabel(i18n("<font color=\"white\">Recently plugged \
devices:</font>")); +    KColorScheme colorTheme = KColorScheme(QPalette::Active, \
KColorScheme::View, Plasma::Theme::self()->colors()); +    QLabel *label = new \
QLabel(i18n("<font color=\"%1\">Recently plugged devices:</font>", +                  \
colorTheme.foreground(KColorScheme::NormalText).color().name()));  QLabel *icon = new \
                QLabel();
     icon->setPixmap(KIcon("emblem-mounted").pixmap(Plasma::Delegate::ICON_SIZE, \
Plasma::Delegate::ICON_SIZE));  icon->setSizePolicy(QSizePolicy::Fixed, \
QSizePolicy::Fixed);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic