mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
macOS ViewportBuilder tweaks (#3613)
This commit is contained in:
@@ -8,9 +8,9 @@ fn main() -> Result<(), eframe::Error> {
|
||||
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
|
||||
let options = eframe::NativeOptions {
|
||||
viewport: egui::ViewportBuilder::default()
|
||||
.with_decorations(false) // Hide the OS-specific "chrome" around the window
|
||||
.with_inner_size([400.0, 100.0])
|
||||
.with_min_inner_size([400.0, 100.0])
|
||||
.with_decorations(false) // Hide the OS-specific "chrome" around the window
|
||||
.with_transparent(true), // To have rounded corners we need transparency
|
||||
|
||||
..Default::default()
|
||||
|
||||
Reference in New Issue
Block a user