diff options
author | Ghostkeeper <rubend@tutanota.com> | 2022-06-03 11:30:00 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2022-06-03 11:30:17 +0300 |
commit | 979c436b6cf16cb09badc63a3ae375038a14722b (patch) | |
tree | b48fc006d2643c985ad8df270ac81f1a5f76a280 /resources/qml | |
parent | 00cbee698532388314356936a3e4dbb2356bc41c (diff) |
Make text area selection use theme colours
Also fix the highlight colour of the border. The highlight colour was changed in a later design but it was not changed here yet.
Without a theme colour it's going to use the system colours for the highlighting of text, which may be a very light grey that matches the background, making it impossible to see what part of the text is selected.
Hopefully fixes issue #12286.
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/MachineSettings/GcodeTextArea.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/qml/MachineSettings/GcodeTextArea.qml b/resources/qml/MachineSettings/GcodeTextArea.qml index 7791e169c2..d4bc58cdc4 100644 --- a/resources/qml/MachineSettings/GcodeTextArea.qml +++ b/resources/qml/MachineSettings/GcodeTextArea.qml @@ -67,6 +67,8 @@ UM.TooltipArea font: UM.Theme.getFont("fixed") renderType: Text.NativeRendering color: UM.Theme.getColor("text") + selectionColor: UM.Theme.getColor("text_selection") + selectedTextColor: UM.Theme.getColor("text") wrapMode: TextEdit.NoWrap onActiveFocusChanged: @@ -91,7 +93,7 @@ UM.TooltipArea } if (gcodeTextArea.hovered || gcodeTextArea.activeFocus) { - return UM.Theme.getColor("border_main") + return UM.Theme.getColor("text_field_border_active") } return UM.Theme.getColor("border_field_light") } |