diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-30 15:19:44 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-31 12:41:05 +0000 |
commit | cb3b2d7dab2f99a559c8dd6d89d43bb81978805d (patch) | |
tree | 33caf5fe10b1262f766edd05fdd68bf81629bc6f /src/imports | |
parent | 96c84ff5cfdbaf819357a0f05c21fbbb891095ef (diff) |
Update Default style SpinBox to match new design specs
Change-Id: Ic1c8c678f24d2c17d34c1ea7df82bd92806e29b9
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/controls/SpinBox.qml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/imports/controls/SpinBox.qml b/src/imports/controls/SpinBox.qml index d3184626..68e2a437 100644 --- a/src/imports/controls/SpinBox.qml +++ b/src/imports/controls/SpinBox.qml @@ -65,18 +65,30 @@ T.SpinBox { //! [contentItem] contentItem: TextInput { + z: 2 text: control.textFromValue(control.value, control.locale) font: control.font color: "#353637" - selectionColor: "#fddd5c" - selectedTextColor: color + selectionColor: "#0066ff" + selectedTextColor: "#ffffff" horizontalAlignment: Qt.AlignHCenter verticalAlignment: Qt.AlignVCenter readOnly: !control.editable validator: control.validator inputMethodHints: Qt.ImhFormattedNumbersOnly + + Rectangle { + x: -6 - (down.indicator ? 1 : 0) + y: -6 + width: control.width - (up.indicator ? up.indicator.width - 1 : 0) - (down.indicator ? down.indicator.width - 1 : 0) + height: control.height + visible: control.activeFocus + color: "transparent" + border.color: "#0066ff" + border.width: 2 + } } //! [contentItem] |