-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(macOS): hide traffic lights in band and dock sizes
- Loading branch information
1 parent
d97b51d
commit dabd68f
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
import 'package:flutter/services.dart'; | ||
|
||
class MacOSWindowControlButtonManager { | ||
static const platform = MethodChannel('not.ci.rune/window_control_button'); | ||
static var shared = MacOSWindowControlButtonManager._(); | ||
|
||
static Future<void> setVertical() async { | ||
MacOSWindowControlButtonManager._(); | ||
|
||
var platform = MethodChannel('not.ci.rune/window_control_button'); | ||
|
||
Future<void> setVertical() async { | ||
await platform.invokeMethod('set_vertical'); | ||
} | ||
|
||
Future<void> setHide() async { | ||
await platform.invokeMethod('set_hide'); | ||
} | ||
|
||
Future<void> setShow() async { | ||
await platform.invokeMethod('set_show'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters