git.lucas.co / cce-fonts
font browser

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

 src/main.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main.rs b/src/main.rs
index 9521cf3..27defd1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -529,6 +529,10 @@ fn preview_text_buffer_clamped(mut buf: Buffer, font_system: &mut FontSystem, ma
 impl Application for TypefaceApp {
     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);
         // Parse command line arguments