ActiveWindow + MediaMini: width boosted to 6%

This commit is contained in:
LemmyCook
2025-09-09 08:25:25 -04:00
parent 87425efa88
commit 73541eec49
2 changed files with 8 additions and 7 deletions
+6 -5
View File
@@ -33,17 +33,18 @@ RowLayout {
readonly property bool showIcon: (widgetSettings.showIcon !== undefined) ? widgetSettings.showIcon : widgetMetadata.showIcon
// 5% of total width
readonly property real minWidth: Math.max(1, screen.width * 0.05)
// 6% of total width
readonly property real minWidth: Math.max(1, screen.width * 0.06)
readonly property real maxWidth: minWidth * 2
Layout.alignment: Qt.AlignVCenter
spacing: Style.marginS * scaling
visible: getTitle() !== ""
function getTitle() {
return CompositorService.focusedWindowTitle !== "(No active window)" ? CompositorService.focusedWindowTitle : ""
}
Layout.alignment: Qt.AlignVCenter
spacing: Style.marginS * scaling
visible: getTitle() !== ""
function getAppIcon() {
// Try CompositorService first
const focusedWindow = CompositorService.getFocusedWindow()
+2 -2
View File
@@ -38,8 +38,8 @@ RowLayout {
readonly property string visualizerType: (widgetSettings.visualizerType !== undefined && widgetSettings.visualizerType
!== "") ? widgetSettings.visualizerType : widgetMetadata.visualizerType
// 5% of total width
readonly property real minWidth: Math.max(1, screen.width * 0.05)
// 6% of total width
readonly property real minWidth: Math.max(1, screen.width * 0.06)
readonly property real maxWidth: minWidth * 2
function getTitle() {