Compare commits
No commits in common. "f62b9255ecd1e6831ba1f3fa724effd3e5a530e2" and "579af752fa88747229969612ec3fb8ba10067001" have entirely different histories.
f62b9255ec
...
579af752fa
17 changed files with 62 additions and 119 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
.qmlls.ini
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
readonly property url home: StandardPaths.standardLocations(StandardPaths.)[0]
|
||||
readonly property url wallpapers: `${StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]}/Wallpapers`
|
||||
|
||||
readonly property url data: `${StandardPaths.standardLocations(StandardPaths.GenericDataLocation)[0]}/lux`
|
||||
readonly property url state: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/lux`
|
||||
readonly property url cache: `${StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[0]}/lux`
|
||||
readonly property url config: `${StandardPaths.standardLocations(StandardPaths.GenericConfigLocation)[0]}/quickshell`
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
pragma Singleton
|
||||
|
||||
import QtQml
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
property string fontFamily: "JetBrainsMono Nerd Font"
|
||||
property Palette palette: Palette {}
|
||||
|
||||
component Palette: QtObject {
|
||||
id: palette
|
||||
|
||||
property color primary: "#1fb854"
|
||||
property color secondary: "#1eb88e"
|
||||
property color accent: "#1fb8ab"
|
||||
property color neutral: "#19362d"
|
||||
property color base100: "#1b1717"
|
||||
property color base200: "#161212"
|
||||
property color base300: "#110d0d"
|
||||
property color basecontent: "#cac9c9"
|
||||
property color info: "#00b5ff"
|
||||
property color success: "#00a96e"
|
||||
property color warning: "#ffbe00"
|
||||
property color error: "#ff5861"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
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/assets/triangle.svg"
|
||||
icon.color: workspace.modelData.active ? Theme.palette.primary : Theme.palette.basecontent
|
||||
|
||||
onClicked: workspace.modelData.activate()
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Quickshell.Hyprland
|
||||
|
||||
Row {
|
||||
id: root
|
||||
|
||||
spacing: 4
|
||||
|
||||
Repeater {
|
||||
|
||||
model: Hyprland.workspaces
|
||||
|
||||
Workspace {}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
|
Before Width: | Height: | Size: 558 B After Width: | Height: | Size: 558 B |
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import "root:styled"
|
||||
import "../../widgets"
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import "components"
|
||||
import "../../config/"
|
||||
import "../../config"
|
||||
|
||||
Scope {
|
||||
PanelWindow {
|
||||
|
|
@ -13,14 +13,13 @@ Scope {
|
|||
right: true
|
||||
}
|
||||
|
||||
implicitHeight: 40
|
||||
implicitHeight: 30
|
||||
|
||||
color: 'transparent'
|
||||
|
||||
Rectangle {
|
||||
id: background
|
||||
anchors.fill: parent
|
||||
color: Theme.palette.base300
|
||||
color: Colours.palette.base100
|
||||
}
|
||||
|
||||
Row {
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import "root:styled"
|
||||
|
||||
Item {
|
||||
id: clock
|
||||
|
|
@ -9,14 +8,19 @@ Item {
|
|||
implicitWidth: 200
|
||||
implicitHeight: 30
|
||||
|
||||
StyledLabel {
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#333"
|
||||
opacity: 0.5
|
||||
radius: 5
|
||||
}
|
||||
|
||||
StyledText {
|
||||
Text {
|
||||
id: text
|
||||
anchors.centerIn: parent
|
||||
|
||||
color: "white"
|
||||
|
||||
Process {
|
||||
// give the process object an id so we can talk
|
||||
// about it from the timer
|
||||
51
shell/modules/bar/components/Workspaces.qml
Normal file
51
shell/modules/bar/components/Workspaces.qml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.VectorImage
|
||||
import Quickshell.Hyprland
|
||||
import "../../../config"
|
||||
|
||||
Row {
|
||||
id: root
|
||||
|
||||
spacing: 4
|
||||
|
||||
Repeater {
|
||||
|
||||
model: Hyprland.workspaces
|
||||
|
||||
Item {
|
||||
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
import QtQuick
|
||||
import "root:config"
|
||||
|
||||
Rectangle {
|
||||
color: Theme.palette.base100
|
||||
|
||||
radius: 5
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import QtQuick
|
||||
import "root:config"
|
||||
|
||||
Text {
|
||||
color: Theme.palette.basecontent
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue