feat: rename Game Bar to Quickpanel and support DMS 2.0
This commit is contained in:
27 files changed
+158
-145
No files matched your search
@@ -2,7 +2,7 @@ import QtQuick
|
||||
import Quickshell
|
||||
import qs.Common
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.DCommon.Widgets
|
||||
|
||||
Item {
|
||||
id: control
|
||||
@@ -48,7 +48,7 @@ Item {
|
||||
daemon.ensureBrightnessMap();
|
||||
}
|
||||
|
||||
DankIcon {
|
||||
DIcon {
|
||||
id: icon
|
||||
|
||||
anchors.left: parent.left
|
||||
@@ -66,7 +66,7 @@ Item {
|
||||
color: control.usable ? Theme.primary : Theme.surfaceVariantText
|
||||
}
|
||||
|
||||
DankSlider {
|
||||
DSlider {
|
||||
id: slider
|
||||
|
||||
anchors.left: icon.right
|
||||
@@ -103,7 +103,7 @@ Item {
|
||||
color: Theme.surfaceVariantText
|
||||
}
|
||||
|
||||
DankTooltipV2 {
|
||||
DTooltipV2 {
|
||||
id: tooltip
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import Quickshell
|
||||
import Quickshell.Services.Pipewire
|
||||
import qs.Common
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.DCommon.Widgets
|
||||
|
||||
DankFlickable {
|
||||
DFlickable {
|
||||
id: deviceList
|
||||
|
||||
property bool isSink: true
|
||||
@@ -70,7 +70,7 @@ DankFlickable {
|
||||
border.color: isActive ? Theme.primary : Theme.outlineLight
|
||||
border.width: isActive ? 2 : Theme.layerOutlineWidth
|
||||
|
||||
DankIcon {
|
||||
DIcon {
|
||||
id: deviceIcon
|
||||
|
||||
anchors.left: parent.left
|
||||
@@ -81,7 +81,7 @@ DankFlickable {
|
||||
color: deviceItem.isActive ? Theme.primary : Theme.surfaceText
|
||||
}
|
||||
|
||||
DankIcon {
|
||||
DIcon {
|
||||
id: activeCheck
|
||||
|
||||
anchors.right: parent.right
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
import qs.DCommon.Widgets
|
||||
|
||||
Item {
|
||||
id: row
|
||||
@@ -17,7 +17,7 @@ Item {
|
||||
|
||||
readonly property int sliderMaximum: Math.max(100, maxPercent)
|
||||
|
||||
// DankSlider assigns its own `value` while dragging, which breaks a declarative
|
||||
// DSlider assigns its own `value` while dragging, which breaks a declarative
|
||||
// binding, so the slider is synced imperatively whenever the node volume changes.
|
||||
function syncSlider() {
|
||||
slider.value = Math.min(row.sliderMaximum, row.percent);
|
||||
@@ -47,7 +47,7 @@ Item {
|
||||
radius: width / 2
|
||||
color: muteArea.containsMouse ? Theme.primaryHover : "transparent"
|
||||
|
||||
DankIcon {
|
||||
DIcon {
|
||||
anchors.centerIn: parent
|
||||
name: (row.muted || row.percent === 0) ? row.mutedIcon : row.activeIcon
|
||||
size: Theme.iconSize
|
||||
@@ -81,7 +81,7 @@ Item {
|
||||
color: row.muted ? Theme.surfaceVariantText : Theme.surfaceText
|
||||
}
|
||||
|
||||
DankSlider {
|
||||
DSlider {
|
||||
id: slider
|
||||
|
||||
anchors.left: muteButton.right
|
||||
|
||||
Reference in new issue
Block a user