Use pre-calculated control height

It's way faster to not re-compute every single time
This commit is contained in:
Jaime van Kessel 2020-07-10 14:34:02 +02:00
parent d1afc63902
commit e633b6408e
No known key found for this signature in database
GPG Key ID: 3710727397403C91
2 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,7 @@ Item
{ {
id: settingControls id: settingControls
height: Math.round(parent.height / 2) height: UM.Theme.getSize("section_control").height
spacing: Math.round(UM.Theme.getSize("thick_margin").height / 2) spacing: Math.round(UM.Theme.getSize("thick_margin").height / 2)
anchors anchors

View File

@ -502,6 +502,7 @@
"extruder_icon": [2.33, 2.33], "extruder_icon": [2.33, 2.33],
"section": [0.0, 2], "section": [0.0, 2],
"section_control": [0, 1],
"section_icon": [1.6, 1.6], "section_icon": [1.6, 1.6],
"section_icon_column": [2.8, 0.0], "section_icon_column": [2.8, 0.0],
"rating_star": [1.0, 1.0], "rating_star": [1.0, 1.0],