update using theme
This commit is contained in:
parent
5e7035efdc
commit
2a7de7e56a
3 changed files with 43 additions and 39 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import "components"
|
import "components"
|
||||||
import "../../config"
|
import "../../config/"
|
||||||
|
|
||||||
Scope {
|
Scope {
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
|
|
@ -13,13 +13,14 @@ Scope {
|
||||||
right: true
|
right: true
|
||||||
}
|
}
|
||||||
|
|
||||||
implicitHeight: 30
|
implicitHeight: 40
|
||||||
|
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
id: background
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Colours.palette.base100
|
color: Theme.palette.base300
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
|
|
||||||
38
shell/modules/bar/components/Workspace.qml
Normal file
38
shell/modules/bar/components/Workspace.qml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import "../../../config"
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: workspace
|
||||||
|
|
||||||
|
required property HyprlandWorkspace modelData
|
||||||
|
|
||||||
|
visible: modelData.id > 0
|
||||||
|
|
||||||
|
width: 30
|
||||||
|
height: 30
|
||||||
|
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
padding: 6
|
||||||
|
leftPadding: 7
|
||||||
|
rightPadding: 7
|
||||||
|
|
||||||
|
background: Rectangle {
|
||||||
|
id: rectangle
|
||||||
|
anchors.fill: parent
|
||||||
|
color: "#161212"
|
||||||
|
radius: 8
|
||||||
|
}
|
||||||
|
|
||||||
|
rotation: workspace.modelData.active ? 0 : 180
|
||||||
|
|
||||||
|
icon.source: "/home/baobeld/dotfiles/quickshell/shell/assets/triangle.svg"
|
||||||
|
icon.color: workspace.modelData.active ? Theme.palette.primary : Theme.palette.basecontent
|
||||||
|
|
||||||
|
onClicked: workspace.modelData.activate()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.VectorImage
|
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import "../../../config"
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: root
|
id: root
|
||||||
|
|
@ -13,39 +11,6 @@ Row {
|
||||||
|
|
||||||
model: Hyprland.workspaces
|
model: Hyprland.workspaces
|
||||||
|
|
||||||
Item {
|
Workspace {}
|
||||||
id: workspace
|
|
||||||
|
|
||||||
required property HyprlandWorkspace modelData
|
|
||||||
|
|
||||||
visible: modelData.id > 0
|
|
||||||
|
|
||||||
width: 25
|
|
||||||
height: 25
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
id: rectangle
|
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.fill: parent
|
|
||||||
color: "#161212"
|
|
||||||
radius: 8
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
anchors.centerIn: parent
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
rotation: workspace.modelData.active ? 0 : 180
|
|
||||||
|
|
||||||
icon.source: "/home/baobeld/dotfiles/quickshell/shell/assets/triangle.svg"
|
|
||||||
icon.color: "#1fb854"
|
|
||||||
|
|
||||||
// palette.button: QtColor.
|
|
||||||
|
|
||||||
onClicked: workspace.modelData.activate()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue