add permissions badge

This commit is contained in:
Fabian Freund
2026-01-21 09:01:59 +01:00
parent d6e02f9d02
commit f648c43441
7 changed files with 199 additions and 12 deletions
+5
View File
@@ -11,6 +11,7 @@ class AppColors extends ThemeExtension<AppColors> {
this.torPurple = const Color(0xFF7D4698),
this.torActiveGreen = const Color(0xFF68B030),
this.torBackgroundGrey = const Color(0xFF333A41),
this.warningAmber = const Color(0xFFFFA000),
});
final Color seedColor;
@@ -21,6 +22,7 @@ class AppColors extends ThemeExtension<AppColors> {
final Color torPurple;
final Color torActiveGreen;
final Color torBackgroundGrey;
final Color warningAmber;
static const light = AppColors._();
static const dark = AppColors._();
@@ -35,6 +37,7 @@ class AppColors extends ThemeExtension<AppColors> {
Color? torPurple,
Color? torActiveGreen,
Color? torBackgroundGrey,
Color? warningAmber,
}) {
return AppColors._(
seedColor: seedColor ?? this.seedColor,
@@ -46,6 +49,7 @@ class AppColors extends ThemeExtension<AppColors> {
torPurple: torPurple ?? this.torPurple,
torActiveGreen: torActiveGreen ?? this.torActiveGreen,
torBackgroundGrey: torBackgroundGrey ?? this.torBackgroundGrey,
warningAmber: warningAmber ?? this.warningAmber,
);
}
@@ -84,6 +88,7 @@ class AppColors extends ThemeExtension<AppColors> {
other.torBackgroundGrey,
t,
)!,
warningAmber: Color.lerp(warningAmber, other.warningAmber, t)!,
);
}