summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/TemplateComboBox.qml
AgeCommit message (Collapse)Author
2021-01-01mobile UI: avoid circular dependencyGravatar Dirk Hohndel
The relevant text field names are different depending on whether our combo box is editable or not. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-12-23mobile/UI: open dropdown on any tap for readonly combo boxGravatar Dirk Hohndel
This seems more intuitive. For editable combo boxes you need to tap on the indicator, but for non-editable (readonly) ones, you can tap anywhere and the dropdown is shown. The code feels a bit clumsy, but seems to work in all cases. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-12-23mobile/UI: slight visual change to combo boxesGravatar Dirk Hohndel
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>
2020-12-23mobile/UI: repaint the combobox indicator on color changeGravatar Dirk Hohndel
It seems that now all elements are correctly re-colored if the user changes theme. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-12-23mobile UI: make TemplateComboBox selectively editableGravatar Dirk Hohndel
Getting the visual right is really hard. The anchors seem to mostly work, but it still doesn't look exactly right, IMHO. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-12-20mobile/UI: remove incorrect code in ComboBoxGravatar Dirk Hohndel
This actually created a recursive dependency - I didn't see any negative visual effect, but lots of annoying warnings. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-12-20mobile/UI: correctly theme combo boxesGravatar Dirk Hohndel
Again, the fact that you basically need to completely reimplement the ComboBox in order to change some colors is frustrating. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-01-30mobile-widgets: do not use fontmetric for heightGravatar jan Iversen
In order to remove fontMetrics from QML, replace references (height) in DownloadFromDiveComputer and Settings Add include kirigami as needed Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-01-25mobile-widgets/qml: correct reference in TemplateComboBoxGravatar jan Iversen
theme is not available, use older subsurfaceTheme. Signed-off-by: jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets/qml: add TemplateComboBoxGravatar jan Iversen
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateComboBox allows central change of how labels are presented in the UI. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>