I am creating a rust app which uses winit and wgpu. I set the options
.with_titlebar_transparent(true)
when creating the winit window but I am not sure how to place a color under it. My goal is to make the background color of the content and the title bar the same. I have searched the documentation and repositories of both winit and wgpu but have not found anything. Does someone know how to do this/knows an open source project that did it successfully/if its even possible.
You also need to set
.with_fullsize_content_view(true).Here is a full sample using
wgpu:using these dependencies:
you will get