Skip to content

Commit

Permalink
Merge pull request #48 from alexmercerind/macos_issue_22
Browse files Browse the repository at this point in the history
Macos issues #22 and #47
  • Loading branch information
Adrian-Samoticha authored Dec 5, 2022
2 parents fe8cbad + 283bdf1 commit e02bb65
Show file tree
Hide file tree
Showing 11 changed files with 932 additions and 186 deletions.
76 changes: 51 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ _Example app running on Microsoft Windows 11 (pre-compiled release mode x64 exec
## Platforms
|Platform|Status|Maintainer |
|--------|------|------------------------------------------------|
|Windows ||[Hitesh Kumar Saini](https://github.com/alexmercerind) |
|macOS ||[Adrian Samoticha](https://github.com/Adrian-Samoticha) |
|Linux ||[Hitesh Kumar Saini](https://github.com/alexmercerind) |
| Platform | Status | Maintainer |
| -------- | ------ | ------------------------------------------------------- |
| Windows | | [Hitesh Kumar Saini](https://github.com/alexmercerind) |
| macOS | | [Adrian Samoticha](https://github.com/Adrian-Samoticha) |
| Linux | | [Hitesh Kumar Saini](https://github.com/alexmercerind) |
## Docs
Expand Down Expand Up @@ -57,26 +57,26 @@ await Window.setEffect(

| Effect | Description | Windows | macOS | Linux |
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ----- | ----- |
| `WindowEffect.transparent` | Transparent window background. ||||
| `WindowEffect.disabled` | Default window background. ||||
| `WindowEffect.solid` | Solid colored window background. ||||
| `WindowEffect.aero` | Aero glass effect. Windows Vista & Windows 7 like glossy blur effect. ||| |
| `WindowEffect.acrylic` | Acrylic is a type of brush that creates a translucent texture. You can apply acrylic to app surfaces to add depth and help establish a visual hierarchy. Works only on Windows 10 version 1803 or higher. ||| |
| `WindowEffect.mica` | Mica is an opaque, dynamic material that incorporates theme and desktop wallpaper to paint the background of long-lived windows. Works only on Windows 11 or greater. ||| |
| `WindowEffect.tabbed` | Tabbed is a Mica like material that incorporates theme and desktop wallpaper, but is more sensitive to desktop wallpaper color. Works only on later Windows 11 versions (builds higher than 22523). ||| |
| `WindowEffect.titlebar` | The material for a window’s titlebar. | || |
| `WindowEffect.menu` | The material for menus. | || |
| `WindowEffect.popover` | The material for the background of popover windows. | || |
| `WindowEffect.sidebar` | The material for the background of window sidebars. | || |
| `WindowEffect.headerView` | The material for in-line header or footer views. | || |
| `WindowEffect.sheet` | The material for the background of sheet windows. | || |
| `WindowEffect.windowBackground` | The material for the background of opaque windows. | || |
| `WindowEffect.hudWindow` | The material for the background of heads-up display (HUD) windows. | || |
| `WindowEffect.fullScreenUI` | The material for the background of a full-screen modal interface. | || |
| `WindowEffect.toolTip` | The material for the background of a tool tip. | || |
| `WindowEffect.contentBackground` | The material for the background of opaque content. | || |
| `WindowEffect.underWindowBackground` | The material to show under a window's background. | || |
| `WindowEffect.underPageBackground` | The material for the area behind the pages of a document. | || |
| `WindowEffect.transparent` | Transparent window background. | | | |
| `WindowEffect.disabled` | Default window background. | | | |
| `WindowEffect.solid` | Solid colored window background. | | | |
| `WindowEffect.aero` | Aero glass effect. Windows Vista & Windows 7 like glossy blur effect. | | | |
| `WindowEffect.acrylic` | Acrylic is a type of brush that creates a translucent texture. You can apply acrylic to app surfaces to add depth and help establish a visual hierarchy. Works only on Windows 10 version 1803 or higher. | | | |
| `WindowEffect.mica` | Mica is an opaque, dynamic material that incorporates theme and desktop wallpaper to paint the background of long-lived windows. Works only on Windows 11 or greater. | | | |
| `WindowEffect.tabbed` | Tabbed is a Mica like material that incorporates theme and desktop wallpaper, but is more sensitive to desktop wallpaper color. Works only on later Windows 11 versions (builds higher than 22523). | | | |
| `WindowEffect.titlebar` | The material for a window’s titlebar. | | | |
| `WindowEffect.menu` | The material for menus. | | | |
| `WindowEffect.popover` | The material for the background of popover windows. | | | |
| `WindowEffect.sidebar` | The material for the background of window sidebars. | | | |
| `WindowEffect.headerView` | The material for in-line header or footer views. | | | |
| `WindowEffect.sheet` | The material for the background of sheet windows. | | | |
| `WindowEffect.windowBackground` | The material for the background of opaque windows. | | | |
| `WindowEffect.hudWindow` | The material for the background of heads-up display (HUD) windows. | | | |
| `WindowEffect.fullScreenUI` | The material for the background of a full-screen modal interface. | | | |
| `WindowEffect.toolTip` | The material for the background of a tool tip. | | | |
| `WindowEffect.contentBackground` | The material for the background of opaque content. | | | |
| `WindowEffect.underWindowBackground` | The material to show under a window's background. | | | |
| `WindowEffect.underPageBackground` | The material for the area behind the pages of a document. | | | |


_Windows 10 versions higher than 1803 & all Windows 11 versions are supported by the plugin, although not all effects might be available to a particular Windows version. See [pinned issues](https://github.com/alexmercerind/flutter_acrylic/issues) if you encounter some problem or feel free to file one yourself._
Expand Down Expand Up @@ -318,6 +318,32 @@ Window.setToolbarStyle(MacOSToolbarStyle.unified);
Window.setToolbarStyle(MacOSToolbarStyle.unifiedCompact);
```

Enable and disable window shadow.

```dart
Window.enableShadow();
Window.disableShadow();
```

Make window fully transparent (with no blur effect):

```dart
Window.makeWindowFullyTransparent();
```

Acknowledge or ignore mouse events:

```dart
Window.acknowledgeMouseEvents();
Window.ignoreMouseEvents();
```

Set the window's subtitle:

```dart
Window.setSubtitle('subtitle');
```

More features coming soon.

## Notes
Expand Down
Loading

0 comments on commit e02bb65

Please sign in to comment.