summaryrefslogtreecommitdiffstats
path: root/qml/MyMenuItemStyle.qml
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2012-05-18 16:46:51 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2012-05-18 16:46:51 +0200
commit9ec0a5761f9a75884d5f55130b6661247a3b15cf (patch)
tree0860b850c223022c2be3fb2a348a63a2ef238935 /qml/MyMenuItemStyle.qml
parentf932a86631105b6dff7c48708f0f62ca4417a43d (diff)
Switchable theme (Dark or Light).
Diffstat (limited to 'qml/MyMenuItemStyle.qml')
-rw-r--r--qml/MyMenuItemStyle.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/qml/MyMenuItemStyle.qml b/qml/MyMenuItemStyle.qml
index 2fd1539..6cfe161 100644
--- a/qml/MyMenuItemStyle.qml
+++ b/qml/MyMenuItemStyle.qml
@@ -65,8 +65,8 @@ Style {
property string position: ""
- property url background: "images/meegotouch-list-inverted-background" + (position ? "-" + position : "") + ".png"
- property url pressedBackground: "images/meegotouch-list-inverted-background-pressed" + (position ? "-" + position : "") + ".png"
+ property url background: theme.inverted ? ("images/meegotouch-list-inverted-background" + (position ? "-" + position : "") + ".png") : ("image://theme/meegotouch-list-background" + (position ? "-" + position : ""))
+ property url pressedBackground: theme.inverted ? ("images/meegotouch-list-inverted-background-pressed" + (position ? "-" + position : "") + ".png") : ("image://theme/meegotouch-list-background-pressed" + (position ? "-" + position : ""))
// TODO: Add disabled state once the graphics are available
// property url disabledBackground: "image://theme/meegotouch-list" + __invertedString + "-background-disabled" + (position ? "-" + position : "")
}