mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 20:01:33 -07:00
Change TableView row color and text color when the row is selected
CURA-8066
This commit is contained in:
parent
87d3f6fd22
commit
547698cffc
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue