Compare commits
No commits in common. "a3edf3350f8ad09f3966a2988f40b7da5203b767" and "3003dc1435e2cc964842991ebb01e2f849a5a9a3" have entirely different histories.
a3edf3350f
...
3003dc1435
5 changed files with 40 additions and 17 deletions
13
config/Paths.qml
Normal file
13
config/Paths.qml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
|
Singleton {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
readonly property url cache: `${StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[0]}/lux`
|
||||||
|
readonly property url config: `${StandardPaths.standardLocations(StandardPaths.GenericConfigLocation)[0]}/quickshell`
|
||||||
|
readonly property url data: `${StandardPaths.standardLocations(StandardPaths.GenericDataLocation)[0]}/lux`
|
||||||
|
readonly property url home: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]
|
||||||
|
readonly property url state: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/lux`
|
||||||
|
readonly property url wallpapers: `${StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]}/Wallpapers`
|
||||||
|
}
|
||||||
|
|
@ -1,15 +1,18 @@
|
||||||
import qs.config
|
import qs.config
|
||||||
import qs.constants
|
import qs.constants
|
||||||
import qs.widgets
|
import qs.styled
|
||||||
|
|
||||||
StyledButton {
|
Clickable {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
implicitWidth: text.width
|
||||||
|
implicitHeight: Dimensions.bluetooth.height
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
popup.opened = !popup.opened;
|
popup.opened = !popup.opened;
|
||||||
}
|
}
|
||||||
|
|
||||||
content: StyledText {
|
StyledText {
|
||||||
id: text
|
id: text
|
||||||
|
|
||||||
font.family: Theme.lucide.font.family
|
font.family: Theme.lucide.font.family
|
||||||
|
|
@ -18,6 +21,12 @@ StyledButton {
|
||||||
text: Icons.bluetooth
|
text: Icons.bluetooth
|
||||||
|
|
||||||
color: root.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
color: root.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
||||||
|
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
topPadding: Dimensions.bluetooth.verticalPadding
|
||||||
|
bottomPadding: Dimensions.bluetooth.verticalPadding
|
||||||
|
leftPadding: Dimensions.bluetooth.horizontalPadding
|
||||||
|
rightPadding: Dimensions.bluetooth.horizontalPadding
|
||||||
}
|
}
|
||||||
|
|
||||||
BluetoothMenu {
|
BluetoothMenu {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import qs.config
|
|
||||||
import qs.constants
|
|
||||||
import qs.widgets
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
|
import "../../../../config"
|
||||||
|
import "../../../../constants/"
|
||||||
|
import "../../../../styled/"
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
required property HyprlandWorkspace modelData
|
required property HyprlandWorkspace modelData
|
||||||
|
|
@ -10,12 +10,15 @@ Loader {
|
||||||
active: modelData.id > 0
|
active: modelData.id > 0
|
||||||
|
|
||||||
sourceComponent: workspace
|
sourceComponent: workspace
|
||||||
property Component workspace: StyledButton {
|
property Component workspace: Clickable {
|
||||||
id: clickable
|
id: clickable
|
||||||
|
|
||||||
|
width: Dimensions.workspace.width
|
||||||
|
height: Dimensions.workspace.height
|
||||||
|
|
||||||
onClicked: modelData.activate()
|
onClicked: modelData.activate()
|
||||||
|
|
||||||
content: Text {
|
Text {
|
||||||
id: icon
|
id: icon
|
||||||
|
|
||||||
font.family: Theme.lucide.font.family
|
font.family: Theme.lucide.font.family
|
||||||
|
|
@ -25,6 +28,8 @@ Loader {
|
||||||
|
|
||||||
color: Theme.palette.basecontent
|
color: Theme.palette.basecontent
|
||||||
|
|
||||||
|
anchors.centerIn: parent
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "focused"
|
name: "focused"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Controls
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import "../../../../config/"
|
import "../../../../config/"
|
||||||
|
|
||||||
RowLayout {
|
Row {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
spacing: Dimensions.workspace.spacing
|
spacing: Dimensions.workspace.spacing
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
pragma ComponentBehavior: Bound
|
|
||||||
|
|
||||||
import qs.config
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Services.SystemTray
|
import Quickshell.Services.SystemTray
|
||||||
|
import "../../../../config/"
|
||||||
|
|
||||||
RowLayout {
|
Row {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
spacing: Dimensions.tray.spacing
|
spacing: Dimensions.tray.spacing
|
||||||
|
|
@ -14,13 +11,12 @@ RowLayout {
|
||||||
model: SystemTray.items
|
model: SystemTray.items
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: loader
|
|
||||||
required property SystemTrayItem modelData
|
required property SystemTrayItem modelData
|
||||||
active: true
|
active: true
|
||||||
|
|
||||||
sourceComponent: item
|
sourceComponent: item
|
||||||
property Component item: TrayItem {
|
property Component item: TrayItem {
|
||||||
trayItem: loader.modelData
|
trayItem: modelData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue