plugin: rust-side modules + theme services with serde-typed config
This commit is contained in:
parent
a86e90e927
commit
f34f3f2f4e
95 changed files with 2477 additions and 1011 deletions
|
|
@ -3,11 +3,12 @@ import Quickshell
|
|||
import "." as M
|
||||
import "../services" as S
|
||||
import "../applets" as C
|
||||
import NovaStats as NS
|
||||
|
||||
M.BarModule {
|
||||
id: root
|
||||
spacing: S.Theme.moduleSpacing
|
||||
active: S.Modules.bluetooth.enable && S.BluetoothService.state !== "unavailable"
|
||||
spacing: NS.ThemeService.moduleSpacing
|
||||
active: NS.ModulesService.bluetoothEnable && S.BluetoothService.state !== "unavailable"
|
||||
tooltip: {
|
||||
if (S.BluetoothService.state === "connected")
|
||||
return "Bluetooth: " + S.BluetoothService.device;
|
||||
|
|
@ -33,7 +34,7 @@ M.BarModule {
|
|||
|
||||
M.BarIcon {
|
||||
icon: "\uF294"
|
||||
color: S.BluetoothService.state === "off" ? S.Theme.base04 : root.accentColor
|
||||
color: S.BluetoothService.state === "off" ? NS.ThemeService.base04 : root.accentColor
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
M.BarLabel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue