Unify definition of unified seach placeholder views fonts
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 19 Nov 2024 06:53:51 +0000 (14:53 +0800)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 21 Nov 2024 09:13:00 +0000 (10:13 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/tray/UnifiedSearchPlaceholderView.qml
src/gui/tray/UnifiedSearchResultNothingFound.qml
theme/Style/Style.qml

index 10eb94af0489dd6ee1970a9b3e652644c05414ba..692f32c97e07de23956232d00d5ff21e2796595e 100644 (file)
@@ -37,7 +37,7 @@ ColumnLayout {
 
     EnforcedPlainTextLabel {
         text: qsTr("Start typing to search")
-        font.pixelSize: Style.subLinePixelSize * 1.25
+        font.pixelSize: Style.unifiedSearchPlaceholderViewSublineFontPixelSize
         wrapMode: Text.Wrap
         Layout.fillWidth: true
         horizontalAlignment: Text.AlignHCenter
index 175874e57aa3914e6614144a5910162601399696..1cab7fa5d17308ec808d89c1c8855db354fbdff4 100644 (file)
@@ -38,7 +38,7 @@ ColumnLayout {
     EnforcedPlainTextLabel {
         id: unifiedSearchResultsNoResultsLabel
         text: qsTr("No results for")
-        font.pixelSize: Style.subLinePixelSize * 1.25
+        font.pixelSize: Style.unifiedSearchPlaceholderViewSublineFontPixelSize
         wrapMode: Text.Wrap
         Layout.fillWidth: true
         Layout.preferredHeight: Style.trayWindowHeaderHeight / 2
@@ -48,7 +48,7 @@ ColumnLayout {
     EnforcedPlainTextLabel {
         id: unifiedSearchResultsNoResultsLabelDetails
         text: unifiedSearchResultNothingFoundContainer.text
-        font.pixelSize: Style.topLinePixelSize * 1.25
+        font.pixelSize: Style.unifiedSearchPlaceholderViewTitleFontPixelSize
         wrapMode: Text.Wrap
         maximumLineCount: 2
         elide: Text.ElideRight
index 6d63d2898a7055a61bbe80b971a0745ffd8ad006..014fa5a07690ff1ff698899eccedc4e902075e62 100644 (file)
@@ -141,6 +141,8 @@ QtObject {
     readonly property int unifiedSearchResultSectionItemVerticalPadding: 8\r
     readonly property int unifiedSearchResultNothingFoundHorizontalMargin: 10\r
     readonly property int unifiedSearchInputContainerHeight: 40\r
+    readonly property int unifiedSearchPlaceholderViewTitleFontPixelSize: pixelSize * 1.25\r
+    readonly property int unifiedSearchPlaceholderViewSublineFontPixelSize: subLinePixelSize * 1.25\r
 \r
     readonly property int radioButtonCustomMarginLeftInner: 4\r
     readonly property int radioButtonCustomMarginLeftOuter: 5\r