1
0
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:
Emil Ernerfeldt
2023-11-23 10:43:30 +01:00
committed by GitHub
parent 85489dc1dd
commit a2b15b23ad
6 changed files with 151 additions and 94 deletions

View File

@@ -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()