2026-08-05 12:00:49 -07:00
|
|
|
import 'package:flutter/foundation.dart';
|
2026-05-05 10:45:51 +07:00
|
|
|
import 'package:flutter/material.dart';
|
2026-08-05 12:00:49 -07:00
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
2026-05-07 22:12:14 +07:00
|
|
|
import 'package:immich_mobile/constants/colors.dart';
|
2026-05-05 10:45:51 +07:00
|
|
|
|
2026-08-05 12:00:49 -07:00
|
|
|
part 'theme_config.freezed.dart';
|
2026-05-05 10:45:51 +07:00
|
|
|
|
2026-08-05 12:00:49 -07:00
|
|
|
@freezed
|
|
|
|
|
abstract class ThemeConfig with _$ThemeConfig {
|
|
|
|
|
const factory ThemeConfig({
|
|
|
|
|
@Default(ThemeMode.system) ThemeMode mode,
|
|
|
|
|
@Default(ImmichColorPreset.indigo) ImmichColorPreset primaryColor,
|
|
|
|
|
@Default(false) bool dynamicTheme,
|
|
|
|
|
@Default(true) bool colorfulInterface,
|
|
|
|
|
}) = _ThemeConfig;
|
2026-05-05 10:45:51 +07:00
|
|
|
}
|