Regenerated
This commit is contained in:
+339
-349
File diff suppressed because it is too large
Load Diff
+7
-17
@@ -2781,14 +2781,14 @@ ShellRoot {
|
||||
// Focus / open the active player app
|
||||
Process {
|
||||
id: focusProc
|
||||
property string cmd: ""
|
||||
command: ["bash", "-c", cmd]
|
||||
command: ["bash", "-c",
|
||||
media.isSpotify
|
||||
? "hyprctl dispatch focuswindow class:^(Spotify)$ 2>/dev/null || spotify &"
|
||||
: "hyprctl dispatch focuswindow class:^(" + media.player.split('.')[0] + ")$ 2>/dev/null || " + media.player.split('.')[0].toLowerCase() + " &"
|
||||
]
|
||||
}
|
||||
|
||||
function focusPlayer() {
|
||||
var cls = media.isSpotify ? "Spotify" : media.player.split(".")[0]
|
||||
var bin = cls.toLowerCase()
|
||||
focusProc.cmd = "hyprctl dispatch focuswindow class:^(" + cls + ")$ 2>/dev/null || " + bin + " &"
|
||||
focusProc.running = true
|
||||
}
|
||||
|
||||
@@ -2803,6 +2803,7 @@ ShellRoot {
|
||||
visible: true
|
||||
implicitWidth: 300
|
||||
implicitHeight: 440
|
||||
property bool isFocused: Window.active
|
||||
color: "transparent"
|
||||
|
||||
Shortcut {
|
||||
@@ -2816,7 +2817,7 @@ ShellRoot {
|
||||
anchors.margins: -2
|
||||
radius: 18
|
||||
z: -1
|
||||
opacity: root.active ? 0 : 1
|
||||
opacity: root.isFocused ? 0 : 1
|
||||
Behavior on opacity {
|
||||
NumberAnimation { duration: 150 }
|
||||
}
|
||||
@@ -3033,17 +3034,6 @@ ShellRoot {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Shuffle mode label
|
||||
Text {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: media.shuffleMode === 1 ? "Shuffle"
|
||||
: media.shuffleMode === 2 ? "Smart Shuffle"
|
||||
: ""
|
||||
color: media.shuffleMode === 2 ? colors.mauve : colors.blue
|
||||
font.pixelSize: 10
|
||||
visible: media.isSpotify && media.shuffleMode !== 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,14 +152,14 @@ ShellRoot {
|
||||
// Focus / open the active player app
|
||||
Process {
|
||||
id: focusProc
|
||||
property string cmd: ""
|
||||
command: ["bash", "-c", cmd]
|
||||
command: ["bash", "-c",
|
||||
media.isSpotify
|
||||
? "hyprctl dispatch focuswindow class:^(Spotify)$ 2>/dev/null || spotify &"
|
||||
: "hyprctl dispatch focuswindow class:^(" + media.player.split('.')[0] + ")$ 2>/dev/null || " + media.player.split('.')[0].toLowerCase() + " &"
|
||||
]
|
||||
}
|
||||
|
||||
function focusPlayer() {
|
||||
var cls = media.isSpotify ? "Spotify" : media.player.split(".")[0]
|
||||
var bin = cls.toLowerCase()
|
||||
focusProc.cmd = "hyprctl dispatch focuswindow class:^(" + cls + ")$ 2>/dev/null || " + bin + " &"
|
||||
focusProc.running = true
|
||||
}
|
||||
|
||||
@@ -174,6 +174,7 @@ ShellRoot {
|
||||
visible: true
|
||||
implicitWidth: 300
|
||||
implicitHeight: 440
|
||||
property bool isFocused: Window.active
|
||||
color: "transparent"
|
||||
|
||||
Shortcut {
|
||||
@@ -187,7 +188,7 @@ ShellRoot {
|
||||
anchors.margins: -2
|
||||
radius: 18
|
||||
z: -1
|
||||
opacity: root.active ? 0 : 1
|
||||
opacity: root.isFocused ? 0 : 1
|
||||
Behavior on opacity {
|
||||
NumberAnimation { duration: 150 }
|
||||
}
|
||||
@@ -404,17 +405,6 @@ ShellRoot {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Shuffle mode label
|
||||
Text {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: media.shuffleMode === 1 ? "Shuffle"
|
||||
: media.shuffleMode === 2 ? "Smart Shuffle"
|
||||
: ""
|
||||
color: media.shuffleMode === 2 ? colors.mauve : colors.blue
|
||||
font.pixelSize: 10
|
||||
visible: media.isSpotify && media.shuffleMode !== 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user