You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1008 B
Dart
32 lines
1008 B
Dart
import 'package:test_sa/config/color_scheme.dart';
|
|
import 'package:test_sa/config/color_schemes/default_color_scheme.dart';
|
|
import 'package:test_sa/config/color_schemes/red_sea_global_color_scheme.dart';
|
|
|
|
/// Client configuration
|
|
/// Change the active client here to switch color schemes
|
|
class ClientConfig {
|
|
ClientConfig._();
|
|
|
|
// 🎨 CHANGE THIS TO SWITCH CLIENTS
|
|
// Options: 'default', 'redseaglobal'
|
|
static const String activeClient = 'redseaglobal';
|
|
|
|
/// Get the active color scheme based on client configuration
|
|
static ColorScheme getColorScheme() {
|
|
switch (activeClient.toLowerCase()) {
|
|
case 'redseaglobal':
|
|
case 'red_sea_global':
|
|
return RedSeaGlobalColorScheme();
|
|
case 'default':
|
|
default:
|
|
return DefaultColorScheme();
|
|
}
|
|
}
|
|
|
|
/// Quick access to active scheme
|
|
static ColorScheme get colors => getColorScheme();
|
|
|
|
/// Check if dark theme is supported for current client
|
|
static bool get supportsDarkTheme => colors.supportsDarkTheme;
|
|
}
|