aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-22 16:10:07 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-23 09:44:39 -0800
commitbae1529fb777d39c13c634b3650dba14fafc522b (patch)
tree68c3e66d682ce62641d71145aae0ddb1ee22d7ea /mobile-widgets
parentd9661a7be8c5ecfd0daf7c907ec85d7c6c68c19b (diff)
downloadsubsurface-bae1529fb777d39c13c634b3650dba14fafc522b.tar.gz
mobile/UI: repaint the combobox indicator on color change
It seems that now all elements are correctly re-colored if the user changes theme. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/TemplateComboBox.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/mobile-widgets/qml/TemplateComboBox.qml b/mobile-widgets/qml/TemplateComboBox.qml
index 6ecf80bac..1546f7a3e 100644
--- a/mobile-widgets/qml/TemplateComboBox.qml
+++ b/mobile-widgets/qml/TemplateComboBox.qml
@@ -29,12 +29,13 @@ ComboBox {
width: Kirigami.Units.gridUnit
height: width * 0.66
contextType: "2d"
-
Connections {
target: cb
function onPressedChanged() { canvas.requestPaint(); }
}
-
+ // if the theme changes, we need to force a repaint of the indicator
+ property color sttc: subsurfaceTheme.textColor
+ onSttcChanged: { requestPaint() }
onPaint: {
context.reset();
context.moveTo(0, 0);