diff options
author | Vika <vika@fireburn.ru> | 2025-01-30 09:51:33 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2025-01-30 09:51:33 +0300 |
commit | 29568a14b389049480591e67a116400d030e8db1 (patch) | |
tree | 64048c64f9b24921e35b707bf1b76298480764fe /src/lib.rs | |
parent | 62263e0e619625f2c5dd0b4364b43bd4fefc8ccd (diff) | |
download | bowl-29568a14b389049480591e67a116400d030e8db1.tar.zst |
Provide an application icon
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index 111be23..9e7569f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,10 @@ use adw::prelude::*; use libsecret::prelude::{RetrievableExtManual, RetrievableExt}; use relm4::{actions::{RelmAction, RelmActionGroup}, gtk, loading_widgets::LoadingWidgets, prelude::{AsyncComponent, AsyncComponentController, AsyncComponentParts, AsyncController, ComponentController, Controller}, AsyncComponentSender, Component, RelmWidgetExt}; +pub mod icons { + include!(concat!(env!("OUT_DIR"), "/icons.rs")); +} + pub mod components { pub(crate) mod smart_summary; #[cfg(feature = "smart-summary")] @@ -413,7 +417,7 @@ impl AsyncComponent for App { set_popover = >k::PopoverMenu::from_model(Some(&main_menu)) {}, #[watch] set_visible: model.micropub.is_some(), - set_icon_name: relm4_icons::icon_names::MENU, + set_icon_name: "menu", }, pack_end = >k::Button { set_icon_name: "document-send-symbolic", @@ -550,6 +554,7 @@ impl AsyncComponent for App { Input::SubmitButtonPressed => { if self.micropub.is_some() { self.submit_busy_guard = Some(relm4::main_adw_application().mark_busy()); + // TODO: too easy to deadlock here, refactor to take a channel self.post_editor.emit(PostEditorInput::Submit); }; }, |