quickshell restruct and work
This commit is contained in:
74
quickshell/bar/Bar.qml
Normal file
74
quickshell/bar/Bar.qml
Normal file
@@ -0,0 +1,74 @@
|
||||
//@ pragma UseQApplication
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Widgets
|
||||
|
||||
import "widgets" as Widgets
|
||||
import "widgets/player" as Player
|
||||
import "widgets/common" as Common
|
||||
|
||||
// Tako kindly threatened you to sort the naming schema and to put all the svg's in an asset folder, so please do that
|
||||
|
||||
PanelWindow {
|
||||
property var modelData
|
||||
screen: modelData.values[0];
|
||||
|
||||
color: '#20ffffff'
|
||||
anchors {
|
||||
top: true
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
|
||||
implicitHeight: 30
|
||||
RowLayout {
|
||||
anchors {
|
||||
fill: parent
|
||||
leftMargin: 10
|
||||
rightMargin: 10
|
||||
}
|
||||
RowLayout { // Left
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
}
|
||||
RowLayout { // Center
|
||||
// TODO: add icons of the active window per workspace in the workspace tab
|
||||
anchors.centerIn: parent
|
||||
Widgets.Workspaces {}
|
||||
}
|
||||
RowLayout { // Right
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Common.VerticalSeprator {}
|
||||
Loader {
|
||||
sourceComponent: Widgets.Audio {}
|
||||
}
|
||||
RowLayout {
|
||||
visible: Player.activePlayer.isPlaying()
|
||||
Common.VerticalSeprator {}
|
||||
Player.PlayerWidgetV2 {
|
||||
}
|
||||
}
|
||||
Common.VerticalSeprator {}
|
||||
WrapperItem {
|
||||
Text { // Date & Time
|
||||
text: Widgets.Time.time
|
||||
color: '#FFFFFF'
|
||||
font.pointSize: 10.75
|
||||
}
|
||||
}
|
||||
Widgets.SystemTray {
|
||||
id: systemTray
|
||||
}
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
height: 2
|
||||
color: "#8d8d8d"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user