Files
FlClash/lib/common/feature.dart
T
chen08209 1e97716636 feat(platform): move desktop windows to plugins/window and rework the tray
plugins/window replaces the window_manager fork on every desktop.

Changelog: Tray hotkeys, node delays and a delay test
2026-09-30 11:39:58 +08:00

23 lines
758 B
Dart

/// Features whose code stays but that ship switched off. A disabled feature
/// hides its setting and ignores the stored value, so switching it back on
/// restores what the user had chosen.
class Feature {
const Feature({
this.sidebarBlur = const bool.fromEnvironment('FEATURE_SIDEBAR_BLUR'),
this.customProviders = const bool.fromEnvironment(
'FEATURE_CUSTOM_PROVIDERS',
),
this.customProxies = const bool.fromEnvironment('FEATURE_CUSTOM_PROXIES'),
});
final bool sidebarBlur;
/// App-level proxy and rule providers, and profiles offered as providers.
final bool customProviders;
/// The proxies a custom overwrite keeps in place of the profile's own.
final bool customProxies;
}
Feature feature = const Feature();