progress dump
This commit is contained in:
parent
b750421f65
commit
cc71593a9b
7 changed files with 38 additions and 36 deletions
2
Bar.qml
2
Bar.qml
|
@ -10,7 +10,7 @@ PanelWindow {
|
|||
anchors {
|
||||
top: true
|
||||
bottom: true
|
||||
right: true
|
||||
left: true
|
||||
}
|
||||
width: 60
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@ import Quickshell
|
|||
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: width * 1.5
|
||||
height: text.height + 10
|
||||
border.color: "black"
|
||||
border.width: 1
|
||||
border.width: 2
|
||||
radius: 5
|
||||
// color: "green"
|
||||
color: "#30c0ffff"
|
||||
|
||||
Item {
|
||||
width: parent.width
|
||||
|
@ -26,9 +26,9 @@ Rectangle {
|
|||
anchors.centerIn: parent
|
||||
property var date: Date()
|
||||
|
||||
text: Qt.formatDateTime(clock.date, "hh\nmm\nss")
|
||||
text: Qt.formatDateTime(clock.date, "hh\nmm")
|
||||
|
||||
font.family: "Iosevka NF"
|
||||
font.family: "ComicShannsMono Nerd Font Mono"
|
||||
font.weight: Font.ExtraBold
|
||||
font.pointSize: 18
|
||||
|
||||
|
|
|
@ -48,10 +48,10 @@ Singleton {
|
|||
}
|
||||
}
|
||||
width: 450
|
||||
color: "white"
|
||||
color: "#30c0afaf"
|
||||
radius: 5
|
||||
border.color: "black"
|
||||
border.width: 1
|
||||
border.width: 2
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
@ -254,14 +254,14 @@ Singleton {
|
|||
|
||||
highlight: Rectangle {
|
||||
radius: 5
|
||||
color: "green"
|
||||
color: "#20e0ffff"
|
||||
border.color: "#30ffffff"
|
||||
border.width: 1
|
||||
}
|
||||
keyNavigationEnabled: true
|
||||
keyNavigationWraps: true
|
||||
highlightMoveVelocity: -1
|
||||
highlightMoveDuration: 100
|
||||
highlightMoveDuration: 50
|
||||
preferredHighlightBegin: list.topMargin
|
||||
preferredHighlightEnd: list.height - list.bottomMargin
|
||||
highlightRangeMode: ListView.ApplyRange
|
||||
|
@ -297,6 +297,7 @@ Singleton {
|
|||
Text {
|
||||
text: modelData.name
|
||||
color: "black"
|
||||
font.family: "ComicShannsMono Nerd Font Mono"
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ Scope {
|
|||
}
|
||||
|
||||
Text {
|
||||
text: root.failed ? "Reload failed." : "Reloaded completed!"
|
||||
text: root.failed ? "Reloaing failed." : "Reloading completed!"
|
||||
color: "white"
|
||||
}
|
||||
|
||||
|
|
41
SysTray.qml
41
SysTray.qml
|
@ -11,11 +11,18 @@ Rectangle {
|
|||
id: root
|
||||
required property var bar
|
||||
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: parent.width
|
||||
height: column.height + 10
|
||||
color: "#30c0ffff"
|
||||
radius: 5
|
||||
border.color: "black"
|
||||
border.width: 2
|
||||
|
||||
ColumnLayout {
|
||||
id: column
|
||||
spacing: 35
|
||||
spacing: 10
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
Repeater {
|
||||
model: SystemTray.items
|
||||
|
@ -25,25 +32,21 @@ Rectangle {
|
|||
|
||||
required property SystemTrayItem modelData
|
||||
|
||||
Item {
|
||||
height: 30
|
||||
width: 30
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
height: 35
|
||||
width: 35
|
||||
|
||||
Image {
|
||||
source: item.modelData.icon
|
||||
Image {
|
||||
source: item.modelData.icon
|
||||
anchors.fill: parent
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: function (mouse) {
|
||||
if (mouse.button === Qt.LeftButton) {
|
||||
item.modelData.activate();
|
||||
}
|
||||
if (mouse.button === Qt.RightButton) {
|
||||
if (item.modelData.hasMenu) {
|
||||
}
|
||||
}
|
||||
onClicked: function (mouse) {
|
||||
if (mouse.button === Qt.LeftButton) {
|
||||
item.modelData.activate();
|
||||
}
|
||||
if (mouse.button === Qt.RightButton) {
|
||||
if (item.modelData.hasMenu) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
// Please make sure to check out his setup.
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Hyprland
|
||||
|
||||
Rectangle {
|
||||
|
@ -27,8 +26,8 @@ Rectangle {
|
|||
width: parent.width
|
||||
height: width
|
||||
border.color: "black"
|
||||
// color: "blue"
|
||||
border.width: 1
|
||||
color: "#30c0ffff"
|
||||
border.width: 2
|
||||
radius: 5
|
||||
|
||||
// destructor takes care of nulling
|
||||
|
@ -90,8 +89,7 @@ Rectangle {
|
|||
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
height: 10
|
||||
// width: (wsItem.active ? parent.width : parent.width - 20)
|
||||
height: wsItem.height - 5
|
||||
width: parent.width * wsItem.animActive
|
||||
radius: height / 2
|
||||
border.color: "black"
|
||||
|
|
|
@ -6,7 +6,7 @@ import QtQuick
|
|||
ShellRoot {
|
||||
id: shellroot
|
||||
|
||||
Component.onCompleted: [Launcher.init(), AudioPopup.init()]
|
||||
Component.onCompleted: [Launcher.init()]
|
||||
|
||||
ReloadPopup {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue