tiny improvements

This commit is contained in:
10r3n20 2022-03-07 16:11:33 +01:00
parent 016cc4e48f
commit 5499a4cc4c
3 changed files with 8 additions and 6 deletions

View file

@ -13,11 +13,12 @@ import "."
Item Item
{ {
id: base id: base
height: enabled ? UM.Theme.getSize("section").height + UM.Theme.getSize("narrow_margin").height: 0 height: enabled ? UM.Theme.getSize("section").height : 0
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
// To avoid overlapping with the scrollBars // To avoid overlapping with the scrollBars
anchors.rightMargin: 2 * UM.Theme.getSize("thin_margin").width //anchors.rightMargin: UM.Theme.getSize("thin_margin").width
property alias contents: controlContainer.children property alias contents: controlContainer.children
property alias hovered: mouse.containsMouse property alias hovered: mouse.containsMouse

View file

@ -180,7 +180,6 @@ Item
ListView ListView
{ {
id: contents id: contents
anchors anchors
{ {
top: filterContainer.bottom top: filterContainer.bottom
@ -218,7 +217,7 @@ Item
{ {
id: delegate id: delegate
width: contents.width - scrollBar.width width: contents.width - (scrollBar.width +UM.Theme.getSize("narrow_margin").width)
Behavior on height { NumberAnimation { duration: 100 } } Behavior on height { NumberAnimation { duration: 100 } }
opacity: enabled ? 1 : 0 opacity: enabled ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } } Behavior on opacity { NumberAnimation { duration: 100 } }

View file

@ -524,9 +524,11 @@
"extruder_icon": [2.5, 2.5], "extruder_icon": [2.5, 2.5],
"section": [0.0, 2], "section": [0.0, 2.5],
"section_header": [0.0, 2.5],
"section_control": [0, 1], "section_control": [0, 1],
"section_icon": [2, 2], "section_icon": [1.5, 1.5],
"section_icon_column": [2.5, 2.5], "section_icon_column": [2.5, 2.5],
"setting": [25.0, 1.8], "setting": [25.0, 1.8],