diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-12-22 16:17:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-23 09:44:39 -0800 |
commit | bda1f0b6e1c8c91fb5a486374759e783b5e5f03b (patch) | |
tree | 6a226ac2f8e71b39d421e15c3a1ce85abc73aa80 /mobile-widgets/qml/TemplateComboBox.qml | |
parent | bae1529fb777d39c13c634b3650dba14fafc522b (diff) | |
download | subsurface-bda1f0b6e1c8c91fb5a486374759e783b5e5f03b.tar.gz |
mobile/UI: slight visual change to combo boxes
They always have a 10% darker background, and show a border if the combo
box has focus. This seems to look reasonably well in all situation we
use them.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/TemplateComboBox.qml')
-rw-r--r-- | mobile-widgets/qml/TemplateComboBox.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mobile-widgets/qml/TemplateComboBox.qml b/mobile-widgets/qml/TemplateComboBox.qml index 1546f7a3e..bd2a81d63 100644 --- a/mobile-widgets/qml/TemplateComboBox.qml +++ b/mobile-widgets/qml/TemplateComboBox.qml @@ -60,11 +60,10 @@ ComboBox { } background: Rectangle { - border.color: subsurfaceTheme.darkerPrimaryColor + border.color: cb.focus ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.backgroundColor border.width: cb.visualFocus ? 2 : 1 - color: subsurfaceTheme.backgroundColor + color: Qt.darker(subsurfaceTheme.backgroundColor, 1.1) radius: 2 - visible: cb.focus } popup: Popup { |