UI fixes and league

This commit is contained in:
Jan Pleterski
2026-11-28 12:22:02 +01:00
parent 2fc741a9f6
commit 258303deb8
118 changed files with 1439 additions and 537 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
/// A holiday look (FigCraft Designs/holiday-themes/v2, themes.json): while a
/// A holiday look (FigCraft Designs/holiday-themes/v3, themes.json): while a
/// holiday's window is on, the app shows its background, its target (locked)
/// and its hit colour (until the user picks another one). Afterwards everything
/// is back to the user's own settings. Saved targets are never changed.
@@ -17,7 +17,12 @@ class HolidayTheme {
const HolidayTheme(this.id, this.name, this.targetId, this.color, {this.from, this.to, this.easter});
String background(bool dark) => 'assets/backgrounds/bg${id}_${dark ? 'dark' : 'light'}.webp';
String background(bool dark) => _background(id, dark);
/// The background when no holiday is on ("00 Privzeto").
static String everydayBackground(bool dark) => _background('00', dark);
static String _background(String id, bool dark) => 'assets/backgrounds/bg${id}_${dark ? 'dark' : 'light'}.webp';
/// In the order of themes.json: when windows overlap, the first one wins.
static const List<HolidayTheme> all = [