git.lucas.co / cce-color-editor
color picker and palette editor
git clone https://git.lucas.co/cce-color-editor.git

commitacc1e3c9dc7736f0ddab4698ca4e1c21071f88f7
parentcb12507ee0
authorLucas Galante <[email protected]>
date2026-06-24 10:25
Implement ui_context for ColorApp 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 948ab1c..d3e6f22 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -596,6 +596,10 @@ impl ColorApp {
 impl Application for ColorApp {
     type Message = Message;
 
+    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 {
         let args: Vec<String> = std::env::args().collect();
         let mut with_alpha = false;