mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-26 07:09:41 +00:00
Refactor color management and UI components for consistency
- Updated color references in various widgets to use the new `opaquePrimary` color for better visual consistency. - Refactored `ColorsManager` to improve color definitions and removed redundant color declarations. - Enhanced UI elements across multiple dialogs and widgets to ensure a cohesive design language. This change promotes maintainability and aligns with the updated color scheme.
This commit is contained in:
@ -1,23 +1,20 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
abstract class ColorsManager {
|
||||
abstract final class ColorsManager {
|
||||
const ColorsManager._();
|
||||
|
||||
static const Color textPrimaryColor = Color(0xFF5D5D5D);
|
||||
static const Color switchOffColor = Color(0x7F8D99AE);
|
||||
static const Color primaryColor = Color(0xFF0030CB); //023DFE
|
||||
static const Color primaryColor = Color(0xFF0030CB);
|
||||
static const Color secondaryTextColor = Color(0xFF848484);
|
||||
static Color primaryColorWithOpacity =
|
||||
const Color(0xFF023DFE).withOpacity(0.6);
|
||||
static const Color whiteColors = Colors.white;
|
||||
static Color whiteColorsWithOpacity = Colors.white.withOpacity(0.6);
|
||||
|
||||
static final Color opaquePrimary = const Color(0xFF023DFE).withValues(alpha: 0.6);
|
||||
static const Color white = Color(0xFFFFFFFF);
|
||||
static Color whiteColorsWithOpacity = Colors.white.withValues(alpha: 0.6);
|
||||
static const Color secondaryColor = Color(0xFF023DFE);
|
||||
static const Color onSecondaryColor = Color(0xFF023DFE);
|
||||
static Color shadowBlackColor = Colors.black.withOpacity(0.2);
|
||||
|
||||
static Color dialogBlueTitle = const Color(0xFF023DFE).withOpacity(0.6);
|
||||
|
||||
static Color shadowBlackColor = Colors.black.withValues(alpha: 0.2);
|
||||
static Color dialogBlueTitle = const Color(0xFF023DFE).withValues(alpha: 0.6);
|
||||
static const Color primaryTextColor = Colors.black;
|
||||
|
||||
static const Color greyColor = Color(0xFFd5d5d5);
|
||||
static const Color lightGreyColor = Color(0xFF999999);
|
||||
static const Color backgroundColor = Color(0xFFececec);
|
||||
@ -57,11 +54,10 @@ abstract class ColorsManager {
|
||||
static const Color neutralGray = Color(0xFFE5E5E5);
|
||||
static const Color warningRed = Color(0xFFFF6465);
|
||||
static const Color borderColor = Color(0xFFE5E5E5);
|
||||
static const Color CircleImageBackground = Color(0xFFF4F4F4);
|
||||
static const Color circleImageBackground = Color(0xFFF4F4F4);
|
||||
static const Color softGray = Color(0xFFD5D5D5);
|
||||
static const Color semiTransparentBlack = Color(0x19000000);
|
||||
static const Color dataHeaderGrey = Color(0x33999999);
|
||||
static const Color circleImageBackground = Color(0xFFF4F4F4);
|
||||
static const Color circleRolesBackground = Color(0xFFF8F8F8);
|
||||
static const Color activeGreen = Color(0xFF99FF93);
|
||||
static const Color activeGreenText = Color(0xFF008905);
|
||||
@ -72,7 +68,7 @@ abstract class ColorsManager {
|
||||
static const Color invitedOrangeText = Color(0xFFFFBF00);
|
||||
static const Color lightGrayBorderColor = Color(0xB2D5D5D5);
|
||||
static const Color vividBlue = Color(0xFF023DFE);
|
||||
static const Color semiTransparentRed = Color(0x99FF0000);
|
||||
static const Color semiTransparentRed = Color(0xFFFF6465);
|
||||
static const Color grey700 = Color(0xFF2D3748);
|
||||
static const Color goodGreen = Color(0xFF0CEC16);
|
||||
static const Color moderateYellow = Color(0xFFFAC96C);
|
||||
@ -95,5 +91,4 @@ abstract class ColorsManager {
|
||||
static const Color shadowOfDetailsContainer = Color(0x40000000);
|
||||
static const Color checkBoxBorderGray = Color(0xffD0D0D0);
|
||||
static const Color timePickerColor = Color(0xff000000);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user