fix(ui): production channel pill is green, not error-red
The active-channel pill coloured 'production' with the theme error colour — red read as 'something is broken'. Use ChainColors.success (live & healthy) instead; still visibly distinct from beta (amber), dev (accent) and local (grey). Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
da30aae8e9
commit
a8feb159ce
1 changed files with 4 additions and 2 deletions
|
|
@ -909,7 +909,8 @@ class _ChannelPill extends StatelessWidget {
|
||||||
Color _accent(ColorScheme cs) {
|
Color _accent(ColorScheme cs) {
|
||||||
switch (channel) {
|
switch (channel) {
|
||||||
case 'production':
|
case 'production':
|
||||||
return cs.error;
|
// "Live & healthy", not an error — red here read as a fault.
|
||||||
|
return ChainColors.success;
|
||||||
case 'beta':
|
case 'beta':
|
||||||
return ChainColors.warning;
|
return ChainColors.warning;
|
||||||
case 'dev':
|
case 'dev':
|
||||||
|
|
@ -1023,7 +1024,8 @@ class _CollapsedChannelChip extends StatelessWidget {
|
||||||
Color _accent(ColorScheme cs) {
|
Color _accent(ColorScheme cs) {
|
||||||
switch (channel) {
|
switch (channel) {
|
||||||
case 'production':
|
case 'production':
|
||||||
return cs.error;
|
// "Live & healthy", not an error — red here read as a fault.
|
||||||
|
return ChainColors.success;
|
||||||
case 'beta':
|
case 'beta':
|
||||||
return ChainColors.warning;
|
return ChainColors.warning;
|
||||||
case 'dev':
|
case 'dev':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue