mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
Fix up merged PRs: every presenter-view button uses the light-on-dark style (#221)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d2bf428362
commit
6902c4bf92
@@ -1749,22 +1749,22 @@ fn presenter_window(ctx: &egui::Context, show: &mut Show, doc: &Presentation, no
|
||||
});
|
||||
});
|
||||
ui.horizontal(|ui| {
|
||||
if ui.button(if paused { "Resume" } else { "Pause" }).clicked() {
|
||||
if button(ui, if paused { "Resume" } else { "Pause" }).clicked() {
|
||||
show.timer.toggle(now);
|
||||
}
|
||||
if ui.button("Reset").clicked() {
|
||||
if button(ui, "Reset").clicked() {
|
||||
show.timer.reset(now);
|
||||
}
|
||||
if ui.button(if show.blank == Some(Color32::BLACK) { "Black on" } else { "Black" }).clicked() {
|
||||
if button(ui, if show.blank == Some(Color32::BLACK) { "Black on" } else { "Black" }).clicked() {
|
||||
toggle_blank(show, Color32::BLACK);
|
||||
}
|
||||
if ui.button(if show.blank == Some(Color32::WHITE) { "White on" } else { "White" }).clicked() {
|
||||
if button(ui, if show.blank == Some(Color32::WHITE) { "White on" } else { "White" }).clicked() {
|
||||
toggle_blank(show, Color32::WHITE);
|
||||
}
|
||||
if ui.button(if show.grid { "All slides on" } else { "All slides" }).clicked() {
|
||||
if button(ui, if show.grid { "All slides on" } else { "All slides" }).clicked() {
|
||||
show.grid = !show.grid;
|
||||
}
|
||||
if ui.button(show.zoom_label()).clicked() {
|
||||
if button(ui, show.zoom_label()).clicked() {
|
||||
show.zoom_key();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user