mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-12 19:33:41 +00:00
fix: unify platform window titles as Gopeed (#1494)
This commit is contained in:
7 files changed
+13
-12
No files matched your search
@@ -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',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user