diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-22 13:13:48 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-23 11:54:51 +0000 |
commit | e346ed6f6db3fc0751c02b4b289f344d415cfdc9 (patch) | |
tree | f2ed6f8e0a6c2fd070968d52f9bedacada3399a9 /src | |
parent | e2ec29c6d40a683cd5b05d6ed4f163d81864aa60 (diff) |
Update Default style RadioButton to match new design specs
Change-Id: I35df7eef5ea47dc45d94a5c2c52e436c364a3fe4
Task-number: QTBUG-50993
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/controls/RadioButton.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/controls/RadioButton.qml b/src/imports/controls/RadioButton.qml index f1e10a6c..38a28a7b 100644 --- a/src/imports/controls/RadioButton.qml +++ b/src/imports/controls/RadioButton.qml @@ -60,9 +60,9 @@ T.RadioButton { y: control.topPadding + (control.availableHeight - height) / 2 radius: width / 2 - border.width: 1 - border.color: (control.pressed ? "#26282a" : "#353637") - color: control.pressed ? "#e4e4e4" : "#f6f6f6" + color: control.pressed ? (control.activeFocus ? "#cce0ff" : "#e4e4e4") : "#f6f6f6" + border.width: control.activeFocus ? 2 : 1 + border.color: control.activeFocus ? "#0066ff" : (control.pressed ? "#26282a" : "#353637") Rectangle { x: (parent.width - width) / 2 @@ -70,7 +70,7 @@ T.RadioButton { width: 20 height: 20 radius: width / 2 - color: control.pressed ? "#26282a" : "#353637" + color: control.activeFocus ? "#0066ff" : (control.pressed ? "#26282a" : "#353637") visible: control.checked } } |