Changed green and red with theme color and grey

This commit is contained in:
Juan Gilsanz Polo 2022-10-26 16:51:39 +02:00
parent 6b593dc195
commit 5e30ac4986
11 changed files with 134 additions and 47 deletions

View file

@ -289,32 +289,48 @@ class _SearchClientsWidgetState extends State<SearchClientsWidget> {
Icons.filter_list_rounded,
size: 19,
color: clientsScreen[index].filteringEnabled == true
? Colors.green
: Colors.red,
? appConfigProvider.useThemeColorForStatus == true
? Theme.of(context).primaryColor
: Colors.green
: appConfigProvider.useThemeColorForStatus == true
? Colors.grey
: Colors.red,
),
const SizedBox(width: 10),
Icon(
Icons.vpn_lock_rounded,
size: 18,
color: clientsScreen[index].safebrowsingEnabled == true
? Colors.green
: Colors.red,
? appConfigProvider.useThemeColorForStatus == true
? Theme.of(context).primaryColor
: Colors.green
: appConfigProvider.useThemeColorForStatus == true
? Colors.grey
: Colors.red,
),
const SizedBox(width: 10),
Icon(
Icons.block,
size: 18,
color: clientsScreen[index].parentalEnabled == true
? Colors.green
: Colors.red,
? appConfigProvider.useThemeColorForStatus == true
? Theme.of(context).primaryColor
: Colors.green
: appConfigProvider.useThemeColorForStatus == true
? Colors.grey
: Colors.red,
),
const SizedBox(width: 10),
Icon(
Icons.search_rounded,
size: 19,
color: clientsScreen[index].safesearchEnabled == true
? Colors.green
: Colors.red,
? appConfigProvider.useThemeColorForStatus == true
? Theme.of(context).primaryColor
: Colors.green
: appConfigProvider.useThemeColorForStatus == true
? Colors.grey
: Colors.red,
)
],
)