make config use json instead of shitty qt implementation
This commit is contained in:
parent
4e294cb377
commit
31965a0dba
40 changed files with 272 additions and 745 deletions
|
|
@ -11,7 +11,6 @@ import qs.settings
|
|||
|
||||
BarComponent {
|
||||
id: root
|
||||
implicitHeight: Config.moduleHeight
|
||||
implicitWidth: songLayout.implicitWidth + 16
|
||||
property MprisPlayer spotify: {
|
||||
for (const player of Mpris.players.values) {
|
||||
|
|
@ -25,19 +24,12 @@ BarComponent {
|
|||
RowLayout {
|
||||
id: songLayout
|
||||
anchors.centerIn: root
|
||||
IconImage {
|
||||
source: Quickshell.iconPath("folder-music-symbolic")
|
||||
implicitSize: Config.iconSize
|
||||
layer.enabled: true
|
||||
layer.effect: MultiEffect {
|
||||
colorization: 1.0
|
||||
colorizationColor: Colors.text
|
||||
brightness: 0.5
|
||||
}
|
||||
StyledIcon {
|
||||
iconName: "folder-music-symbolic"
|
||||
}
|
||||
StyledText {
|
||||
Layout.maximumWidth: 400
|
||||
Layout.maximumHeight: Config.barHeight / 1.6
|
||||
Layout.maximumHeight: Config.cfg.bar.barHeight / 1.6
|
||||
text: root.spotify?.trackTitle + " - " + root.spotify?.trackArtists
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue