1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

qs: large sweep of dead code removals

This commit is contained in:
bbedward
2026-07-26 23:22:22 -04:00
parent bab2078dfd
commit c67b185076
113 changed files with 1467 additions and 3254 deletions
@@ -415,11 +415,24 @@ Item {
}
}
onWheel: wheelEvent => {
if (SettingsData.audioDeviceScrollVolumeEnabled && wheelEvent.x >= deviceMouseArea.width / 2) {
AudioService.handleNodeVolumeWheel(modelData, wheelEvent);
} else {
if (!SettingsData.audioDeviceScrollVolumeEnabled || wheelEvent.x < deviceMouseArea.width / 2) {
wheelEvent.accepted = false;
return;
}
if (!modelData?.audio)
return;
SessionData.suppressOSDTemporarily();
const delta = wheelEvent.angleDelta.y;
if (delta === 0)
return;
const current = Math.round(modelData.audio.volume * 100);
const maxVol = AudioService.getMaxVolumePercent(modelData);
const newVolume = delta > 0 ? Math.min(maxVol, current + AudioService.wheelVolumeStep) : Math.max(0, current - AudioService.wheelVolumeStep);
modelData.audio.muted = false;
modelData.audio.volume = newVolume / 100;
if (modelData === AudioService.sink)
AudioService.playVolumeChangeSoundIfEnabled();
wheelEvent.accepted = true;
}
onClicked: mouse => {
if (mouse.button === Qt.RightButton) {
@@ -451,6 +451,9 @@ Item {
height: width
anchors.centerIn: parent
activePlayer: root.activePlayer
artUrl: TrackArtService.resolvedArtUrl
accentColor: MediaAccentService.accent
cavaService: CavaService
}
}
@@ -522,6 +525,10 @@ Item {
height: 20
anchors.horizontalCenter: parent.horizontalCenter
activePlayer: root.activePlayer
stableLength: MprisController.activePlayerStableLength
accentColor: MediaAccentService.accent
accentTrackColor: MediaAccentService.accentTrack
accentSubtleColor: MediaAccentService.accentSubtle
isSeeking: root.isSeeking
onIsSeekingChanged: root.isSeeking = isSeeking
}
@@ -77,6 +77,9 @@ Card {
height: 80
anchors.centerIn: parent
activePlayer: root.activePlayer
artUrl: TrackArtService.resolvedArtUrl
accentColor: MediaAccentService.accent
cavaService: CavaService
albumSize: 76
animationScale: 1.05
}
@@ -114,6 +117,10 @@ Card {
height: 20
x: -2
activePlayer: root.activePlayer
stableLength: MprisController.activePlayerStableLength
accentColor: MediaAccentService.accent
accentTrackColor: MediaAccentService.accentTrack
accentSubtleColor: MediaAccentService.accentSubtle
isSeeking: root.isSeeking
onIsSeekingChanged: root.isSeeking = isSeeking
}