content: import 'dart:ui';
  
  import 'package:equatable/equatable.dart';
  import 'package:zone/gen/l10n.dart';
  
  sealed class CustomTheme extends Equatable {
    abstract final String displayName;
    abstract final Color scaffold;
    abstract final Color setting;
    abstract final Color settingItem;
    abstract final Color pagerDim;
    abstract final bool light;
  
    @override
    List<Object?> get props => [displayName, scaffold, setting, settingItem, pagerDim];
  
    static CustomTheme? fromString(String name) {
      switch (name) {
        case "Light":
          return Light();
        case "Dim":
          return Dim();
        case "LightsOut":
          return LightsOut();
      }
      return null;
    }
  
    @override
    String toString() {
      return runtimeType.toString();
    }
  }
  
  final class Light extends CustomTheme {
    @override
    String get displayName => S.current.theme_light;
  
    @override
    final bool light = true;
  
    @override
    final Color scaffold = const Color(0xFFFFFFFF);
  
    @override
    final Color setting = const Color(0xFFF5F5F5);
  
    @override
    final Color settingItem = const Color(0xFFFFFFFF);
  
    @override
    final Color pagerDim = const Color(0xFF000000);
  }
  
  final class Dim extends CustomTheme {
    @override
    String get displayName => S.current.theme_dim;
  
    @override
    final bool light = false;
  
    @override
    final Color scaffold = const Color(0xFF151515);
  
    @override
    final Color setting = const Color(0xFF252525);
  
    @override
    final Color settingItem = const Color(0xFF353535);
  
    @override
    final Color pagerDim = const Color(0xFFFFFFFF);
  }
  
  final class LightsOut extends CustomTheme {
    @override
    String get displayName => S.current.theme_lights_out;
  
    @override
    final bool light = false;
  
    @override
    final Color scaffold = const Color(0xFF000000);
  
    @override
    final Color setting = const Color(0xFF000000);
  
    @override
    final Color settingItem = const Color(0xFF121212);
  
    @override
    final Color pagerDim = const Color(0xFFFFFFFF);
  }
  