mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 07:25:53 +08:00
Change TableView row color and text color when the row is selected
CURA-8066
This commit is contained in:
parent
87d3f6fd22
commit
547698cffc
@ -18,7 +18,7 @@ OldControls.TableView
|
|||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: tableCellLabel
|
id: tableCellLabel
|
||||||
color: UM.Theme.getColor("text")
|
color: styleData.selected ? UM.Theme.getColor("primary_button_text") : UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: styleData.value
|
text: styleData.value
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@ -29,7 +29,7 @@ OldControls.TableView
|
|||||||
|
|
||||||
rowDelegate: Rectangle
|
rowDelegate: Rectangle
|
||||||
{
|
{
|
||||||
color: styleData.selected ? UM.Theme.getColor("secondary") : UM.Theme.getColor("main_background")
|
color: styleData.selected ? UM.Theme.getColor("primary_button") : UM.Theme.getColor("main_background")
|
||||||
height: UM.Theme.getSize("table_row").height
|
height: UM.Theme.getSize("table_row").height
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user