diff options
author | Vika <vika@fireburn.ru> | 2024-08-19 21:42:04 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-08-19 21:42:04 +0300 |
commit | d0353dbc6ac624f63240ec64b83d238499cb0c7c (patch) | |
tree | dba8ed669d4f774217ee01c2fb4534835951161e /src/main.rs | |
parent | 2b25e0454c60bb30b9a531b94836ca0d64e6c5e1 (diff) | |
download | bowl-d0353dbc6ac624f63240ec64b83d238499cb0c7c.tar.zst |
Post composer UI prototype
Currently the UI does precisely nothing, but the ✨ Smart Summary button prints a message stating what it's supposed to do. The Post button currently just logs to the console, although ultimately it should send a message to a parent component or something. Perhaps even the composer UI itself should be a separate part that can provide an MF2-JSON document on a command.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..4f4688e --- /dev/null +++ b/src/main.rs @@ -0,0 +1,19 @@ +use adw::prelude::GtkWindowExt; +use relm4::{ComponentParts, ComponentSender, RelmApp, Component, ComponentController}; + +use bowl::PostComposerModel; + +const APPLICATION_ID: &str = "xyz.vikanezrimaya.kittybox.Bowl"; + +static GLIB_LOGGER: glib::GlibLogger = glib::GlibLogger::new( + glib::GlibLoggerFormat::Plain, + glib::GlibLoggerDomain::CrateTarget, +); + +fn main() { + log::set_logger(&GLIB_LOGGER).unwrap(); + log::set_max_level(log::LevelFilter::Debug); + + let app = RelmApp::new(APPLICATION_ID); + app.run::<PostComposerModel>( () ); +} |