mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05: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!,
|
if (leading != null) leading!,
|
||||||
Expanded(child: MoveWindow(child: Center(child: center))),
|
Expanded(child: MoveWindow(child: Center(child: center))),
|
||||||
if (!kIsMacOS && !kIsMobile)
|
if (!kIsMacOS && !kIsMobile) const PlatformWindowButtons()
|
||||||
TitleBarActionButtons(color: foregroundColor)
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -235,6 +235,13 @@ class SpotubeState extends ConsumerState<Spotube> with WidgetsBindingObserver {
|
|||||||
macosTheme: macosTheme,
|
macosTheme: macosTheme,
|
||||||
macosDarkTheme: macosDarkTheme,
|
macosDarkTheme: macosDarkTheme,
|
||||||
themeMode: themeMode,
|
themeMode: themeMode,
|
||||||
|
windowButtonConfig: PlatformWindowButtonConfig(
|
||||||
|
isMaximized: appWindow.isMaximized,
|
||||||
|
onClose: appWindow.close,
|
||||||
|
onRestore: appWindow.restore,
|
||||||
|
onMaximize: appWindow.maximize,
|
||||||
|
onMinimize: appWindow.minimize,
|
||||||
|
),
|
||||||
shortcuts: PlatformProperty.all({
|
shortcuts: PlatformProperty.all({
|
||||||
...WidgetsApp.defaultShortcuts.map((key, value) {
|
...WidgetsApp.defaultShortcuts.map((key, value) {
|
||||||
return MapEntry(
|
return MapEntry(
|
||||||
|
Loading…
Reference in New Issue
Block a user