Use font sizes in Style.qml in FileProviderSettings
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 15 Jan 2024 09:14:52 +0000 (17:14 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 19 Feb 2024 14:45:23 +0000 (22:45 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/macOS/ui/FileProviderSettings.qml
src/gui/macOS/ui/FileProviderSyncStatus.qml

index 5083b76162e3e440714f9a7c061d39ed0e6f165c..f3844f2458c2026eed75c2ad72b158d284aa2f91 100644 (file)
@@ -70,7 +70,7 @@ Page {
             Layout.fillWidth: true
             text: qsTr("General settings")
             font.bold: true
-            font.pointSize: root.font.pointSize + 2
+            font.pointSize: Style.subheaderFontPtSize
             elide: Text.ElideRight
         }
 
@@ -131,7 +131,7 @@ Page {
                     Layout.topMargin: Style.standardSpacing
                     text: qsTr("Advanced")
                     font.bold: true
-                    font.pointSize: root.font.pointSize + 2
+                    font.pointSize: Style.subheaderFontPtSize
                     elide: Text.ElideRight
                 }
 
index f9b2024358566e2bde4e08f17801690293a63f77..8a898d30c556b0b01ba42b05e468dddbf93ec263 100644 (file)
@@ -29,15 +29,6 @@ GridLayout {
 
     rows: syncStatus.syncing ? 2 : 1
 
-    EnforcedPlainTextLabel {
-        Layout.row: 0
-        Layout.column: 1
-        Layout.columnSpan: root.syncStatus.syncing ? 2 : 1
-        Layout.fillWidth: true
-        font.bold: true
-        text: root.syncStatus.syncing ? qsTr("Syncing") : qsTr("All synced!")
-    }
-
     NCBusyIndicator {
         id: syncIcon
 
@@ -54,6 +45,16 @@ GridLayout {
         running: root.syncStatus.syncing
     }
 
+    EnforcedPlainTextLabel {
+        Layout.row: 0
+        Layout.column: 1
+        Layout.columnSpan: root.syncStatus.syncing ? 2 : 1
+        Layout.fillWidth: true
+        font.bold: true
+        font.pointSize: Style.headerFontPtSize
+        text: root.syncStatus.syncing ? qsTr("Syncing") : qsTr("All synced!")
+    }
+
     ProgressBar {
         Layout.row: 1
         Layout.column: 1