mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Fab color dynamic based on primary color
This commit is contained in:
parent
ddb9130769
commit
2816448ee2
8 changed files with 32 additions and 8 deletions
|
@ -319,7 +319,10 @@ class _ClientsListState extends State<ClientsList> {
|
|||
isScrollControlled: true
|
||||
);
|
||||
},
|
||||
child: const Icon(Icons.add),
|
||||
child: Icon(
|
||||
Icons.add,
|
||||
color: Theme.of(context).primaryColor.computeLuminance() > 0.5 ? Colors.black : Colors.white,
|
||||
),
|
||||
),
|
||||
)
|
||||
]
|
||||
|
|
|
@ -184,7 +184,10 @@ class DhcpLeases extends StatelessWidget {
|
|||
floatingActionButton: staticLeases == true
|
||||
? FloatingActionButton(
|
||||
onPressed: openAddStaticLease,
|
||||
child: const Icon(Icons.add),
|
||||
child: Icon(
|
||||
Icons.add,
|
||||
color: Theme.of(context).primaryColor.computeLuminance() > 0.5 ? Colors.black : Colors.white,
|
||||
),
|
||||
)
|
||||
: null,
|
||||
);
|
||||
|
|
|
@ -287,7 +287,10 @@ class _DnsRewritesWidgetState extends State<DnsRewritesWidget> {
|
|||
isScrollControlled: true
|
||||
)
|
||||
},
|
||||
child: const Icon(Icons.add),
|
||||
child: Icon(
|
||||
Icons.add,
|
||||
color: Theme.of(context).primaryColor.computeLuminance() > 0.5 ? Colors.black : Colors.white,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue