Change the row height in the table view

CURA-7868
This commit is contained in:
Kostas Karmas 2021-01-06 11:51:29 +01:00
parent adcdf7bad9
commit 606ec587fe
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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]
}
}