ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02171
[Branch ~agateau/plasma-widget-message-indicator/trunk] Rev 131: Use an SVG which matches better with the Plasma theme
------------------------------------------------------------
revno: 131
committer: Aurelien Gateau <aurelien.gateau@xxxxxxxxxxxxx>
branch nick: plasma-widget-message-indicator
timestamp: Fri 2010-08-27 12:48:22 +0200
message:
Use an SVG which matches better with the Plasma theme
added:
icons/
icons/CMakeLists.txt
icons/message-indicator.svgz
modified:
CMakeLists.txt
src/message-indicator.cpp
--
lp:plasma-widget-message-indicator
https://code.launchpad.net/~agateau/plasma-widget-message-indicator/trunk
Your team ayatana-commits is subscribed to branch lp:plasma-widget-message-indicator.
To unsubscribe from this branch go to https://code.launchpad.net/~agateau/plasma-widget-message-indicator/trunk/+edit-subscription
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2010-03-10 09:50:23 +0000
+++ CMakeLists.txt 2010-08-27 10:48:22 +0000
@@ -23,6 +23,7 @@
)
add_subdirectory(src)
+add_subdirectory(icons)
add_subdirectory(tests)
# Packaging
=== added directory 'icons'
=== added file 'icons/CMakeLists.txt'
--- icons/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ icons/CMakeLists.txt 2010-08-27 10:48:22 +0000
@@ -0,0 +1,2 @@
+install(FILES message-indicator.svgz
+ DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/icons/)
=== added file 'icons/message-indicator.svgz'
Binary files icons/message-indicator.svgz 1970-01-01 00:00:00 +0000 and icons/message-indicator.svgz 2010-08-27 10:48:22 +0000 differ
=== modified file 'src/message-indicator.cpp'
--- src/message-indicator.cpp 2010-03-08 10:20:45 +0000
+++ src/message-indicator.cpp 2010-08-27 10:48:22 +0000
@@ -30,8 +30,8 @@
//#define DUMP_MODELS
-static const char* NO_NEW_STUFF_ICON = "mail-unread";
-static const char* NEW_STUFF_ICON = "mail-unread-new";
+static const char* NO_NEW_STUFF_ICON = "normal";
+static const char* NEW_STUFF_ICON = "new";
K_EXPORT_PLASMA_APPLET(message-indicator, MessageIndicator)
@@ -244,7 +244,8 @@
setStatus(status);
// Update icon
- mIconWidget->setIcon(status == Plasma::NeedsAttentionStatus ? NEW_STUFF_ICON : NO_NEW_STUFF_ICON);
+ mIconWidget->setSvg("icons/message-indicator",
+ status == Plasma::NeedsAttentionStatus ? NEW_STUFF_ICON : NO_NEW_STUFF_ICON);
// Update views
if (status == Plasma::PassiveStatus) {