-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transparency not working with Egui/Eframe #4451
Comments
Try
OR
|
Hmmm, still does not work. Also i somehow don't get a windowed window, only fullscreen. fn main() -> eframe::Result<()> {
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
let native_options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
.with_transparent(true) // Make the window transparent
.with_decorations(false)
.with_max_inner_size([200.0, 200.0])
.with_min_inner_size([100.0,100.0]),
..Default::default()
};
eframe::run_native(
"esp",
native_options,
Box::new(|cc| Box::new(RustEsp::TemplateApp::new(cc).unwrap())),
)
} I am really confused right now. |
You ask a question, but I don't even know what an your OS is. may be Linux.
|
I tested your source code. let native_options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
// .with_fullscreen(true)
.with_inner_size(egui::vec2(800.0, 600.0))
// .with_decorations(false)
.with_transparent(true), // Make the window transparent
..Default::default()
}; |
@rustbasic thank you for now, ill try it later :) |
Hello, yes this works :). But i am still really really really confused. The window is only Transparent if it opens my 2nd monitor (it does not matter if it is set as the main or secondary monitor). Same thing if i try to open the window with glfw ... |
So i think this issue is not about egui/eframe/glfw but about windows? Really annoying ... I can drag the window to the other monitor and the transparency works ... |
@rustbasic i got a github email with your quote "Could you please apply the Pull Request below and see if it works as desired, and let me know the results?". I tried to add the branch as dependencie, got this error when i tried to cargo run: the package |
I closed it because I didn't think it could be resolved this way. |
Discussed in #4446
Originally posted by GeneralBombe May 3, 2024
Does anyone know how i can make a window transparent and use as a overlay? I am using egui, eframe and egui_glow. if i switch everytrhing to transparent, i only have a black window, where it should be transparent.
I think the Window Building is not the problem:
This is the app.rs i am using:
All colors work except transparent, thats why im thinking its eframe, but i really do not understand what the issue is.
Also in alt tab, it shows as transparent(i think). The eframe window is fullscreen:
I am not sure if the issue is ony my side or not, but i'd appreciate any help!
The text was updated successfully, but these errors were encountered: