Added comments

This commit is contained in:
2025-08-19 19:18:31 +02:00
parent 2cc7253626
commit af92aa621a
23 changed files with 163 additions and 31 deletions

View File

@@ -1,13 +1,29 @@
import 'package:flutter/cupertino.dart';
class CustomTheme {
/// Main Theme of the App
/// Primary white color mainly used for text
static Color white = CupertinoColors.white;
/// Red color, typically used for destructive actions or error states
static Color red = CupertinoColors.destructiveRed;
/// Primary color of the app, used for buttons, highlights, and interactive elements
static Color primaryColor = CupertinoColors.systemGreen;
/// Background color for the main app scaffold and views
static Color backgroundColor = const Color(0xFF101010);
/// Background color for main UI elements like cards or containers.
static Color mainElementBackgroundColor = CupertinoColors.darkBackgroundGray;
/// Background color for player tiles in lists.
static Color playerTileColor = CupertinoColors.secondaryLabel;
/// Background color for buttons and interactive controls.
static Color buttonBackgroundColor = const Color(0xFF202020);
/// Color used to highlight the kamikaze button and players
static Color kamikazeColor = CupertinoColors.systemYellow;
// Line Colors for GraphView
@@ -18,25 +34,33 @@ class CustomTheme {
static final Color graphColor5 = primaryColor;
// Colors for PointsView
/// Color used to indicate a loss of points in the UI.
static Color pointLossColor = primaryColor;
/// Color used to indicate a gain of points in the UI.
static const Color pointGainColor = Color(0xFFF44336);
// Text Styles
/// Text style for mode titles, typically used in headers or section titles.
static TextStyle modeTitle = TextStyle(
color: primaryColor,
fontSize: 20,
fontWeight: FontWeight.bold,
);
/// Default text style for mode descriptions.
static const TextStyle modeDescription = TextStyle(
fontSize: 16,
);
/// Text style for titles of sections of [CupertinoListTile].
static TextStyle rowTitle = TextStyle(
fontSize: 20,
color: primaryColor,
fontWeight: FontWeight.bold,
);
/// Text style for round titles, used for prominent display of the round title
static TextStyle roundTitle = TextStyle(
fontSize: 60,
color: white,