style(slint): sm toolbar variant + center bulk-bar actions

Add a Bootstrap-style `sm` flag to the shared toolbar primitives
(QbzSelect, ExpandableSearch, ToggleButton) — default stays the standard
size (Settings keeps it), and the favorites toolbar opts in (genre /
group / sort / search / grid-list now ~30px). FavGenreButton + the
favorites grid/list ViewToggle shrink to match. Also vertically center
the MultiSelectBar action buttons (only the count was centered before).

cc
This commit is contained in:
vicrodh committed 2026-05-27 11:16:38 -06:00
1 parent dbd6d2e4b5
commit 159310bbf0
5 files changed
+49 -32

No files matched your search

@@ -68,12 +68,15 @@ export component MultiSelectBar inherits Rectangle {
vertical-alignment: center;
horizontal-stretch: 1;
}
for act in root.actions: BulkButton {
label: act.label;
danger: act.danger;
enabled-when: !act.needs-selection || root.selected-count > 0;
clicked => {
root.action(act.id);
for act in root.actions: VerticalLayout {
alignment: center;
BulkButton {
label: act.label;
danger: act.danger;
enabled-when: !act.needs-selection || root.selected-count > 0;
clicked => {
root.action(act.id);
}
}
}
}