More spacing fixes
This commit is contained in:
parent
de72236fe5
commit
9dfac69e9e
6 changed files with 14 additions and 27 deletions
|
|
@ -19,7 +19,6 @@ Item {
|
|||
property int sectionWidgetIndex: -1
|
||||
property int sectionWidgetsCount: 0
|
||||
|
||||
|
||||
property var widgetMetadata: BarWidgetRegistry.widgetMetadata[widgetId]
|
||||
property var widgetSettings: {
|
||||
if (section && sectionWidgetIndex >= 0) {
|
||||
|
|
@ -53,18 +52,8 @@ Item {
|
|||
visible: getTitle() !== ""
|
||||
|
||||
function calculatedVerticalHeight() {
|
||||
// Base height for the background rectangle
|
||||
let total = Math.round(Style.capsuleHeight * scaling)
|
||||
|
||||
// Add padding for the container margins
|
||||
total += Style.marginM * scaling * 2 // Top and bottom margins
|
||||
|
||||
// Add space for icon if shown
|
||||
if (showIcon) {
|
||||
total += Style.fontSizeL * scaling * 1.2 + Style.marginS * scaling
|
||||
}
|
||||
|
||||
return total
|
||||
// Use standard widget height like other widgets
|
||||
return Math.round(Style.capsuleHeight * scaling)
|
||||
}
|
||||
|
||||
function calculatedHorizontalWidth() {
|
||||
|
|
@ -222,8 +211,8 @@ Item {
|
|||
Item {
|
||||
id: verticalLayout
|
||||
anchors.centerIn: parent
|
||||
width: parent.width - Style.marginM * scaling * 2
|
||||
height: parent.height - Style.marginM * scaling * 2
|
||||
width: parent.width - Style.marginXS * scaling * 2
|
||||
height: parent.height - Style.marginXS * scaling * 2
|
||||
visible: barPosition === "left" || barPosition === "right"
|
||||
|
||||
// Window icon
|
||||
|
|
|
|||
|
|
@ -221,4 +221,4 @@ Rectangle {
|
|||
PanelService.getPanel("calendarPanel")?.toggle(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ Item {
|
|||
return {}
|
||||
}
|
||||
|
||||
|
||||
readonly property string barPosition: Settings.data.bar.position
|
||||
|
||||
readonly property bool showAlbumArt: (widgetSettings.showAlbumArt !== undefined) ? widgetSettings.showAlbumArt : widgetMetadata.showAlbumArt
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ Item {
|
|||
|
||||
total = visibleCount * Math.round(Style.capsuleHeight * scaling)
|
||||
total += Math.max(visibleCount - 1, 0) * Style.marginXS * scaling
|
||||
total += Style.marginM * scaling * 2 // padding
|
||||
total += Style.marginXS * scaling * 2 // minimal padding to match other widgets
|
||||
|
||||
return total
|
||||
}
|
||||
|
|
@ -329,7 +329,7 @@ Item {
|
|||
id: verticalLayout
|
||||
anchors.centerIn: parent
|
||||
width: Math.round(32 * scaling)
|
||||
height: parent.height - Style.marginM * scaling * 2
|
||||
height: parent.height - Style.marginXS * scaling * 2
|
||||
spacing: Style.marginXS * scaling
|
||||
visible: barPosition === "left" || barPosition === "right"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Item {
|
|||
property string section: ""
|
||||
property int sectionWidgetIndex: -1
|
||||
property int sectionWidgetsCount: 0
|
||||
|
||||
|
||||
property var widgetMetadata: BarWidgetRegistry.widgetMetadata[widgetId]
|
||||
property var widgetSettings: {
|
||||
if (section && sectionWidgetIndex >= 0) {
|
||||
|
|
@ -31,7 +31,6 @@ Item {
|
|||
return {}
|
||||
}
|
||||
|
||||
|
||||
readonly property string barPosition: Settings.data.bar.position
|
||||
|
||||
readonly property string labelMode: (widgetSettings.labelMode !== undefined) ? widgetSettings.labelMode : widgetMetadata.labelMode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue