From 51d2e89e9a59fc7c489b428901b5f2b3e4c7baa3 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 14 Jul 2021 16:12:45 -0700 Subject: [PATCH] hilight unlock button on 0 profiles --- lib/views/profilemgrview.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/views/profilemgrview.dart b/lib/views/profilemgrview.dart index 80a037f4..36f91df4 100644 --- a/lib/views/profilemgrview.dart +++ b/lib/views/profilemgrview.dart @@ -95,6 +95,7 @@ class _ProfileMgrViewState extends State { // Unlock Profiles actions.add(IconButton( icon: Icon(CwtchIcons.lock_open_24px), + color: Provider.of(context).profiles.isEmpty ? Provider.of(context).theme.defaultButtonColor() : Provider.of(context).theme.mainTextColor(), tooltip: AppLocalizations.of(context)!.tooltipUnlockProfiles, onPressed: _modalUnlockProfiles, ));