pimp-up action buttons
[?]
Jul 24, 2025, 7:46 PM
BAUK5BONEFQ3KIQPFLM7MGNCS5GWBILBXZMTIGN5LWTYTNNNNSPQCDependencies
- [2]
MYGIBRRHwip custom theme - [3]
PKJCFSBMtheme improvements - [4]
XIASAP3Gclippy - [5]
A6Z4O6RCactions menu - [6]
7BLZN73Oadd a key to refresh repo - [7]
JZXYSIYDchannel selection! - [8]
5ZRDYL6Kfork channel, fix recording esc key - [9]
23SFYK4Qbig view refactor into a new crate
Change contents
- edit in inflorescence_view/src/theme.rs at line 100
HighlightOnLightBg, - edit in inflorescence_view/src/theme.rs at line 269
Text::HighlightOnLightBg => text::Style {color: Some(MAGENTA_DARK),}, - replacement in inflorescence_view/src/app.rs at line 12
button, column, container, row, text, text_editor, text_input,button, column, container, row, text, text_editor, text_input, Button, - replacement in inflorescence_view/src/app.rs at line 567
"← | h","←| h","", - replacement in inflorescence_view/src/app.rs at line 574
"↓ | j","↓| j","", - replacement in inflorescence_view/src/app.rs at line 581
"↑ | k","↑| k","", - replacement in inflorescence_view/src/app.rs at line 588
"→ | l","→| l","", - replacement in inflorescence_view/src/app.rs at line 595
"S-(↓ | j): no skip","S-(↓| j)","no skip", - replacement in inflorescence_view/src/app.rs at line 602
"S-(↑ | k): no skip","S-(↑| k)","no skip", - replacement in inflorescence_view/src/app.rs at line 609
|| action_button("a: track file", Msg::AddUntrackedFile);let rm_added_file = || action_button("x: untrack file", Msg::RmAddedFile);|| 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
let start_record = || action_button("r: record", Msg::StartRecord);let save_record = || action_button("C-s: save record", Msg::SaveRecord);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
|| action_button("C-d: postpone record", Msg::PostponeRecord);|| action_button("C-d", "postpone record", Msg::PostponeRecord); - replacement in inflorescence_view/src/app.rs at line 617
|| action_button("C-d: discard record", Msg::DiscardRecord);|| action_button("C-d", "discard record", Msg::DiscardRecord); - replacement in inflorescence_view/src/app.rs at line 620
|| action_button("c: switch channel", Msg::SwitchChannel);let fork_channel = || action_button("f: fork channel", Msg::ForkChannel);|| 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
let refresh_repo = || action_button("C-r: refresh repo", Msg::RefreshRepo);let refresh_repo =|| action_button("C-r", "refresh repo", Msg::RefreshRepo); - replacement in inflorescence_view/src/app.rs at line 626
let confirm = || action_button("Enter: confirm", Msg::Confirm);let cancel = || action_button("Esc: cancel", Msg::Cancel);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
let row = add_if(!unique,|| {el(button(text("Enter: already exists").shaping(text::Shaping::Advanced),))},row,);let row = add_if(!unique, cant_confirm_already_exists, row); - replacement in inflorescence_view/src/app.rs at line 888
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))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
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)}