Closed Adrian-Samoticha closed 3 years ago
This pull request addresses issues #10, #11, and #12 while also providing the following extra utility features:
Get the height of the titlebar when the full-size content view is enabled.
final titlebarHeight = Window.getTitlebarHeight();
Set the document to be edited.
Window.setDocumentEdited();
Set the document to be unedited.
Window.setDocumentUnedited();
Set the represented file of the window.
Window.setRepresentedFilename('path/to/file.txt');
Set the represented URL of the window.
Window.setRepresentedUrl('https://flutter.dev');
Hide the titlebar of the window.
Window.hideTitle();
Show the titlebar of the window.
Window.showTitle();
Make the window's titlebar transparent.
Window.makeTitlebarTransparent();
Make the window's titlebar opaque.
Window.makeTitlebarOpaque();
Enable the window's full-size content view. It is recommended to enable the full-size content view when making the titlebar transparent.
Window.enableFullSizeContentView();
Disable the window's full-size content view.
Window.disableFullSizeContentView();
Zoom the window.
Window.zoomWindow();
Unzoom the window.
Window.unzoomWindow();
Get if the window is zoomed.
final isWindowZoomed = Window.isWindowZoomed();
Get if the window is fullscreened.
final isWindowFullscreened = Window.isWindowFullscreened();
Hide/Show the window's zoom button.
Window.hideZoomButton(); Window.showZoomButton();
Hide/Show the window's miniaturize button.
Window.hideMiniaturizeButton(); Window.showMiniaturizeButton();
Hides/Show the window's close button.
Window.hideCloseButton(); Window.showCloseButton();
Enable/Disable the window's zoom button.
Window.enableZoomButton(); Window.disableZoomButton();
Enable/Disable the window's miniaturize button.
Window.enableMiniaturizeButton(); Window.disableMiniaturizeButton();
Enable/Disable the window's close button.
Window.enableCloseButton(); Window.disableCloseButton();
Get whether the window is currently being resized by the user.
final isWindowInLiveResize = Window.isWindowInLiveResize();
Set the window's alpha value.
Window.setWindowAlphaValue(0.75);
Get if the window is visible.
final isWindowVisible = Window.isWindowVisible();
Set the window's titlebar to the default (opaque) color.
Window.setWindowBackgroundColorToDefaultColor()
Make the window's titlebar clear.
Window.setWindowBackgroundColorToClear()
Set the window's blur view state. (This resolves #12.)
Window.setBlurViewState(MacOSBlurViewState.active); Window.setBlurViewState(MacOSBlurViewState.inactive); Window.setBlurViewState(MacOSBlurViewState.followsWindowActiveState);
This pull request addresses issues #10, #11, and #12 while also providing the following extra utility features:
Get the height of the titlebar when the full-size content view is enabled.
Set the document to be edited.
Set the document to be unedited.
Set the represented file of the window.
Set the represented URL of the window.
Hide the titlebar of the window.
Show the titlebar of the window.
Make the window's titlebar transparent.
Make the window's titlebar opaque.
Enable the window's full-size content view. It is recommended to enable the full-size content view when making the titlebar transparent.
Disable the window's full-size content view.
Zoom the window.
Unzoom the window.
Get if the window is zoomed.
Get if the window is fullscreened.
Hide/Show the window's zoom button.
Hide/Show the window's miniaturize button.
Hides/Show the window's close button.
Enable/Disable the window's zoom button.
Enable/Disable the window's miniaturize button.
Enable/Disable the window's close button.
Get whether the window is currently being resized by the user.
Set the window's alpha value.
Get if the window is visible.
Set the window's titlebar to the default (opaque) color.
Make the window's titlebar clear.
Set the window's blur view state. (This resolves #12.)