Rollback titlebar change on macOS
This commit is contained in:
parent
6163a4c7ac
commit
538689a8b3
|
|
@ -135,7 +135,7 @@ void main({bool isTesting = false}) async {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDesktopOS()) {
|
if (isDesktopOS() && !isMacOS()) {
|
||||||
doWhenWindowReady(() {
|
doWhenWindowReady(() {
|
||||||
final win = appWindow;
|
final win = appWindow;
|
||||||
win.title = 'Invoice Ninja';
|
win.title = 'Invoice Ninja';
|
||||||
|
|
|
||||||
|
|
@ -296,7 +296,7 @@ class MainScreen extends StatelessWidget {
|
||||||
policy: ReadingOrderTraversalPolicy(),
|
policy: ReadingOrderTraversalPolicy(),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
if (isDesktopOS()) AppTitleBar(),
|
if (isDesktopOS() && !isMacOS()) AppTitleBar(),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: ChangeLayoutBanner(
|
child: ChangeLayoutBanner(
|
||||||
appLayout: prefState.appLayout,
|
appLayout: prefState.appLayout,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,7 @@
|
||||||
import Cocoa
|
import Cocoa
|
||||||
import FlutterMacOS
|
import FlutterMacOS
|
||||||
import bitsdojo_window_macos
|
|
||||||
|
|
||||||
class MainFlutterWindow: BitsdojoWindow {
|
class MainFlutterWindow: NSWindow {
|
||||||
override func bitsdojo_window_configure() -> UInt {
|
|
||||||
return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
|
|
||||||
}
|
|
||||||
override func awakeFromNib() {
|
override func awakeFromNib() {
|
||||||
let flutterViewController = FlutterViewController.init()
|
let flutterViewController = FlutterViewController.init()
|
||||||
let windowFrame = self.frame
|
let windowFrame = self.frame
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue