Update colors
This commit is contained in:
@@ -19,14 +19,14 @@ class BrandManagerApp extends StatelessWidget {
|
|||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
colorScheme: ColorScheme.fromSeed(
|
colorScheme: ColorScheme.fromSeed(
|
||||||
seedColor: Colors.blue,
|
seedColor: const Color(0xFFa1181d),
|
||||||
brightness: Brightness.light,
|
brightness: Brightness.light,
|
||||||
),
|
),
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
darkTheme: ThemeData(
|
darkTheme: ThemeData(
|
||||||
colorScheme: ColorScheme.fromSeed(
|
colorScheme: ColorScheme.fromSeed(
|
||||||
seedColor: Colors.blue,
|
seedColor: const Color(0xFFa1181d),
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
),
|
),
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
|
|||||||
@@ -626,7 +626,7 @@ class _DeviceDetailViewState extends State<DeviceDetailView> {
|
|||||||
_buildTalkgroupCategory(
|
_buildTalkgroupCategory(
|
||||||
'Static',
|
'Static',
|
||||||
_deviceProfile!.staticSubscriptions,
|
_deviceProfile!.staticSubscriptions,
|
||||||
Colors.blue,
|
Theme.of(context).colorScheme.primary,
|
||||||
Icons.link,
|
Icons.link,
|
||||||
canDelete: true,
|
canDelete: true,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -150,14 +150,14 @@ class _LastHeardItemTile extends StatelessWidget {
|
|||||||
|
|
||||||
const _LastHeardItemTile({required this.item});
|
const _LastHeardItemTile({required this.item});
|
||||||
|
|
||||||
Color _getEventColor() {
|
Color _getEventColor(BuildContext context) {
|
||||||
switch (item.event) {
|
switch (item.event) {
|
||||||
case 'Session-Start':
|
case 'Session-Start':
|
||||||
return Colors.green;
|
return Colors.green;
|
||||||
case 'Session-Stop':
|
case 'Session-Stop':
|
||||||
return Colors.red;
|
return Colors.red;
|
||||||
default:
|
default:
|
||||||
return Colors.blue;
|
return Theme.of(context).colorScheme.primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,7 +174,7 @@ class _LastHeardItemTile extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final eventColor = _getEventColor();
|
final eventColor = _getEventColor(context);
|
||||||
|
|
||||||
return Card(
|
return Card(
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
margin: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||||
|
|||||||
@@ -281,14 +281,14 @@ class _ActivityItemTile extends StatelessWidget {
|
|||||||
|
|
||||||
const _ActivityItemTile({required this.item});
|
const _ActivityItemTile({required this.item});
|
||||||
|
|
||||||
Color _getEventColor() {
|
Color _getEventColor(BuildContext context) {
|
||||||
switch (item.event) {
|
switch (item.event) {
|
||||||
case 'Session-Start':
|
case 'Session-Start':
|
||||||
return Colors.green;
|
return Colors.green;
|
||||||
case 'Session-Stop':
|
case 'Session-Stop':
|
||||||
return Colors.red;
|
return Colors.red;
|
||||||
default:
|
default:
|
||||||
return Colors.blue;
|
return Theme.of(context).colorScheme.primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ class _ActivityItemTile extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final eventColor = _getEventColor();
|
final eventColor = _getEventColor(context);
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
dense: true,
|
dense: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user