pimp-up action buttons

[?]
Jul 24, 2025, 7:46 PM
BAUK5BONEFQ3KIQPFLM7MGNCS5GWBILBXZMTIGN5LWTYTNNNNSPQC

Dependencies

Change contents

  • edit in inflorescence_view/src/theme.rs at line 100
    [4.100]
    [4.100]
    HighlightOnLightBg,
  • edit in inflorescence_view/src/theme.rs at line 269
    [3.2530]
    [3.2530]
    Text::HighlightOnLightBg => text::Style {
    color: Some(MAGENTA_DARK),
    },
  • replacement in inflorescence_view/src/app.rs at line 12
    [8.2746][8.2746:2813]()
    button, column, container, row, text, text_editor, text_input,
    [8.2746]
    [8.2813]
    button, column, container, row, text, text_editor, text_input, Button,
  • replacement in inflorescence_view/src/app.rs at line 567
    [5.2390][5.2390:2413]()
    "← | h",
    [5.2390]
    [7.7503]
    "←| h",
    "",
  • replacement in inflorescence_view/src/app.rs at line 574
    [5.2540][5.2540:2563]()
    "↓ | j",
    [5.2540]
    [7.7580]
    "↓| j",
    "",
  • replacement in inflorescence_view/src/app.rs at line 581
    [5.2688][5.2688:2711]()
    "↑ | k",
    [5.2688]
    [7.7657]
    "↑| k",
    "",
  • replacement in inflorescence_view/src/app.rs at line 588
    [5.2837][5.2837:2860]()
    "→ | l",
    [5.2837]
    [7.7732]
    "→| l",
    "",
  • replacement in inflorescence_view/src/app.rs at line 595
    [5.2996][5.2996:3032]()
    "S-(↓ | j): no skip",
    [5.2996]
    [7.7810]
    "S-(↓| j)",
    "no skip",
  • replacement in inflorescence_view/src/app.rs at line 602
    [5.3168][5.3168:3204]()
    "S-(↑ | k): no skip",
    [5.3168]
    [7.7890]
    "S-(↑| k)",
    "no skip",
  • replacement in inflorescence_view/src/app.rs at line 609
    [5.3313][5.3313:3458]()
    || action_button("a: track file", Msg::AddUntrackedFile);
    let rm_added_file = || action_button("x: untrack file", Msg::RmAddedFile);
    [5.3313]
    [8.3704]
    || action_button("a", "track file", Msg::AddUntrackedFile);
    let rm_added_file = || action_button("x", "untrack file", Msg::RmAddedFile);
  • replacement in inflorescence_view/src/app.rs at line 612
    [8.3705][5.3458:3607](),[5.3458][5.3458:3607]()
    let start_record = || action_button("r: record", Msg::StartRecord);
    let save_record = || action_button("C-s: save record", Msg::SaveRecord);
    [8.3705]
    [5.3607]
    let start_record = || action_button("r", "record", Msg::StartRecord);
    let save_record = || action_button("C-s", "save record", Msg::SaveRecord);
  • replacement in inflorescence_view/src/app.rs at line 615
    [5.3633][5.3633:3704]()
    || action_button("C-d: postpone record", Msg::PostponeRecord);
    [5.3633]
    [5.3704]
    || action_button("C-d", "postpone record", Msg::PostponeRecord);
  • replacement in inflorescence_view/src/app.rs at line 617
    [5.3729][5.3729:3798]()
    || action_button("C-d: discard record", Msg::DiscardRecord);
    [5.3729]
    [8.3706]
    || action_button("C-d", "discard record", Msg::DiscardRecord);
  • replacement in inflorescence_view/src/app.rs at line 620
    [7.7993][7.7993:8060](),[7.8060][8.3708:3786]()
    || action_button("c: switch channel", Msg::SwitchChannel);
    let fork_channel = || action_button("f: fork channel", Msg::ForkChannel);
    [7.7993]
    [8.3786]
    || action_button("c", "switch channel", Msg::SwitchChannel);
    let fork_channel = || action_button("f", "fork channel", Msg::ForkChannel);
  • replacement in inflorescence_view/src/app.rs at line 623
    [8.3787][6.46:126](),[7.8060][6.46:126](),[5.3798][6.46:126]()
    let refresh_repo = || action_button("C-r: refresh repo", Msg::RefreshRepo);
    [8.3787]
    [8.3788]
    let refresh_repo =
    || action_button("C-r", "refresh repo", Msg::RefreshRepo);
  • replacement in inflorescence_view/src/app.rs at line 626
    [8.3789][7.8061:8192](),[6.126][7.8061:8192]()
    let confirm = || action_button("Enter: confirm", Msg::Confirm);
    let cancel = || action_button("Esc: cancel", Msg::Cancel);
    [8.3789]
    [5.3798]
    let confirm = || action_button("Enter", "confirm", Msg::Confirm);
    let cant_confirm_already_exists =
    || el(action_button_inner("Enter", "already exists"));
    let cancel = || action_button("Esc", "cancel", Msg::Cancel);
  • replacement in inflorescence_view/src/app.rs at line 687
    [8.4747][8.4747:5049]()
    let row = add_if(
    !unique,
    || {
    el(button(
    text("Enter: already exists")
    .shaping(text::Shaping::Advanced),
    ))
    },
    row,
    );
    [8.4747]
    [8.5049]
    let row = add_if(!unique, cant_confirm_already_exists, row);
  • replacement in inflorescence_view/src/app.rs at line 888
    [5.9922][5.9922:10083]()
    fn action_button<'a>(label: &'a str, on_press: Msg) -> Element<'a, Msg, Theme> {
    el(button(text(label).shaping(text::Shaping::Advanced)).on_press(on_press))
    [5.9922]
    [5.10083]
    fn action_button<'a>(
    key: &'a str,
    label: &'a str,
    on_press: Msg,
    ) -> Element<'a, Msg, Theme> {
    el(action_button_inner(key, label).on_press(on_press))
  • edit in inflorescence_view/src/app.rs at line 896
    [5.10086]
    [2.8111]
    fn action_button_inner<'a>(
    key: &'a str,
    label: &'a str,
    ) -> Button<'a, Msg, Theme> {
    let row = row([el(text(key)
    .shaping(text::Shaping::Advanced)
    .font(Font {
    weight: font::Weight::Bold,
    ..default()
    })
    .class(theme::Text::HighlightOnLightBg))])
    .spacing(6);
    let row = if label.is_empty() {
    row
    } else {
    row.push(el(text(label)))
    };
    button(row)
    }