It's just a timer

This commit is contained in:
2025-03-15 00:02:39 +01:00
parent a29f090895
commit 8c7150a1ed
2 changed files with 14 additions and 5 deletions

View File

@@ -15,11 +15,20 @@ class MyApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
title: 'Simple Timer', title: 'Just a timer',
theme: ThemeData( darkTheme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), brightness: Brightness.dark,
useMaterial3: true,
scaffoldBackgroundColor: const Color(0xFF111827),
colorSchemeSeed: const Color(0xFF111827),
highlightColor: const Color(0xff1f2937),
textTheme: TextTheme(
bodyLarge: TextStyle(fontSize: 22),
bodyMedium: TextStyle(fontSize: 20),
bodySmall: TextStyle(fontSize: 17),
), ),
home: const MyHomePage(title: 'Simple Timer'), ),
home: const MyHomePage(title: 'Just a timer'),
); );
} }
} }

View File

@@ -28,7 +28,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
Win32Window::Size size(720, 640); Win32Window::Size size(720, 640);
Win32Window::Point origin((GetSystemMetrics(SM_CXSCREEN) - size.width) / 2, Win32Window::Point origin((GetSystemMetrics(SM_CXSCREEN) - size.width) / 2,
(GetSystemMetrics(SM_CYSCREEN) - size.height) / 2); (GetSystemMetrics(SM_CYSCREEN) - size.height) / 2);
if (!window.Create(L"simple_timer", origin, size)) { if (!window.Create(L"Just a timer", origin, size)) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
window.SetQuitOnClose(true); window.SetQuitOnClose(true);