Procházet zdrojové kódy

fix: use opaque companion background

Alvin Unreal před 2 měsíci
rodič
revize
0f923fdef6
2 změnil soubory, kde provedl 3 přidání a 7 odebrání
  1. 2 6
      companion/src/app.rs
  2. 1 1
      companion/src/main.rs

+ 2 - 6
companion/src/app.rs

@@ -451,7 +451,7 @@ impl eframe::App for CompanionApp {
                 return;
                 return;
             }
             }
             egui::CentralPanel::default()
             egui::CentralPanel::default()
-                .frame(egui::Frame::none().fill(egui::Color32::TRANSPARENT))
+                .frame(egui::Frame::none().fill(egui::Color32::BLACK))
                 .show(ctx, |ui| {
                 .show(ctx, |ui| {
                     ui.centered_and_justified(|ui| {
                     ui.centered_and_justified(|ui| {
                         ui.label("No active sessions");
                         ui.label("No active sessions");
@@ -594,15 +594,11 @@ impl eframe::App for CompanionApp {
         egui::CentralPanel::default()
         egui::CentralPanel::default()
             .frame(
             .frame(
                 egui::Frame::none()
                 egui::Frame::none()
-                    .fill(egui::Color32::TRANSPARENT)
+                    .fill(egui::Color32::BLACK)
                     .inner_margin(egui::Margin::ZERO),
                     .inner_margin(egui::Margin::ZERO),
             )
             )
             .show(ctx, |ui| {
             .show(ctx, |ui| {
                 ui.spacing_mut().item_spacing = egui::Vec2::ZERO;
                 ui.spacing_mut().item_spacing = egui::Vec2::ZERO;
-                // Speed is applied by registering GIF bytes with scaled frame
-                // delays. loopStyle is still reserved for future playback
-                // behavior that is independent from the selected GIF pack.
-                let _loop_style = &self.loop_style;
                 render_session(ui, ctx, &session, &agent_frames, self.size, win_w, win_h);
                 render_session(ui, ctx, &session, &agent_frames, self.size, win_w, win_h);
             });
             });
 
 

+ 1 - 1
companion/src/main.rs

@@ -39,7 +39,7 @@ fn main() -> eframe::Result {
             .with_title("oh-my-opencode-slim-companion")
             .with_title("oh-my-opencode-slim-companion")
             .with_app_id("oh-my-opencode-slim-companion")
             .with_app_id("oh-my-opencode-slim-companion")
             .with_decorations(false)
             .with_decorations(false)
-            .with_transparent(true)
+            .with_transparent(false)
             .with_always_on_top()
             .with_always_on_top()
             .with_active(false)
             .with_active(false)
             .with_inner_size([120.0, 120.0]),
             .with_inner_size([120.0, 120.0]),