Web app: the brush-preset warning takes a notice Tone, and served_fonts::install no longer takes the context

This commit is contained in:
aiongg committed 2026-11-17 17:46:50 +00:00
1 parent 0df7ad11c4
commit 1d490ea99a
2 files changed
+9 -3

No files matched your search

+8 -2
View File
@@ -108,7 +108,13 @@ pub fn start() {
services.load_prefs = Some(Box::new(move || initial.take().unwrap_or_else(stored_preferences)));
let mut app = PhotocraftApp::with_context(cc.egui_ctx.clone(), session, services);
if !preset_warnings.is_empty() {
photocraft_ui_egui::notices::post(&mut app, i18n::t("Some brush presets could not be loaded"), preset_warnings, true, None);
photocraft_ui_egui::notices::post(
&mut app,
i18n::t("Some brush presets could not be loaded"),
preset_warnings,
photocraft_ui_egui::notices::Tone::Bad,
None,
);
}
listen_pen(&pen_target, app.stylus.feed.clone());
app.set_theme(&cc.egui_ctx, AppTheme::pro());
@@ -438,7 +444,7 @@ impl WebShell {
}
});
}
served_fonts::install(&mut self.app, ctx, arrived);
served_fonts::install(&mut self.app, arrived);
}
}
+1 -1
View File
@@ -5,7 +5,7 @@
//! [`show`]; `show` hands them to the window's toast queue, which owns the cards, their timers and
//! the hover pause. [`Live`] remembers which queued toast belongs to which notice.
use craft::theme::variant::Tone;
pub use craft::theme::variant::Tone;
use craft::ui::notices::{NoticeCenter, NoticeEnd, PostedNotice};
use craft::ui::runtime::toast::ToastId;
use serde::{Deserialize, Serialize};