internal: rename dcontent -> controlcenter

This commit is contained in:
2 * r + 2 * t 2025-08-05 16:19:58 +10:00
parent 2628ee1c41
commit fb650907a0
11 changed files with 7 additions and 9 deletions

View file

@ -12,7 +12,7 @@ Singleton {
property alias bar: adapter.bar property alias bar: adapter.bar
property alias border: adapter.border property alias border: adapter.border
property alias dashboard: adapter.dashboard property alias dashboard: adapter.dashboard
property alias dcontent: adapter.dcontent property alias controlCenter: adapter.controlCenter
property alias launcher: adapter.launcher property alias launcher: adapter.launcher
property alias notifs: adapter.notifs property alias notifs: adapter.notifs
property alias osd: adapter.osd property alias osd: adapter.osd
@ -36,7 +36,7 @@ Singleton {
property BarConfig bar: BarConfig {} property BarConfig bar: BarConfig {}
property BorderConfig border: BorderConfig {} property BorderConfig border: BorderConfig {}
property DashboardConfig dashboard: DashboardConfig {} property DashboardConfig dashboard: DashboardConfig {}
property DContentConfig dcontent: DContentConfig {} property ControlCenterConfig controlCenter: ControlCenterConfig {}
property LauncherConfig launcher: LauncherConfig {} property LauncherConfig launcher: LauncherConfig {}
property NotifsConfig notifs: NotifsConfig {} property NotifsConfig notifs: NotifsConfig {}
property OsdConfig osd: OsdConfig {} property OsdConfig osd: OsdConfig {}

View file

@ -3,7 +3,7 @@ pragma ComponentBehavior: Bound
import qs.services import qs.services
import qs.config import qs.config
import qs.modules.windowinfo import qs.modules.windowinfo
import qs.modules.detachedcontent import qs.modules.controlcenter
import Quickshell import Quickshell
import Quickshell.Wayland import Quickshell.Wayland
import Quickshell.Hyprland import Quickshell.Hyprland
@ -94,13 +94,11 @@ Item {
} }
Comp { Comp {
id: detachedContent
shouldBeActive: root.detachedMode === "any" shouldBeActive: root.detachedMode === "any"
asynchronous: true asynchronous: true
anchors.centerIn: parent anchors.centerIn: parent
sourceComponent: DetachedContent { sourceComponent: ControlCenter {
screen: root.screen screen: root.screen
active: root.queuedMode active: root.queuedMode
} }

View file

@ -17,8 +17,8 @@ Item {
id: session id: session
} }
implicitWidth: implicitHeight * Config.dcontent.sizes.ratio implicitWidth: implicitHeight * Config.controlCenter.sizes.ratio
implicitHeight: screen.height * Config.dcontent.sizes.heightMult implicitHeight: screen.height * Config.controlCenter.sizes.heightMult
RowLayout { RowLayout {
anchors.fill: parent anchors.fill: parent

View file

@ -115,7 +115,7 @@ Item {
PropertyChanges { PropertyChanges {
expandedLabel.opacity: 1 expandedLabel.opacity: 1
smallLabel.opacity: 0 smallLabel.opacity: 0
background.implicitWidth: Config.dcontent.sizes.expandedNavWidth background.implicitWidth: Config.controlCenter.sizes.expandedNavWidth
background.implicitHeight: icon.implicitHeight + Appearance.padding.normal * 2 background.implicitHeight: icon.implicitHeight + Appearance.padding.normal * 2
item.implicitHeight: background.implicitHeight item.implicitHeight: background.implicitHeight
} }