Bläddra i källkod

added blur colors to colors.dart

ashilkn 2 år sedan
förälder
incheckning
c9b854a912
1 ändrade filer med 24 tillägg och 0 borttagningar
  1. 24 0
      lib/theme/colors.dart

+ 24 - 0
lib/theme/colors.dart

@@ -16,6 +16,7 @@ class EnteColorScheme {
   final Color textBase;
   final Color textMuted;
   final Color textFaint;
+  final Color blurTextBase;
 
   // Fill Colors
   final Color fillBase;
@@ -27,6 +28,9 @@ class EnteColorScheme {
   final Color strokeMuted;
   final Color strokeFaint;
   final Color strokeFainter;
+  final Color blurStrokeBase;
+  final Color blurStrokeFaint;
+  final Color blurStrokePressed;
 
   // Fixed Colors
   final Color primary700;
@@ -52,6 +56,7 @@ class EnteColorScheme {
     this.textBase,
     this.textMuted,
     this.textFaint,
+    this.blurTextBase,
     this.fillBase,
     this.fillMuted,
     this.fillFaint,
@@ -59,6 +64,9 @@ class EnteColorScheme {
     this.strokeMuted,
     this.strokeFaint,
     this.strokeFainter,
+    this.blurStrokeBase,
+    this.blurStrokeFaint,
+    this.blurStrokePressed,
     this.tabIcon, {
     this.primary700 = _primary700,
     this.primary500 = _primary500,
@@ -80,6 +88,7 @@ const EnteColorScheme lightScheme = EnteColorScheme(
   textBaseLight,
   textMutedLight,
   textFaintLight,
+  blurTextBaseLight,
   fillBaseLight,
   fillMutedLight,
   fillFaintLight,
@@ -87,6 +96,9 @@ const EnteColorScheme lightScheme = EnteColorScheme(
   strokeMutedLight,
   strokeFaintLight,
   strokeFainterLight,
+  blurStrokeBaseLight,
+  blurStrokeFaintLight,
+  blurStrokePressedLight,
   tabIconLight,
 );
 
@@ -99,6 +111,7 @@ const EnteColorScheme darkScheme = EnteColorScheme(
   textBaseDark,
   textMutedDark,
   textFaintDark,
+  blurTextBaseDark,
   fillBaseDark,
   fillMutedDark,
   fillFaintDark,
@@ -106,6 +119,9 @@ const EnteColorScheme darkScheme = EnteColorScheme(
   strokeMutedDark,
   strokeFaintDark,
   strokeFainterDark,
+  blurStrokeBaseDark,
+  blurStrokeFaintDark,
+  blurStrokePressedDark,
   tabIconDark,
 );
 
@@ -129,10 +145,12 @@ const Color backdropBaseMuteDark = Color.fromRGBO(0, 0, 0, 0.20);
 const Color textBaseLight = Color.fromRGBO(0, 0, 0, 1);
 const Color textMutedLight = Color.fromRGBO(0, 0, 0, 0.6);
 const Color textFaintLight = Color.fromRGBO(0, 0, 0, 0.5);
+const Color blurTextBaseLight = Color.fromRGBO(0, 0, 0, 0.65);
 
 const Color textBaseDark = Color.fromRGBO(255, 255, 255, 1);
 const Color textMutedDark = Color.fromRGBO(255, 255, 255, 0.7);
 const Color textFaintDark = Color.fromRGBO(255, 255, 255, 0.5);
+const Color blurTextBaseDark = Color.fromRGBO(255, 255, 255, 0.95);
 
 // Fill Colors
 const Color fillBaseLight = Color.fromRGBO(0, 0, 0, 1);
@@ -148,11 +166,17 @@ const Color strokeBaseLight = Color.fromRGBO(0, 0, 0, 1);
 const Color strokeMutedLight = Color.fromRGBO(0, 0, 0, 0.24);
 const Color strokeFaintLight = Color.fromRGBO(0, 0, 0, 0.12);
 const Color strokeFainterLight = Color.fromRGBO(0, 0, 0, 0.06);
+const Color blurStrokeBaseLight = Color.fromRGBO(0, 0, 0, 0.65);
+const Color blurStrokeFaintLight = Color.fromRGBO(0, 0, 0, 0.08);
+const Color blurStrokePressedLight = Color.fromRGBO(0, 0, 0, 0.50);
 
 const Color strokeBaseDark = Color.fromRGBO(255, 255, 255, 1);
 const Color strokeMutedDark = Color.fromRGBO(255, 255, 255, 0.24);
 const Color strokeFaintDark = Color.fromRGBO(255, 255, 255, 0.16);
 const Color strokeFainterDark = Color.fromRGBO(255, 255, 255, 0.08);
+const Color blurStrokeBaseDark = Color.fromRGBO(0, 0, 0, 0.90);
+const Color blurStrokeFaintDark = Color.fromRGBO(0, 0, 0, 0.08);
+const Color blurStrokePressedDark = Color.fromRGBO(0, 0, 0, 0.50);
 
 // Other colors
 const Color tabIconLight = Color.fromRGBO(0, 0, 0, 0.85);