leanflutter / window_manager

This plugin allows Flutter desktop apps to resizing and repositioning the window.
https://pub.dev/packages/window_manager
MIT License
701 stars 193 forks source link

setTitleBarStyle while retaining the frame #443

Open c0pp1ce opened 7 months ago

c0pp1ce commented 7 months ago

Currently, when using

 await windowManager.setTitleBarStyle(
    TitleBarStyle.hidden,
    windowButtonVisibility: false,
 );

The top part of the window frame is removed as well. Is this a bug, intended or am I missing something?

The problem is its visually obvious (since all other sides have the frame) as well as unintuitive because its not possible to resize the window at the top edge (though that could probably be reenabled through startResizing).

lunxinfeng commented 5 months ago

when setTitleBar hide, use media_kit enter fullscreen will has blank on the edges, Is this the problem?

c0pp1ce commented 5 months ago

This is what I did:

    await windowManager.setTitleBarStyle(
      TitleBarStyle.hidden,
      windowButtonVisibility: false,
    );

I mean the topside window frame. It is missing while all others are still there. I am unsure if this is an OS (Windows 10) limitation or if it is a problem with this library.

Xazin commented 4 months ago

There is this small border around application windows, when hiding the title bar, the top border/shadow disappears.

This happens both on Windows and Linux, I'm unsure about MacOS, haven't tested it.