[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra/krita-sketch-rempt] krita/sketch/qml/components: Allow the user to visualise focus on a bu
From: Dan Leinir Turthra Jensen <admin () leinir ! dk>
Date: 2013-06-11 13:18:46
Message-ID: 20130611131846.EA85BA605A () git ! kde ! org
[Download RAW message or body]
Git commit b962de6f45b98ae94bc208f2c6fab7eff2864f2a by Dan Leinir Turthra J=
ensen.
Committed on 11/06/2013 at 15:04.
Pushed by leinir into branch 'krita-sketch-rempt'.
Allow the user to visualise focus on a button (used by Dialog)
M +16 -0 krita/sketch/qml/components/Button.qml
http://commits.kde.org/calligra/b962de6f45b98ae94bc208f2c6fab7eff2864f2a
diff --git a/krita/sketch/qml/components/Button.qml b/krita/sketch/qml/comp=
onents/Button.qml
index d21ac2e..ff7d69d 100644
--- a/krita/sketch/qml/components/Button.qml
+++ b/krita/sketch/qml/components/Button.qml
@@ -42,6 +42,8 @@ Item {
property bool highlight: false;
property color highlightColor: "transparent";
=
+ property bool hasFocus: false;
+
width: Constants.GridWidth;
height: Constants.GridHeight;
=
@@ -52,6 +54,20 @@ Item {
color: base.highlight && mouse.pressed && base.enabled ? base.high=
lightColor : "transparent";
visible: true
=
+ Rectangle {
+ anchors {
+ left: parent.left;
+ right: parent.right;
+ bottom: parent.bottom;
+ margins: fill.radius / 2;
+ }
+ height: fill.radius / 2;
+ radius: fill.radius / 4;
+ color: base.textColor;
+ visible: base.hasFocus;
+ opacity: 0.3
+ }
+
Image {
id: icon;
anchors.fill: parent;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic