quickshell: a bunch of changes
This commit is contained in:
parent
8c6b9f65c9
commit
b82a3580ec
11 changed files with 137 additions and 100 deletions
|
@ -1,6 +1,7 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import Qt.labs.folderlistmodel 2.9
|
||||
|
||||
PanelWindow {
|
||||
id: root
|
||||
|
@ -9,6 +10,24 @@ PanelWindow {
|
|||
WlrLayershell.layer: WlrLayer.Background
|
||||
WlrLayershell.namespace: "shell:background"
|
||||
|
||||
// property string basePath: "file:///home/cr/Documents/Backgrounds/"
|
||||
// property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath")
|
||||
// property var finalPath: absPath
|
||||
|
||||
// property bool _: log()
|
||||
// function log() {
|
||||
// console.log(absPath);
|
||||
// console.log(folderModel.count);
|
||||
// return true;
|
||||
// }
|
||||
FolderListModel {
|
||||
id: folderModel
|
||||
// folder: root.basePath
|
||||
nameFilters: ["*.png"]
|
||||
showDirs: false
|
||||
showFiles: true
|
||||
}
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
bottom: true
|
||||
|
@ -16,13 +35,21 @@ PanelWindow {
|
|||
right: true
|
||||
}
|
||||
|
||||
Item {
|
||||
id: background
|
||||
anchors.fill: parent
|
||||
Image {
|
||||
id: image
|
||||
asynchronous: true
|
||||
source: "/home/cr/repos/projects/nichts/modules/style/wholefoods.png"
|
||||
// Item {
|
||||
// id: background
|
||||
// anchors.fill: parent
|
||||
// Image {
|
||||
// id: image
|
||||
// source: Qt.resolvedUrl(root.finalPath)
|
||||
// }
|
||||
// }
|
||||
Timer {
|
||||
id: timer
|
||||
// 10 minutes
|
||||
interval: 1000 * 60 * 10
|
||||
running: false
|
||||
onTriggered: {
|
||||
root.popupOpacity = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ Rectangle {
|
|||
width: text.width + 5
|
||||
height: text.height + 5
|
||||
implicitWidth: width
|
||||
border.color: Config.catppuccin.rosewater
|
||||
border.color: Colors.rosewater
|
||||
border.width: 0
|
||||
radius: 5
|
||||
color: "transparent"
|
||||
|
@ -24,7 +24,7 @@ Rectangle {
|
|||
font.family: "JetBrainsMono NF Mono"
|
||||
font.pointSize: 15
|
||||
|
||||
color: Config.catppuccin.text
|
||||
color: Colors.text
|
||||
}
|
||||
|
||||
SystemClock {
|
||||
|
|
|
@ -36,7 +36,7 @@ Rectangle {
|
|||
// height: workspaces.length * root.wsItemHeight
|
||||
implicitWidth: list.implicitWidth
|
||||
color: "transparent"
|
||||
border.color: Config.catppuccin.rosewater
|
||||
border.color: Colors.rosewater
|
||||
border.width: 0
|
||||
radius: 7
|
||||
|
||||
|
@ -93,9 +93,9 @@ Rectangle {
|
|||
height: wsItem.height - 5
|
||||
width: parent.width * wsItem.animActive
|
||||
radius: height / 2
|
||||
border.color: Config.catppuccin.mantle
|
||||
border.color: Colors.mantle
|
||||
border.width: 0
|
||||
color: Config.catppuccin.blue
|
||||
color: Colors.blue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,10 +5,10 @@ import Quickshell.Wayland
|
|||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
|
||||
import "../bar"
|
||||
import qs.modules.bar
|
||||
|
||||
import "../../config"
|
||||
import "../"
|
||||
import qs.config
|
||||
import qs.modules
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue