Skip to content

Commit 09b2fa3

Browse files
committed
Improve open button scaling on higher DPI displays
1 parent 5779b3e commit 09b2fa3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

resources/qml/OpenFileButton411.qml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Button
1515
property var fileProviderModel: CuraApplication.getFileProviderModel()
1616

1717
height: UM.Theme.getSize("button").height
18-
width: height + 4 * UM.Theme.getSize("default_lining").width // There's some magic going on here
18+
width: height
1919
onClicked:
2020
{
2121
if (fileProviderModel.count <= 1)
@@ -105,9 +105,6 @@ Button
105105
{
106106
id: openFileButtonMenu
107107

108-
// Ensure that the content is located directly below the headerItem
109-
//y: background.height + base.popupOffset
110-
111108
// Make the content aligned with the rest, using the property contentAlignment to decide whether is right or left.
112109
// In case of right alignment, the 3x padding is due to left, right and padding between the button & text.
113110
y: buttonBackground.height + 2 * UM.Theme.getSize("default_lining").height

0 commit comments

Comments
 (0)