Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostas Karmas <konskarm@gmail.com>2021-01-06 13:51:29 +0300
committerKostas Karmas <konskarm@gmail.com>2021-01-06 13:51:29 +0300
commit606ec587fe627945108d93dd23b1e39417d51904 (patch)
treeb56a39627ea8f9f7dd513abb8cbb3b9cb99534ab
parentadcdf7bad9b202c6bad8130615cd7b07bc8db21f (diff)
Change the row height in the table view
CURA-7868
-rw-r--r--resources/qml/TableView.qml5
-rw-r--r--resources/themes/cura-light/theme.json4
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]
}
}