Browse Source

Set selection color of textfields

CURA-8947
Jaime van Kessel 3 years ago
parent
commit
c528616d12

+ 2 - 1
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

+ 1 - 0
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],