mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
feat: platform title bar buttons add
This commit is contained in:
parent
ff1446982f
commit
54048cbfc3
@ -123,8 +123,7 @@ class PageWindowTitleBar extends StatelessWidget
|
||||
),
|
||||
if (leading != null) leading!,
|
||||
Expanded(child: MoveWindow(child: Center(child: center))),
|
||||
if (!kIsMacOS && !kIsMobile)
|
||||
TitleBarActionButtons(color: foregroundColor)
|
||||
if (!kIsMacOS && !kIsMobile) const PlatformWindowButtons()
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -235,6 +235,13 @@ class SpotubeState extends ConsumerState<Spotube> with WidgetsBindingObserver {
|
||||
macosTheme: macosTheme,
|
||||
macosDarkTheme: macosDarkTheme,
|
||||
themeMode: themeMode,
|
||||
windowButtonConfig: PlatformWindowButtonConfig(
|
||||
isMaximized: appWindow.isMaximized,
|
||||
onClose: appWindow.close,
|
||||
onRestore: appWindow.restore,
|
||||
onMaximize: appWindow.maximize,
|
||||
onMinimize: appWindow.minimize,
|
||||
),
|
||||
shortcuts: PlatformProperty.all({
|
||||
...WidgetsApp.defaultShortcuts.map((key, value) {
|
||||
return MapEntry(
|
||||
|
Loading…
Reference in New Issue
Block a user