Skip to content

Commit

Permalink
Unify definition of unified seach placeholder views fonts
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Nov 21, 2024
1 parent 1a052a4 commit f7ae025
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/tray/UnifiedSearchPlaceholderView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/gui/tray/UnifiedSearchResultNothingFound.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions theme/Style/Style.qml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ QtObject {
readonly property int unifiedSearchResultSectionItemVerticalPadding: 8
readonly property int unifiedSearchResultNothingFoundHorizontalMargin: 10
readonly property int unifiedSearchInputContainerHeight: 40
readonly property int unifiedSearchPlaceholderViewTitleFontPixelSize: pixelSize * 1.25
readonly property int unifiedSearchPlaceholderViewSublineFontPixelSize: subLinePixelSize * 1.25

readonly property int radioButtonCustomMarginLeftInner: 4
readonly property int radioButtonCustomMarginLeftOuter: 5
Expand Down

0 comments on commit f7ae025

Please sign in to comment.