Color and Transperencyof Bar, Added TODOs, Rectangle width and height depending on Text inside
This commit is contained in:
+12
-2
@@ -3,9 +3,13 @@ import Quickshell
|
|||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import "./widgets"
|
import "./widgets"
|
||||||
|
|
||||||
|
// TODO: interact with PyWal
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: panel
|
id: panel
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
anchors.top: true
|
anchors.top: true
|
||||||
anchors.left: true
|
anchors.left: true
|
||||||
anchors.right: true
|
anchors.right: true
|
||||||
@@ -25,7 +29,7 @@ PanelWindow {
|
|||||||
Rectangle { // Bar
|
Rectangle { // Bar
|
||||||
id: bar
|
id: bar
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "#1a1a1a"
|
color: "#800a0a0a"
|
||||||
radius: 0
|
radius: 0
|
||||||
|
|
||||||
Row { // bar widgets left
|
Row { // bar widgets left
|
||||||
@@ -42,7 +46,7 @@ PanelWindow {
|
|||||||
thisMonitor: barThisMonitor
|
thisMonitor: barThisMonitor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
// TODO: Maybe add current Apps in workspace
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,6 +57,8 @@ PanelWindow {
|
|||||||
|
|
||||||
Clock {}
|
Clock {}
|
||||||
|
|
||||||
|
// TODO: Add a way to see Date (maybe hover or click)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Row { // bar widgets right
|
Row { // bar widgets right
|
||||||
@@ -63,7 +69,11 @@ PanelWindow {
|
|||||||
anchors.rightMargin: 16
|
anchors.rightMargin: 16
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
|
// TODO: Add bluetooth, network, audio, power, maybe HW monitor
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Somewhere add Tray
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,16 +2,26 @@ import QtQuick
|
|||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
|
|
||||||
Text {
|
Rectangle { //workspace
|
||||||
|
width: timeDisplay.width + 16
|
||||||
|
height: timeDisplay.height + 16
|
||||||
|
radius: 4
|
||||||
|
color: "#333333"
|
||||||
|
border.color: "#555555"
|
||||||
|
border.width: 2
|
||||||
|
|
||||||
|
Text {
|
||||||
id: timeDisplay
|
id: timeDisplay
|
||||||
|
|
||||||
property string currentTime: ""
|
property string currentTime: ""
|
||||||
|
|
||||||
text: currentTime
|
text: currentTime
|
||||||
color: "#ffffff"
|
color: "#ffffff"
|
||||||
font.pixelSize: 14
|
font.pixelSize: 18
|
||||||
font.family: "Inter, sans-serif"
|
font.family: "Inter, sans-serif"
|
||||||
|
|
||||||
|
anchors.centerIn: parent
|
||||||
|
|
||||||
//Update time every second
|
//Update time every second
|
||||||
Timer {
|
Timer {
|
||||||
interval: 1000
|
interval: 1000
|
||||||
@@ -22,4 +32,5 @@ Text {
|
|||||||
timeDisplay.currentTime = Qt.formatTime(now, "hh:mm:ss")
|
timeDisplay.currentTime = Qt.formatTime(now, "hh:mm:ss")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -14,8 +14,8 @@ Row { // Workspace Row
|
|||||||
|
|
||||||
Rectangle { //workspace
|
Rectangle { //workspace
|
||||||
visible: modelData.monitor === thisMonitor
|
visible: modelData.monitor === thisMonitor
|
||||||
width: 32
|
width: workspaceNum.width + 16
|
||||||
height: 24
|
height: workspaceNum.height + 8
|
||||||
radius: 4
|
radius: 4
|
||||||
color: modelData.active ? "#4a93ff": "#333333"
|
color: modelData.active ? "#4a93ff": "#333333"
|
||||||
border.color: "#555555"
|
border.color: "#555555"
|
||||||
@@ -29,19 +29,21 @@ Row { // Workspace Row
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
id: workspaceNum
|
||||||
text: modelData.id
|
text: modelData.id
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: modelData.active ? "#ffffff" : "#cccccc"
|
color: modelData.active ? "#ffffff" : "#cccccc"
|
||||||
font.pixelSize: 12
|
font.pixelSize: 18
|
||||||
font.family: "Inter, sans-serif"
|
font.family: "Inter, sans-serif"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
visible: Hyprland.workspaces.length === 0
|
visible: Hyprland.workspaces.length === 0
|
||||||
text: "No Workspaces"
|
text: "No Workspaces"
|
||||||
color: "#ffffff"
|
color: "#ffffff"
|
||||||
font.pixelSize: 12
|
font.pixelSize: 18
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user