made channel entries interactable

CrepeGoat
Oct 10, 2024, 6:09 PM
VU6Z6IPYWN5QA47GVKDPIYEDQZPX4O7U2R47P6CPVQXBD4TAKFLAC

Dependencies

  • [2] ZGSCV5DI split channel labels into discrete component
  • [3] G2CHQAOP parsed `pijul log` text blob into individual entries & fields
  • [*] NSE6BLWA init slint project from https://github.com/slint-ui/slint-rust-template

Change contents

  • replacement in ui/app-window.slint at line 101
    [2.213][2.213:233]()
    Rectangle {
    [2.213]
    [2.233]
    active-marker := Rectangle {
  • edit in ui/app-window.slint at line 104
    [2.284]
    [2.284]
    border-radius: 5px;
  • replacement in ui/app-window.slint at line 106
    [2.318][2.318:348]()
    background: blue;
    [2.318]
    [2.348]
    background: Palette.accent-background;
    }
    label-backdrop := Rectangle {
    label := Text {
    text: "\{name}";
    }
  • edit in ui/app-window.slint at line 114
    [2.358]
    [2.358]
    }
  • replacement in ui/app-window.slint at line 116
    [2.359][2.359:403]()
    Text {
    text: "\{name}";
    [2.359]
    [3.872]
    in-out property <bool> is-selected: false;
    touch := TouchArea {
    clicked => {
    is-selected = true;
  • edit in ui/app-window.slint at line 122
    [3.888]
    [3.888]
    states [
    selected when is-selected: {
    label-backdrop.background: Palette.selection-background;
    label.color: Palette.selection-foreground;
    }
    lowlighted when !is-selected && touch.has-hover: {
    label-backdrop.background: Palette.alternate-background;
    label.color: Palette.alternate-foreground;
    }
    off when !is-selected && !touch.has-hover: {
    label-backdrop.background: Palette.background;
    label.color: Palette.foreground;
    }
    ]