This commit is contained in:
lollipopkit
2023-12-11 11:13:49 +08:00
parent 73752bffc3
commit ce9929e93f
6 changed files with 23 additions and 10 deletions

View File

@@ -74,10 +74,7 @@ class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
static Future<void> updateTitlebarHeight() async {
switch (Platform.operatingSystem) {
case 'macos':
final newTitlebarHeight = await windowManager.getTitleBarHeight();
if (_titlebarHeight != newTitlebarHeight) {
_titlebarHeight = newTitlebarHeight;
}
_titlebarHeight = 27;
break;
// Draw a titlebar on Linux
case 'linux' || 'windows':