diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-11-27 09:56:12 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-11-27 11:37:11 +0000 |
commit | 7031e85adf44355b56a5ec740ab26a7eb3d8f740 (patch) | |
tree | 87e198e88ead8d1b94567ce0bfcea71d99b847e3 /src/imports/controls/ToolButton.qml | |
parent | bb807b32b7e85bc4ae5c2d2b7c627e0e2bde90ff (diff) |
Remove Theme
Given the presence of alternative styles, we'd like to focus on making
the default style as performant as possible. Removing Theme usage
is a step towards this.
Change-Id: I8f76dc98442e6c02703885591a44758f40c7a362
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/ToolButton.qml')
-rw-r--r-- | src/imports/controls/ToolButton.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/imports/controls/ToolButton.qml b/src/imports/controls/ToolButton.qml index ecaad9a0..17fd03c5 100644 --- a/src/imports/controls/ToolButton.qml +++ b/src/imports/controls/ToolButton.qml @@ -35,7 +35,6 @@ ****************************************************************************/ import QtQuick 2.6 -import Qt.labs.controls 1.0 import Qt.labs.templates 1.0 as T T.ToolButton { @@ -58,7 +57,7 @@ T.ToolButton { text: control.text font: control.font - color: control.enabled ? control.Theme.textColor : control.Theme.disabledColor + color: control.enabled ? "#26282a" : "#c2c2c2" elide: Text.ElideRight horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter @@ -70,7 +69,7 @@ T.ToolButton { implicitWidth: 26 implicitHeight: 26 - color: Qt.darker(control.Theme.pressColor, control.checkable && control.checked ? 1.5 : 1.0) + color: Qt.darker("#33333333", control.checkable && control.checked ? 1.5 : 1.0) opacity: control.pressed ? 1.0 : control.checkable && control.checked ? 0.5 : 0 visible: control.pressed || (control.checkable && control.checked) } |