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>
This commit is contained in:
Dirk Hohndel 2020-12-22 16:17:57 -08:00
parent bae1529fb7
commit bda1f0b6e1

View file

@ -60,11 +60,10 @@ ComboBox {
} }
background: Rectangle { background: Rectangle {
border.color: subsurfaceTheme.darkerPrimaryColor border.color: cb.focus ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.backgroundColor
border.width: cb.visualFocus ? 2 : 1 border.width: cb.visualFocus ? 2 : 1
color: subsurfaceTheme.backgroundColor color: Qt.darker(subsurfaceTheme.backgroundColor, 1.1)
radius: 2 radius: 2
visible: cb.focus
} }
popup: Popup { popup: Popup {