Introduced and used AccentColor constant to be used to personalize the application
authorLuciano Montanaro <mikelima@cirulla.net>
Tue, 9 Aug 2011 12:21:57 +0000 (14:21 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Sun, 21 Aug 2011 12:29:04 +0000 (14:29 +0200)
application/resources/harmattan/qml/PageHeader.qml
application/resources/harmattan/qml/uiconstants.js

index 4aba89f..2a41a15 100644 (file)
@@ -14,8 +14,8 @@ Rectangle {
                 UiConstants.HeaderDefaultHeightLandscape :
                 UiConstants.HeaderDefaultHeightPortrait
     gradient: Gradient {
-        GradientStop { color: mouse.pressed ? "#040" : "#061"; position: 0.0 }
-        GradientStop { color: "#0a2"; position: 1.0 }
+        GradientStop { color: Qt.darker(UiConstants.AccentColor, mouse.pressed ? 1.5 : 1.25); position: 0.0 }
+        GradientStop { color: Qt.lighter(UiConstants.AccentColor, 1.5); position: 1.0 }
     }
 
     TumblerButtonStyle {
index aae9bc2..8f9dc5c 100644 (file)
@@ -15,3 +15,5 @@ const SearchBarDefaultHeight = 80
 
 const HeaderFontPixelSize = 32
 const HeaderFontStyle = "Light"
+
+const AccentColor = "#081"