Skip to content

Commit 72c419c

Browse files
committed
Resize view icons for Cura 4.11
This makes the line widths match up better
1 parent 03cf3b9 commit 72c419c

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

resources/qml/OpenFileButton411.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Button
3939
anchors.centerIn: parent
4040
width: parent.width - UM.Theme.getSize("default_margin").width
4141
height: parent.height - UM.Theme.getSize("default_margin").height
42-
source: UM.Theme.getIcon("load")
42+
source: UM.Theme.getIcon("Folder", "medium")
4343
color: UM.Theme.getColor("icon")
4444

4545
sourceSize.height: height

resources/qml/ViewOptionsPanel.qml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,19 @@ Rectangle
6262
anchors.left: parent.left
6363
anchors.leftMargin: UM.Theme.getSize("default_margin").width - 2 * UM.Theme.getSize("default_lining").width
6464

65-
Cura.ViewOrientationControls {}
65+
Cura.ViewOrientationControls
66+
{
67+
Component.onCompleted:
68+
{
69+
if(!isLE410)
70+
{
71+
for(var child_nr in children)
72+
{
73+
children[child_nr].iconMargin = 3 * UM.Theme.getSize("default_lining").width
74+
}
75+
}
76+
}
77+
}
6678

6779
UM.SimpleButton
6880
{

0 commit comments

Comments
 (0)