Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: help: Start first screen with a call to long-press #62

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/ui/screens/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,25 @@ use crate::watched_tasks::WatchedTasksBuilder;
const SCREEN_TYPE: AlertScreen = AlertScreen::Help;
const PAGES: &[&str] = &[
"Hey there!

A short guide on how
this interface works:

Please long press the
lower button to
continue.
...",
"...

Long presses on the
lower button perform
actions.

...",
"...

Short presses on the
lower button toggle
between actions.
between options.

...",
"...
Expand Down Expand Up @@ -171,7 +178,7 @@ impl ActiveScreen for Active {
self.page.modify(|page| match (page.unwrap_or(0), up) {
(0, true) => Some(0),
(p, true) => Some(p - 1),
(2, false) => Some(2),
(3, false) => Some(3),
(p, false) => Some(p + 1),
});
}
Expand Down
Loading