fix(auth): move color to ente color scheme
This commit is contained in:
parent
3c793258a8
commit
ef318d89ae
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
|||
import "package:ente_auth/theme/ente_theme.dart";
|
||||
import "package:flutter/material.dart";
|
||||
|
||||
class AddChip extends StatelessWidget {
|
||||
|
@ -17,9 +18,7 @@ class AddChip extends StatelessWidget {
|
|||
child: Icon(
|
||||
Icons.add_circle_outline,
|
||||
size: 30,
|
||||
color: Theme.of(context).brightness == Brightness.dark
|
||||
? const Color(0xFF9610D6)
|
||||
: const Color(0xFF8232E1),
|
||||
color: getEnteColorScheme(context).iconButtonColor,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -41,6 +41,8 @@ class EnteColorScheme {
|
|||
final Color primary400;
|
||||
final Color primary300;
|
||||
|
||||
final Color iconButtonColor;
|
||||
|
||||
final Color warning700;
|
||||
final Color warning500;
|
||||
final Color warning400;
|
||||
|
@ -70,7 +72,8 @@ class EnteColorScheme {
|
|||
this.blurStrokeBase,
|
||||
this.blurStrokeFaint,
|
||||
this.blurStrokePressed,
|
||||
this.avatarColors, {
|
||||
this.avatarColors,
|
||||
this.iconButtonColor, {
|
||||
this.primaryGreen = _primaryGreen,
|
||||
this.primary700 = _primary700,
|
||||
this.primary500 = _primary500,
|
||||
|
@ -107,6 +110,7 @@ const EnteColorScheme lightScheme = EnteColorScheme(
|
|||
blurStrokeFaintLight,
|
||||
blurStrokePressedLight,
|
||||
avatarLight,
|
||||
_iconButtonBrightColor,
|
||||
);
|
||||
|
||||
const EnteColorScheme darkScheme = EnteColorScheme(
|
||||
|
@ -132,6 +136,7 @@ const EnteColorScheme darkScheme = EnteColorScheme(
|
|||
blurStrokeFaintDark,
|
||||
blurStrokePressedDark,
|
||||
avatarDark,
|
||||
_iconButtonDarkColor,
|
||||
);
|
||||
|
||||
// Background Colors
|
||||
|
@ -200,6 +205,9 @@ const Color _primary500 = Color.fromARGB(255, 204, 10, 101);
|
|||
const Color _primary400 = Color.fromARGB(255, 122, 41, 193);
|
||||
const Color _primary300 = Color.fromARGB(255, 152, 77, 244);
|
||||
|
||||
const Color _iconButtonBrightColor = Color.fromRGBO(130, 50, 225, 1);
|
||||
const Color _iconButtonDarkColor = Color.fromRGBO(255, 150, 16, 1);
|
||||
|
||||
const Color _warning700 = Color.fromRGBO(245, 52, 52, 1);
|
||||
const Color _warning500 = Color.fromRGBO(255, 101, 101, 1);
|
||||
const Color _warning800 = Color(0xFFF53434);
|
||||
|
|
Loading…
Add table
Reference in a new issue