From d0353dbc6ac624f63240ec64b83d238499cb0c7c Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 19 Aug 2024 21:42:04 +0300 Subject: Post composer UI prototype MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/main.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main.rs (limited to 'src/main.rs') 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::( () ); +} -- cgit 1.4.1