feat: update osd for volume
This commit is contained in:
1 parent
bb0ff9089f
commit
4d56835ade
4 files changed
+153
-75
No files matched your search
@@ -39,7 +39,7 @@ PanelWindow {
|
||||
id: container
|
||||
// Sized appropriately for a 2560x1440 screen
|
||||
width: 800
|
||||
height: rootState.commandPaletteOsdMode ? 100 : Math.min(600, (appList.count > 0 ? appList.contentHeight : 0) + 50 + Theme.geometry.padding * 2 + Theme.geometry.spacing)
|
||||
height: Math.min(600, (appList.count > 0 ? appList.contentHeight : 0) + 50 + Theme.geometry.padding * 2 + Theme.geometry.spacing)
|
||||
anchors.centerIn: parent
|
||||
radius: Theme.geometry.radius
|
||||
color: Theme.colors.background
|
||||
@@ -56,12 +56,11 @@ PanelWindow {
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
// --- App Launcher Mode ---
|
||||
// --- App Launcher ---
|
||||
Column {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Theme.geometry.padding
|
||||
spacing: Theme.geometry.spacing
|
||||
visible: !rootState.commandPaletteOsdMode
|
||||
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
@@ -98,7 +97,6 @@ PanelWindow {
|
||||
|
||||
Keys.onEscapePressed: {
|
||||
rootState.commandPaletteOpen = false;
|
||||
rootState.commandPaletteOsdMode = false;
|
||||
}
|
||||
|
||||
Keys.onUpPressed: {
|
||||
@@ -317,43 +315,6 @@ PanelWindow {
|
||||
running = true;
|
||||
}
|
||||
}
|
||||
|
||||
// --- OSD Mode ---
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
visible: rootState.commandPaletteOsdMode
|
||||
|
||||
// Mock OSD visual
|
||||
Row {
|
||||
anchors.centerIn: parent
|
||||
spacing: Theme.geometry.spacing * 2
|
||||
|
||||
Text {
|
||||
text: "Volume"
|
||||
color: Theme.colors.text
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 24
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
width: 400
|
||||
height: 12
|
||||
color: Theme.colors.surfaceHover
|
||||
radius: 6
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
clip: true
|
||||
|
||||
Rectangle {
|
||||
// Mock width based on a dummy volume
|
||||
width: parent.width * 0.7
|
||||
height: parent.height
|
||||
color: Theme.colors.primary
|
||||
radius: 6
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onVisibleChanged: {
|
||||
|
||||
Reference in new issue
Block a user