mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
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.
This commit is contained in:
parent
00cbee6985
commit
979c436b6c
1 changed files with 3 additions and 1 deletions
|
@ -67,6 +67,8 @@ UM.TooltipArea
|
||||||
font: UM.Theme.getFont("fixed")
|
font: UM.Theme.getFont("fixed")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
|
selectionColor: UM.Theme.getColor("text_selection")
|
||||||
|
selectedTextColor: UM.Theme.getColor("text")
|
||||||
wrapMode: TextEdit.NoWrap
|
wrapMode: TextEdit.NoWrap
|
||||||
|
|
||||||
onActiveFocusChanged:
|
onActiveFocusChanged:
|
||||||
|
@ -91,7 +93,7 @@ UM.TooltipArea
|
||||||
}
|
}
|
||||||
if (gcodeTextArea.hovered || gcodeTextArea.activeFocus)
|
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")
|
return UM.Theme.getColor("border_field_light")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue