From 606ec587fe627945108d93dd23b1e39417d51904 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Wed, 6 Jan 2021 11:51:29 +0100 Subject: [PATCH] Change the row height in the table view CURA-7868 --- resources/qml/TableView.qml | 5 +++-- resources/themes/cura-light/theme.json | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/qml/TableView.qml b/resources/qml/TableView.qml index b2ebee51c9..dd80304b83 100644 --- a/resources/qml/TableView.qml +++ b/resources/qml/TableView.qml @@ -13,7 +13,7 @@ OldControls.TableView { itemDelegate: Item { - height: tableCellLabel.implicitHeight + UM.Theme.getSize("thin_margin").height + height: tableCellLabel.implicitHeight Label { @@ -29,7 +29,8 @@ OldControls.TableView rowDelegate: Rectangle { - color: styleData.selected ? UM.Theme.getColor("toolbar_button_hover") : UM.Theme.getColor("main_background") + color: styleData.selected ? UM.Theme.getColor("secondary") : UM.Theme.getColor("main_background") + height: UM.Theme.getSize("table_row").height } // Use the old styling technique since it's the only way to make the scrollbars themed in the TableView diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index 7bb8156458..e897969a5e 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -630,6 +630,8 @@ "monitor_external_link_icon": [1.16, 1.16], "monitor_column": [18.0, 1.0], "monitor_progress_bar": [16.5, 1.0], - "monitor_margin": [1.5, 1.5] + "monitor_margin": [1.5, 1.5], + + "table_row": [2.0, 2.0] } }