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

List:       kde-commits
Subject:    [gcompris/KDE/0.60] src/core: add highContrast button theme
From:       Bruno Coudoin <bruno.coudoin () gcompris ! net>
Date:       2016-07-02 7:32:41
Message-ID: E1bJFPt-0003Xz-93 () code ! kde ! org
[Download RAW message or body]

Git commit 1508e67b58eb6a058c70dc909d15b0d396a0ee0f by Bruno Coudoin, on \
behalf of Timothée Giet. Committed on 01/07/2016 at 21:35.
Pushed by bcoudoin into branch 'KDE/0.60'.

add highContrast button theme

add highContrast button theme, for GCDialog

M  +10   -1    src/core/GCButtonStyle.qml
M  +2    -0    src/core/GCDialog.qml

http://commits.kde.org/gcompris/1508e67b58eb6a058c70dc909d15b0d396a0ee0f

diff --git a/src/core/GCButtonStyle.qml b/src/core/GCButtonStyle.qml
index e9a9bc7..c0aef0c 100644
--- a/src/core/GCButtonStyle.qml
+++ b/src/core/GCButtonStyle.qml
@@ -42,7 +42,7 @@ ButtonStyle {
 
     /**
      * type:string
-     * theme of the button. For now, two themes are accepted: "light" and \
"dark" +     * theme of the button. For now, three themes are accepted: \
                "light" and "dark" and "highContrast"
      *
      * Default is dark.
     */
@@ -73,6 +73,15 @@ ButtonStyle {
             selectedColorGradient1: "#803ACAFF",
             borderColor: "white",
             textColor: "white"
+        },
+        "highContrast": {
+            backgroundColorGradient0: "#EEFFFFFF",
+            selectedColorGradient0: "#C03ACAFF",
+            backgroundColorGradient1: "#AAFFFFFF",
+            selectedColorGradient1: "#803ACAFF",
+            borderColor: "white",
+            textColor: "373737"
+            
         }
     }
 
diff --git a/src/core/GCDialog.qml b/src/core/GCDialog.qml
index a7c2793..7b9cfcc 100644
--- a/src/core/GCDialog.qml
+++ b/src/core/GCDialog.qml
@@ -181,6 +181,7 @@ Item {
                 topMargin: 10
             }
             style: GCButtonStyle {
+                theme: "highContrast"
             }
             visible: text != ""
             onClicked: {
@@ -199,6 +200,7 @@ Item {
                 topMargin: 10
             }
             style: GCButtonStyle {
+                theme: "highContrast"
             }
             visible: text != ""
             onClicked: {


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

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