mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-01 18:23:52 -06:00
presenter: the Presenter View opens its own window over the full-screen show
The show holds the main window full screen, and a viewport mount opened from a full-screen window shows as a layer in it, so the Presenter View never got a window of its own. It now opens over the show as production's does (ViewportWindow::opens_over_full_screen). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
83618fc410
commit
b0e7f71e1e
@@ -137,6 +137,7 @@ pub(super) fn presenter_pass(ui: &mut Ui, app: &mut crate::SlideApp, show: &mut
|
||||
ViewportWindow::new(Word::plain("Presenter View — DeckCraft"))
|
||||
.overlay(|overlay| overlay.size(egui::vec2(1100.0, 700.0)))
|
||||
.takes_unfocused_keys()
|
||||
.opens_over_full_screen()
|
||||
.show(ui, |ui, cx| {
|
||||
if !craft::ui::runtime::measure::active(ui.ctx()) {
|
||||
viewport = Some(ui.ctx().viewport_id());
|
||||
|
||||
Reference in New Issue
Block a user