statusbar: Cleanup and fix audio indicator not showing

This commit is contained in:
Devin Lin 2023-03-18 19:52:35 -07:00
parent 1449ea7b4e
commit b0d45d8409
6 changed files with 8 additions and 22 deletions

View file

@ -9,7 +9,7 @@ QtObject {
property SinkModel paSinkModel: SinkModel {}
// whether the audio icon should be visible in the status bar
readonly property bool isVisible: paSinkModel.preferredSink && paSinkModel.preferredSink.muted
readonly property bool isVisible: paSinkModel.preferredSink
// the icon that should be displayed in the status bar
readonly property string icon: paSinkModel.preferredSink && !isDummyOutput(paSinkModel.preferredSink)

View file

@ -176,7 +176,6 @@ Item {
function evaluateAnimChange() {
// only animate if homescreen is visible
console.log('EVAL');
if (!WindowPlugin.WindowMaximizedTracker.showingWindow || WindowPlugin.WindowUtil.activeWindowIsShell) {
itemContainer.zoomIn();
} else {

View file

@ -54,7 +54,6 @@ Item {
property bool disableSystemTray: false
property alias colorScopeColor: icons.backgroundColor
property alias applets: appletIconsRow
readonly property real textPixelSize: 11
readonly property real smallerTextPixelSize: 9
@ -162,15 +161,6 @@ Item {
}
}
// applet indicators
RowLayout {
id: appletIconsRow
Layout.leftMargin: root.elementSpacing
Layout.fillHeight: true
spacing: root.elementSpacing
visible: children.length > 0
}
// system indicators
RowLayout {
id: indicators
@ -179,25 +169,30 @@ Item {
spacing: root.elementSpacing
Indicators.SignalStrengthIndicator {
Layout.fillHeight: true
showLabel: false
visible: root.showTime
internetIndicator: internetIndicatorItem
Layout.fillHeight: true
Layout.preferredWidth: height
}
Indicators.BluetoothIndicator {
Layout.fillHeight: true
Layout.preferredWidth: height
}
Indicators.InternetIndicator {
id: internetIndicatorItem
Layout.fillHeight: true
Layout.preferredWidth: height
}
Indicators.VolumeIndicator {
Layout.fillHeight: true
Layout.preferredWidth: height
}
Indicators.BatteryIndicator {
spacing: root.elementSpacing
textPixelSize: root.textPixelSize
Layout.fillHeight: true
Layout.preferredWidth: height
}
}
}

View file

@ -19,11 +19,8 @@ PlasmaCore.IconItem {
readonly property var provider: DataProviders.BluetoothInfo {}
source: provider.icon
source: "network-bluetooth" // provider.icon
colorGroup: PlasmaCore.ColorScope.colorGroup
visible: provider.isVisible
Layout.fillHeight: true
Layout.preferredWidth: height
}

View file

@ -41,9 +41,6 @@ PlasmaCore.IconItem {
source: icon
colorGroup: PlasmaCore.ColorScope.colorGroup
Layout.fillHeight: true
Layout.preferredWidth: height
PlasmaComponents.BusyIndicator {
id: connectingIndicator

View file

@ -18,8 +18,6 @@ PlasmaCore.IconItem {
id: paIcon
readonly property var provider: DataProviders.AudioInfo {}
Layout.fillHeight: true
Layout.preferredWidth: height
source: provider.icon
colorGroup: PlasmaCore.ColorScope.colorGroup