Skip to content

Commit 688142e

Browse files
authored
refactor!: bar status icons -> entries list (caelestia-dots#1761)
* refactor: bar status icons -> list Also add shorthand macro for defining entries * refactor: unify network/ethernet popout Also rename audio popout component due to name clash * refactor: bar status icons -> list qml side * chore: remove wifi status icon It was unified into the network one * feat: improve status icon styling Fill icons and fix spacing * docs: update readme example config * fix: mic status icon not opening popout * chore: remove useless id * feat: add initial list editor No functionality yet except drag to move * feat: add item placeholder + better held colours * fix: start drag from press point not center * feat: add item deleted signal * feat: add x movement Also refactor to use return anim cause drag does not have initial move anymore * feat: implement reordering * feat: add anims for list editor * fix: z order issues * feat: add itemsCommitted signal * refactor: single committed signal No deleted signal, use the commit one instead * feat: allow customising icon/label for items * feat: allow edit list being first item * feat: allow editing items + remove leading icon Leading icon is now drag indicator, no custom icons * feat: add dialog row button * feat: add dialog select button * fix: list editor manual delete * feat: wire up status icons list editor * refactor: use typed status icons list * fix: reuse list elements by content Instead of by position * fix: animate list editor height * fix: dialog close anim when layout changes * fix: hover layer for list entries * fix: better rounding for selected dialog item Full looks kinda strange * feat: allow editing enabled state of list items Remove edit button in favour of enabled toggle * fix: use primary container for held list item Tertiary container is too bright on most schemes + the switch doesnt fit with it, primary container looks better * fix: item toggling writing to per monitor overlay Write to global config instead. Also, need to match by key instead of content on global sync since the content changed * fix: force update when status icons reordered * fix: font -> fontStyle * fix: status icon spacing
1 parent 7fc6f15 commit 688142e

16 files changed

Lines changed: 1156 additions & 298 deletions

File tree

README.md

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -466,21 +466,41 @@ For example, to disable the bar on DP-1:
466466
"iconSubs": [],
467467
"hiddenIcons": []
468468
},
469-
"status": {
470-
"showAudio": false,
471-
"showMicrophone": false,
472-
"showKbLayout": false,
473-
"showNetwork": true,
474-
"showWifi": true,
475-
"showBluetooth": true,
476-
"showBattery": true,
477-
"showLockStatus": true
478-
},
479469
"clock": {
480470
"background": false,
481471
"showDate": false,
482472
"showIcon": true
483473
},
474+
"statusIcons": [
475+
{
476+
"id": "lockStatus",
477+
"enabled": true
478+
},
479+
{
480+
"id": "audio",
481+
"enabled": false
482+
},
483+
{
484+
"id": "microphone",
485+
"enabled": false
486+
},
487+
{
488+
"id": "kbLayout",
489+
"enabled": false
490+
},
491+
{
492+
"id": "network",
493+
"enabled": true
494+
},
495+
{
496+
"id": "bluetooth",
497+
"enabled": true
498+
},
499+
{
500+
"id": "battery",
501+
"enabled": true
502+
}
503+
],
484504
"entries": [
485505
{
486506
"id": "logo",
@@ -844,9 +864,12 @@ programs.caelestia = {
844864
environment = [];
845865
};
846866
settings = {
847-
bar.status = {
848-
showBattery = false;
849-
};
867+
bar.statusIcons = [
868+
{ id = "lockStatus"; enabled = true; }
869+
{ id = "network"; enabled = true; }
870+
{ id = "bluetooth"; enabled = true; }
871+
{ id = "battery"; enabled = false; }
872+
];
850873
paths.wallpaperDir = "~/Images";
851874
};
852875
cli = {

0 commit comments

Comments
 (0)