mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
* Action colors are now determined based on theme * Fix unused import * Update some more colors based on theme * Updated release notes * Better color choice * Update for home screen * Updates for app drawer * remove unused import
21 lines
641 B
Dart
21 lines
641 B
Dart
import "package:flutter/material.dart";
|
|
import "package:one_context/one_context.dart";
|
|
|
|
const Color COLOR_GRAY_LIGHT = Color.fromRGBO(150, 150, 150, 1);
|
|
|
|
// Return an "action" color based on the current theme
|
|
Color get COLOR_ACTION {
|
|
|
|
BuildContext? context = OneContext().context;
|
|
|
|
if (context != null) {
|
|
return Theme.of(context).indicatorColor;
|
|
} else {
|
|
return Colors.lightBlue;
|
|
}
|
|
}
|
|
|
|
const Color COLOR_WARNING = Color.fromRGBO(250, 150, 50, 1);
|
|
const Color COLOR_DANGER = Color.fromRGBO(250, 50, 50, 1);
|
|
const Color COLOR_SUCCESS = Color.fromRGBO(50, 250, 50, 1);
|
|
const Color COLOR_PROGRESS = Color.fromRGBO(50, 50, 250, 1); |