Skip to content

How do I hide MacOS Title Bar #4284

Answered by duvenagep
duvenagep asked this question in Q&A
Discussion options

You must be logged in to vote

@tronical , @ogoffart

Thanks for all the help. Below the final results since the API change.

Results

MacOS Slint-Clone

Also thought I would put the code snippet here for others if needed.

use i_slint_backend_winit::winit::platform::macos::WindowBuilderExtMacOS;

slint::include_modules!();

fn main() -> Result<(), slint::PlatformError> {
    let mut backend = i_slint_backend_winit::Backend::new().unwrap();
    backend.window_builder_hook = Some(Box::new(|builder| {
        builder
            .with_fullsize_content_view(true)
            .with_title_hidden(true)
            .with_titlebar_transparent(true)
    }));

    slint::platform::set_platform(Box::new(backend));
    let

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@duvenagep
Comment options

@ogoffart
Comment options

@duvenagep
Comment options

@duvenagep
Comment options

Answer selected by tronical
@aurexav
Comment options

@ogoffart
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants