From c528616d12b9687267849384906028bab3a4d0ef Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 17 Feb 2022 14:39:11 +0100 Subject: [PATCH] Set selection color of textfields CURA-8947 --- resources/qml/Settings/SettingTextField.qml | 3 ++- resources/themes/cura-light/theme.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/qml/Settings/SettingTextField.qml b/resources/qml/Settings/SettingTextField.qml index 9a2930e703..e6afb9e8e3 100644 --- a/resources/qml/Settings/SettingTextField.qml +++ b/resources/qml/Settings/SettingTextField.qml @@ -153,8 +153,9 @@ SettingItem } color: !enabled ? UM.Theme.getColor("setting_control_disabled_text") : UM.Theme.getColor("setting_control_text") + selectedTextColor: UM.Theme.getColor("setting_control_text") font: UM.Theme.getFont("default") - + selectionColor: UM.Theme.getColor("text_selection") selectByMouse: true maximumLength: (definition.type == "str" || definition.type == "[int]") ? -1 : 10 diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index f59231d960..e3812c6f2c 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -183,6 +183,7 @@ "primary_hover": [48, 182, 231, 255], "primary_text": [255, 255, 255, 255], "border": [127, 127, 127, 255], + "text_selection": [156,195, 255, 127], "secondary": [240, 240, 240, 255], "secondary_shadow": [216, 216, 216, 255],