add quickshell bar
This commit is contained in:
11
roles/quickshell/files/components/Enclosure.qml
Normal file
11
roles/quickshell/files/components/Enclosure.qml
Normal file
@ -0,0 +1,11 @@
|
||||
import QtQuick
|
||||
import Quickshell.Widgets
|
||||
import "."
|
||||
|
||||
WrapperRectangle {
|
||||
radius: Theme.radius
|
||||
color: 'transparent'
|
||||
border.color: Theme.border
|
||||
border.width: Theme.borderWidth
|
||||
margin: Theme.enclosureMargin
|
||||
}
|
||||
18
roles/quickshell/files/components/Theme.qml
Normal file
18
roles/quickshell/files/components/Theme.qml
Normal file
@ -0,0 +1,18 @@
|
||||
pragma Singleton
|
||||
import QtQuick
|
||||
|
||||
QtObject {
|
||||
// Core palette
|
||||
readonly property color bg: '#000000'
|
||||
readonly property color accent: '#9B1A1A'
|
||||
readonly property color border: '#FFFFFF'
|
||||
readonly property color text: '#FFFFFF'
|
||||
readonly property color textDim: '#888888'
|
||||
readonly property color textDisabled: '#444444'
|
||||
readonly property color progressTrack: '#333333'
|
||||
|
||||
// Shape / sizing
|
||||
readonly property int radius: 4
|
||||
readonly property int borderWidth: 2
|
||||
readonly property int enclosureMargin: 3
|
||||
}
|
||||
2
roles/quickshell/files/components/qmldir
Normal file
2
roles/quickshell/files/components/qmldir
Normal file
@ -0,0 +1,2 @@
|
||||
singleton Theme 1.0 Theme.qml
|
||||
Enclosure 1.0 Enclosure.qml
|
||||
Reference in New Issue
Block a user