From 547698cffcd55cf60f634832bdcba53919688316 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Fri, 12 Mar 2021 17:30:17 +0100 Subject: [PATCH] Change TableView row color and text color when the row is selected CURA-8066 --- resources/qml/TableView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/TableView.qml b/resources/qml/TableView.qml index dd80304b83..1b084be5a0 100644 --- a/resources/qml/TableView.qml +++ b/resources/qml/TableView.qml @@ -18,7 +18,7 @@ OldControls.TableView Label { id: tableCellLabel - color: UM.Theme.getColor("text") + color: styleData.selected ? UM.Theme.getColor("primary_button_text") : UM.Theme.getColor("text") elide: Text.ElideRight text: styleData.value anchors.fill: parent @@ -29,7 +29,7 @@ OldControls.TableView 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 }