multi-bar: removed all globals bar properties

This commit is contained in:
ItsLemmy
2025-11-05 00:33:47 -05:00
parent 8c8ee2def3
commit 569a5ba8df
52 changed files with 532 additions and 438 deletions
+3 -6
View File
@@ -21,11 +21,8 @@ Item {
property var widgetMetadata: BarWidgetRegistry.widgetMetadata[widgetId]
property var widgetSettings: {
if (section && sectionWidgetIndex >= 0) {
var widgets = Settings.data.bar.widgets[section]
if (widgets && sectionWidgetIndex < widgets.length) {
return widgets[sectionWidgetIndex]
}
if (screen && section && sectionWidgetIndex >= 0) {
return Settings.getWidgetSettings(screen.name, section, sectionWidgetIndex)
}
return {}
}
@@ -42,7 +39,7 @@ Item {
id: pill
anchors.verticalCenter: parent.verticalCenter
density: Settings.data.bar.density
density: barDensity
oppositeDirection: BarService.getPillDirection(root)
icon: "keyboard"
autoHide: false // Important to be false so we can hover as long as we want