add selection callback to changelog UI (& fix deselection)
Dependencies
- [2]
I4NM4O3Zmake changelog elements interactable - [3]
XERTHGSYconsolidated `pijul log` UI elements into their own component - [4]
HZV5P57Ychanged channel and log views to use `ListView` (looks much cleaner) - [5]
G2CHQAOPparsed `pijul log` text blob into individual entries & fields - [*]
NSE6BLWAinit slint project from https://github.com/slint-ui/slint-rust-template
Change contents
- edit in ui/app-window.slint at line 18
in-out property <bool> is-selected: false;touch := TouchArea {clicked => {is-selected = true;}} - edit in ui/app-window.slint at line 49
in-out property <bool> is-selected: false;in property <bool> has-hover; - replacement in ui/app-window.slint at line 52
selected when is-selected: {selected when root.is-selected: { - replacement in ui/app-window.slint at line 55
lowlighted when !is-selected && touch.has-hover: {lowlighted when root.has-hover: { - edit in ui/app-window.slint at line 58
off when !is-selected && !touch.has-hover: {root.background: Palette.background;} - edit in ui/app-window.slint at line 63
in-out property <int> selected: -1;callback selection-changed(/*new selection*/ int); - replacement in ui/app-window.slint at line 75
for change in root.changes_log: ChangeEntry {for change[index] in root.changes_log: ce := ChangeEntry { - edit in ui/app-window.slint at line 80
is-selected: root.selected == index;has-hover: touch.has-hover;touch := TouchArea {clicked => {root.selected = index;root.selection-changed(index);}}