mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Web app: the brush-preset warning takes a notice Tone, and served_fonts::install no longer takes the context
This commit is contained in:
1 parent
0df7ad11c4
commit
1d490ea99a
2 files changed
+9
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user