fix: unify platform window titles as Gopeed

This commit is contained in:
Levi committed 2026-09-08 23:15:55 +08:00
1 parent 481675107f
commit 7c3d7269fe
7 files changed
+13 -12

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ class _GopeedAppState extends ConsumerState<GopeedApp> with WidgetsBindingObserv
return shad.ShadcnApp.router(
debugShowCheckedModeBanner: false,
disableBrowserContextMenu: false,
onGenerateTitle: (context) => context.l10n.appTitle,
title: 'Gopeed',
theme: AppTheme.light(themeColor),
darkTheme: AppTheme.dark(themeColor),
materialTheme: isLightTheme ? AppTheme.materialLight(themeColor) : AppTheme.materialDark(themeColor),
@@ -16,6 +16,7 @@ class AppWindowBootstrap {
await windowManager.ensureInitialized();
final windowOptions = WindowOptions(
title: 'Gopeed',
size: const Size(1024, 768),
center: true,
skipTaskbar: false,
@@ -74,8 +75,8 @@ class AppWindowBootstrap {
static String subWindowTitle(AppWindowType type, AppLocalizations l10n) {
return switch (type) {
AppWindowType.createTask => '${l10n.create} - Gopeed',
_ => l10n.appTitle,
AppWindowType.createTask => 'Gopeed-${l10n.create}',
_ => 'Gopeed',
};
}