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.constants
|
||||
import qs.widgets
|
||||
import qs.styled
|
||||
|
||||
StyledButton {
|
||||
Clickable {
|
||||
id: root
|
||||
|
||||
implicitWidth: text.width
|
||||
implicitHeight: Dimensions.bluetooth.height
|
||||
|
||||
onClicked: {
|
||||
popup.opened = !popup.opened;
|
||||
}
|
||||
|
||||
content: StyledText {
|
||||
StyledText {
|
||||
id: text
|
||||
|
||||
font.family: Theme.lucide.font.family
|
||||
|
|
@ -18,6 +21,12 @@ StyledButton {
|
|||
text: Icons.bluetooth
|
||||
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import qs.config
|
||||
import qs.constants
|
||||
import qs.widgets
|
||||
import QtQuick
|
||||
import Quickshell.Hyprland
|
||||
import "../../../../config"
|
||||
import "../../../../constants/"
|
||||
import "../../../../styled/"
|
||||
|
||||
Loader {
|
||||
required property HyprlandWorkspace modelData
|
||||
|
|
@ -10,12 +10,15 @@ Loader {
|
|||
active: modelData.id > 0
|
||||
|
||||
sourceComponent: workspace
|
||||
property Component workspace: StyledButton {
|
||||
property Component workspace: Clickable {
|
||||
id: clickable
|
||||
|
||||
width: Dimensions.workspace.width
|
||||
height: Dimensions.workspace.height
|
||||
|
||||
onClicked: modelData.activate()
|
||||
|
||||
content: Text {
|
||||
Text {
|
||||
id: icon
|
||||
|
||||
font.family: Theme.lucide.font.family
|
||||
|
|
@ -25,6 +28,8 @@ Loader {
|
|||
|
||||
color: Theme.palette.basecontent
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
states: [
|
||||
State {
|
||||
name: "focused"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Quickshell.Hyprland
|
||||
import "../../../../config/"
|
||||
|
||||
RowLayout {
|
||||
Row {
|
||||
id: root
|
||||
|
||||
spacing: Dimensions.workspace.spacing
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.config
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Services.SystemTray
|
||||
import "../../../../config/"
|
||||
|
||||
RowLayout {
|
||||
Row {
|
||||
id: root
|
||||
|
||||
spacing: Dimensions.tray.spacing
|
||||
|
|
@ -14,13 +11,12 @@ RowLayout {
|
|||
model: SystemTray.items
|
||||
|
||||
Loader {
|
||||
id: loader
|
||||
required property SystemTrayItem modelData
|
||||
active: true
|
||||
|
||||
sourceComponent: item
|
||||
property Component item: TrayItem {
|
||||
trayItem: loader.modelData
|
||||
trayItem: modelData
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue