Skip to content

Commit 0ec6b24

Browse files
committed
workaround for a huge button
1 parent 9f5ee9f commit 0ec6b24

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/gui/qml/FolderDelegate.qml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ Pane {
7070
id: notificationButton
7171
spacing: folderSyncPanel.spacing
7272

73+
text: accountSettings.notifications.length
74+
icon.source: OpenCloud.resourcePath("fontawesome", "", enabled)
75+
icon.color: "transparent"
76+
Layout.preferredHeight: manageAccountButton.implicitHeight
77+
// TODO: this is a hack to force our icon engine to not use rediculess dpi scaling
78+
// https://github.com/opencloud-eu/desktop/issues/142
79+
icon.height: 0
80+
icon.width: 0
81+
82+
7383
Dialog {
7484
id: notificationPopup
7585
width: 300
@@ -93,12 +103,6 @@ Pane {
93103
}
94104
}
95105

96-
text: accountSettings.notifications.length
97-
icon.source: OpenCloud.resourcePath("fontawesome", "", enabled)
98-
icon.color: "transparent"
99-
icon.height: 16
100-
icon.width: 16
101-
102106
onClicked: notificationPopup.open()
103107

104108
Keys.onBacktabPressed: {

0 commit comments

Comments
 (0)