diff --git a/lib/utility/styles.dart b/lib/utility/styles.dart deleted file mode 100644 index d0f2921..0000000 --- a/lib/utility/styles.dart +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:flutter/cupertino.dart'; - -abstract class Styles { - static Color primaryColor = CupertinoColors.systemGreen; - static Color backgroundColor = const Color(0xFF080808); - - static TextStyle modeTitle = TextStyle( - color: primaryColor, - fontSize: 20, - fontWeight: FontWeight.bold, - ); - - static const TextStyle modeDescription = TextStyle( - fontSize: 16, - ); - - static TextStyle createGameTitle = TextStyle( - fontSize: 20, - color: primaryColor, - fontWeight: FontWeight.bold, - ); - - static TextStyle roundTitle = const TextStyle( - fontSize: 60, - color: CupertinoColors.white, - fontWeight: FontWeight.bold, - ); - - static TextStyle roundPlayers = const TextStyle( - fontSize: 20, - color: CupertinoColors.white, - fontWeight: FontWeight.bold, - ); -} diff --git a/lib/views/create_game_view.dart b/lib/views/create_game_view.dart index 2ffbe22..14e961b 100644 --- a/lib/views/create_game_view.dart +++ b/lib/views/create_game_view.dart @@ -1,5 +1,5 @@ import 'package:cabo_counter/data/game_session.dart'; -import 'package:cabo_counter/utility/styles.dart'; +import 'package:cabo_counter/utility/theme.dart' as theme; import 'package:cabo_counter/views/active_game_view.dart'; import 'package:cabo_counter/views/mode_selection_view.dart'; import 'package:flutter/cupertino.dart'; @@ -42,7 +42,7 @@ class _CreateGameState extends State { padding: const EdgeInsets.fromLTRB(10, 10, 0, 0), child: Text( 'Spiel', - style: Styles.createGameTitle, + style: theme.createGameTitle, ), ), Padding( @@ -96,7 +96,7 @@ class _CreateGameState extends State { padding: const EdgeInsets.fromLTRB(10, 10, 0, 0), child: Text( 'Spieler:innen', - style: Styles.createGameTitle, + style: theme.createGameTitle, ), ), Expanded( diff --git a/lib/views/mode_selection_view.dart b/lib/views/mode_selection_view.dart index 13a4b99..5876618 100644 --- a/lib/views/mode_selection_view.dart +++ b/lib/views/mode_selection_view.dart @@ -1,4 +1,3 @@ -import 'package:cabo_counter/utility/styles.dart'; import 'package:cabo_counter/utility/theme.dart' as theme; import 'package:flutter/cupertino.dart'; @@ -16,10 +15,10 @@ class ModeSelectionMenu extends StatelessWidget { Padding( padding: const EdgeInsets.fromLTRB(0, 16, 0, 0), child: CupertinoListTile( - title: Text('101 Punkte', style: Styles.modeTitle), + title: Text('101 Punkte', style: theme.modeTitle), subtitle: const Text( 'Es wird solange gespielt, bis einer Spieler mehr als 100 Punkte erreicht', - style: Styles.modeDescription, + style: theme.modeDescription, maxLines: 3, ), onTap: () { @@ -34,7 +33,7 @@ class ModeSelectionMenu extends StatelessWidget { subtitle: const Text( 'Dem Spiel sind keine Grenzen gesetzt. Es wird so lange ' 'gespielt, bis Ihr keine Lust mehr habt.', - style: Styles.modeDescription, + style: theme.modeDescription, maxLines: 3, ), onTap: () {