git.lucas.co / cce-mail
mail client (IMAP/SMTP)
git clone https://git.lucas.co/cce-mail.git

commit52e1b507f4480e0aa9f8030bb9379e5f9dbc2e76
parent4a3404aa89
authorLucas Galante <[email protected]>
date2026-06-24 10:26
Implement ui_context for Application to support default draggable window

 src/main.rs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 5709eb5..a4df73b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1168,10 +1168,14 @@ impl ClearEmailApp {
 impl Application for ClearEmailApp {
     type Message = AppMessage;
 
+    fn ui_context(&self) -> Option<&cce_ui::context::UiContext> {
+        Some(&self.ui_context)
+    }
+
     fn new(_qh: &QueueHandle<EngineState<Self>>, _sender: calloop::channel::Sender<Self::Message>) -> Self {
         cce_ui::scale::set_scale_factor(1.0);
         let btn_compose = Button::new(10.0, 15.0, 36.0, 36.0).with_label("+");
-        let paginator = Paginator::new(56.0, vec![
+        let paginator = Paginator::new(vec![
             "Inbox".to_string(),
             "Sent".to_string(),
             "Trash".to_string(),