feat(slint): Local Library folder management — compact table + per-folder sync/delete
- Replace the folder list with a compact table (sticky header: FOLDER / LAST SCAN / STATUS + actions, internal scroll). - Per-row sync (scans only that folder) and per-row delete (removes the DB entry + indexed tracks, never the files); delete no longer relies on rfd/zenity (which fails-closed on zenity-less systems) — direct removal + a toast. - Fix the row event order so the per-row buttons receive their clicks instead of toggling selection. - Fix mis-centered button glyphs (Stop, change-path, scan, tag-editor search): an inner layout filled its parent so the centering collapsed to x:0 — use explicit padding. cc
This commit is contained in:
3 files changed
+164
-60
No files matched your search
@@ -132,7 +132,8 @@ export component LibFolderEditModal inherits Rectangle {
|
||||
border-color: Theme.border-subtle;
|
||||
background: change-ta.has-hover ? Theme.surface-hover : Theme.surface-elevated;
|
||||
change-row := HorizontalLayout {
|
||||
x: Math.round((parent.width - self.width) / 2 / 1px) * 1px;
|
||||
padding-left: 11px;
|
||||
padding-right: 11px;
|
||||
spacing: 6px;
|
||||
VerticalLayout {
|
||||
alignment: center;
|
||||
@@ -309,7 +310,8 @@ export component LibFolderEditModal inherits Rectangle {
|
||||
border-color: Theme.border-subtle;
|
||||
background: scan-ta.has-hover && self.can-scan ? Theme.surface-hover : Theme.surface-elevated;
|
||||
scan-row := HorizontalLayout {
|
||||
x: Math.round((parent.width - self.width) / 2 / 1px) * 1px;
|
||||
padding-left: 13px;
|
||||
padding-right: 13px;
|
||||
spacing: 7px;
|
||||
VerticalLayout {
|
||||
alignment: center;
|
||||
|
||||
Reference in new issue
Block a user