make changelog elements interactable

CrepeGoat
Oct 10, 2024, 5:22 PM
I4NM4O3Z7SDWAMQODOCPKJXL2LBMVUPQVGYQUXO6J7MW7WZAH5NAC

Dependencies

  • [2] HZV5P57Y changed channel and log views to use `ListView` (looks much cleaner)
  • [3] XERTHGSY consolidated `pijul log` UI elements into their own component
  • [4] G2CHQAOP parsed `pijul log` text blob into individual entries & fields
  • [5] 6ECOC7L5 parsed `pijul channel` text blob into individual UI components
  • [6] IQY5LHEN add GUI element to display simple `pijul log` results
  • [7] NSE6BLWA init slint project from https://github.com/slint-ui/slint-rust-template

Change contents

  • replacement in ui/app-window.slint at line 1
    [3.57][2.0:112]()
    import { Button, VerticalBox, HorizontalBox, ScrollView, ListView, StandardListView } from "std-widgets.slint";
    [3.57]
    [3.0]
    import { Palette, Button, VerticalBox, HorizontalBox, ScrollView, ListView, StandardListView } from "std-widgets.slint";
  • replacement in ui/app-window.slint at line 13
    [3.171][3.171:195]()
    component ChangeEntry {
    [3.171]
    [3.195]
    component ChangeEntry inherits Rectangle {
  • edit in ui/app-window.slint at line 19
    [3.346]
    [3.346]
    in-out property <bool> is-selected: false;
    touch := TouchArea {
    clicked => {
    is-selected = true;
    }
    }
  • edit in ui/app-window.slint at line 56
    [3.32]
    [3.32]
    states [
    selected when is-selected: {
    root.background: Palette.selection-background;
    }
    lowlighted when !is-selected && touch.has-hover: {
    root.background: Palette.alternate-background;
    }
    off when !is-selected && !touch.has-hover: {
    root.background: Palette.background;
    }
    ]
  • replacement in ui/app-window.slint at line 70
    [3.35][3.35:57]()
    component Changelog {
    [3.35]
    [3.57]
    component Changelog inherits Rectangle {