ActiveWindow + MediaMini: width boosted to 6%
This commit is contained in:
parent
87425efa88
commit
73541eec49
2 changed files with 8 additions and 7 deletions
|
|
@ -33,17 +33,18 @@ RowLayout {
|
||||||
|
|
||||||
readonly property bool showIcon: (widgetSettings.showIcon !== undefined) ? widgetSettings.showIcon : widgetMetadata.showIcon
|
readonly property bool showIcon: (widgetSettings.showIcon !== undefined) ? widgetSettings.showIcon : widgetMetadata.showIcon
|
||||||
|
|
||||||
// 5% of total width
|
// 6% of total width
|
||||||
readonly property real minWidth: Math.max(1, screen.width * 0.05)
|
readonly property real minWidth: Math.max(1, screen.width * 0.06)
|
||||||
readonly property real maxWidth: minWidth * 2
|
readonly property real maxWidth: minWidth * 2
|
||||||
Layout.alignment: Qt.AlignVCenter
|
|
||||||
spacing: Style.marginS * scaling
|
|
||||||
visible: getTitle() !== ""
|
|
||||||
|
|
||||||
function getTitle() {
|
function getTitle() {
|
||||||
return CompositorService.focusedWindowTitle !== "(No active window)" ? CompositorService.focusedWindowTitle : ""
|
return CompositorService.focusedWindowTitle !== "(No active window)" ? CompositorService.focusedWindowTitle : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
spacing: Style.marginS * scaling
|
||||||
|
visible: getTitle() !== ""
|
||||||
|
|
||||||
function getAppIcon() {
|
function getAppIcon() {
|
||||||
// Try CompositorService first
|
// Try CompositorService first
|
||||||
const focusedWindow = CompositorService.getFocusedWindow()
|
const focusedWindow = CompositorService.getFocusedWindow()
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,8 @@ RowLayout {
|
||||||
readonly property string visualizerType: (widgetSettings.visualizerType !== undefined && widgetSettings.visualizerType
|
readonly property string visualizerType: (widgetSettings.visualizerType !== undefined && widgetSettings.visualizerType
|
||||||
!== "") ? widgetSettings.visualizerType : widgetMetadata.visualizerType
|
!== "") ? widgetSettings.visualizerType : widgetMetadata.visualizerType
|
||||||
|
|
||||||
// 5% of total width
|
// 6% of total width
|
||||||
readonly property real minWidth: Math.max(1, screen.width * 0.05)
|
readonly property real minWidth: Math.max(1, screen.width * 0.06)
|
||||||
readonly property real maxWidth: minWidth * 2
|
readonly property real maxWidth: minWidth * 2
|
||||||
|
|
||||||
function getTitle() {
|
function getTitle() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue