Changed some colors

This commit is contained in:
Juan Gilsanz Polo 2023-01-29 21:52:37 +01:00
parent 7caa464b5b
commit 842e81495e
23 changed files with 89 additions and 90 deletions

View file

@ -183,9 +183,9 @@ class _AddedListState extends State<AddedList> {
Text( Text(
AppLocalizations.of(context)!.loadingStatus, AppLocalizations.of(context)!.loadingStatus,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -287,9 +287,9 @@ class _AddedListState extends State<AddedList> {
Text( Text(
AppLocalizations.of(context)!.noClientsList, AppLocalizations.of(context)!.noClientsList,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
const SizedBox(height: 30), const SizedBox(height: 30),
@ -331,9 +331,9 @@ class _AddedListState extends State<AddedList> {
Text( Text(
AppLocalizations.of(context)!.errorLoadServerStatus, AppLocalizations.of(context)!.errorLoadServerStatus,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -419,9 +419,9 @@ class _ClientScreenState extends State<ClientScreen> {
child: Text( child: Text(
AppLocalizations.of(context)!.noIdentifiers, AppLocalizations.of(context)!.noIdentifiers,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
), ),
@ -653,18 +653,18 @@ class _ClientScreenState extends State<ClientScreen> {
Text( Text(
AppLocalizations.of(context)!.noUpstreamServers, AppLocalizations.of(context)!.noUpstreamServers,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
AppLocalizations.of(context)!.willBeUsedGeneralServers, AppLocalizations.of(context)!.willBeUsedGeneralServers,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
], ],

View file

@ -35,9 +35,9 @@ class ClientsList extends StatelessWidget {
Text( Text(
AppLocalizations.of(context)!.loadingStatus, AppLocalizations.of(context)!.loadingStatus,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -74,9 +74,9 @@ class ClientsList extends StatelessWidget {
Text( Text(
AppLocalizations.of(context)!.noClientsList, AppLocalizations.of(context)!.noClientsList,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
const SizedBox(height: 30), const SizedBox(height: 30),
@ -107,9 +107,9 @@ class ClientsList extends StatelessWidget {
Text( Text(
AppLocalizations.of(context)!.errorLoadServerStatus, AppLocalizations.of(context)!.errorLoadServerStatus,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -254,7 +254,7 @@ class _SearchClientsWidgetState extends State<SearchClientsWidget> {
height: 1, height: 1,
decoration: BoxDecoration( decoration: BoxDecoration(
color: showDivider == true color: showDivider == true
? Colors.grey.withOpacity(0.5) ? Theme.of(context).colorScheme.surfaceVariant
: Colors.transparent : Colors.transparent
), ),
), ),

View file

@ -8,7 +8,6 @@ class ConnectAppBar extends StatelessWidget with PreferredSizeWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AppBar( return AppBar(
title: Text(AppLocalizations.of(context)!.connect), title: Text(AppLocalizations.of(context)!.connect),
centerTitle: true,
); );
} }

View file

@ -162,9 +162,9 @@ class _CustomRulesListState extends State<CustomRulesList> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.loadingFilters, AppLocalizations.of(context)!.loadingFilters,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -205,9 +205,9 @@ class _CustomRulesListState extends State<CustomRulesList> {
AppLocalizations.of(context)!.noBlackLists, AppLocalizations.of(context)!.noBlackLists,
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
), ),
@ -251,9 +251,9 @@ class _CustomRulesListState extends State<CustomRulesList> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.filtersNotLoaded, AppLocalizations.of(context)!.filtersNotLoaded,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -87,9 +87,9 @@ class _FiltersListState extends State<FiltersList> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.loadingFilters, AppLocalizations.of(context)!.loadingFilters,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -130,9 +130,9 @@ class _FiltersListState extends State<FiltersList> {
? AppLocalizations.of(context)!.noBlackLists ? AppLocalizations.of(context)!.noBlackLists
: AppLocalizations.of(context)!.noWhiteLists, : AppLocalizations.of(context)!.noWhiteLists,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
const SizedBox(height: 30), const SizedBox(height: 30),
@ -175,9 +175,9 @@ class _FiltersListState extends State<FiltersList> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.filtersNotLoaded, AppLocalizations.of(context)!.filtersNotLoaded,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -69,9 +69,9 @@ class _HomeState extends State<Home> {
Text( Text(
AppLocalizations.of(context)!.loadingStatus, AppLocalizations.of(context)!.loadingStatus,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -177,9 +177,9 @@ class _HomeState extends State<Home> {
Text( Text(
AppLocalizations.of(context)!.errorLoadServerStatus, AppLocalizations.of(context)!.errorLoadServerStatus,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -234,9 +234,9 @@ class TopItems extends StatelessWidget {
), ),
child: Text( child: Text(
AppLocalizations.of(context)!.noItems, AppLocalizations.of(context)!.noItems,
style: const TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
), ),

View file

@ -245,9 +245,9 @@ class _LogsWidgetState extends State<LogsWidget> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.loadingLogs, AppLocalizations.of(context)!.loadingLogs,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -290,9 +290,9 @@ class _LogsWidgetState extends State<LogsWidget> {
children: [ children: [
Text( Text(
AppLocalizations.of(context)!.noLogsDisplay, AppLocalizations.of(context)!.noLogsDisplay,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
if (logsProvider.logsOlderThan != null) Padding( if (logsProvider.logsOlderThan != null) Padding(
@ -304,9 +304,9 @@ class _LogsWidgetState extends State<LogsWidget> {
child: Text( child: Text(
AppLocalizations.of(context)!.noLogsThatOld, AppLocalizations.of(context)!.noLogsThatOld,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
), ),
@ -330,9 +330,9 @@ class _LogsWidgetState extends State<LogsWidget> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.logsNotLoaded, AppLocalizations.of(context)!.logsNotLoaded,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -220,9 +220,9 @@ class _ClientsListState extends State<ClientsList> {
Text( Text(
AppLocalizations.of(context)!.loadingClients, AppLocalizations.of(context)!.loadingClients,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -295,9 +295,9 @@ class _ClientsListState extends State<ClientsList> {
Text( Text(
noItems(), noItems(),
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
const SizedBox(height: 30), const SizedBox(height: 30),
@ -355,9 +355,9 @@ class _ClientsListState extends State<ClientsList> {
Text( Text(
AppLocalizations.of(context)!.clientsNotLoaded, AppLocalizations.of(context)!.clientsNotLoaded,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -71,9 +71,9 @@ class AppLogs extends StatelessWidget {
: Center( : Center(
child: Text( child: Text(
AppLocalizations.of(context)!.noSavedLogs, AppLocalizations.of(context)!.noSavedLogs,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
) )

View file

@ -388,9 +388,9 @@ class _DhcpWidgetState extends State<DhcpWidget> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.loadingDhcp, AppLocalizations.of(context)!.loadingDhcp,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -747,9 +747,9 @@ class _DhcpWidgetState extends State<DhcpWidget> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.dhcpSettingsNotLoaded, AppLocalizations.of(context)!.dhcpSettingsNotLoaded,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -174,8 +174,8 @@ class DhcpLeases extends StatelessWidget {
? AppLocalizations.of(context)!.noDhcpStaticLeases ? AppLocalizations.of(context)!.noDhcpStaticLeases
: AppLocalizations.of(context)!.noLeases, : AppLocalizations.of(context)!.noLeases,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 22 fontSize: 22
), ),
), ),

View file

@ -165,8 +165,8 @@ class _BootstrapDnsScreenState extends State<BootstrapDnsScreen> {
child: Center( child: Center(
child: Text( child: Text(
AppLocalizations.of(context)!.noBootstrapDns, AppLocalizations.of(context)!.noBootstrapDns,
style: const TextStyle( style: TextStyle(
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 16 fontSize: 16
), ),
), ),

View file

@ -90,9 +90,9 @@ class _DnsSettingsWidgetState extends State<DnsSettingsWidget> {
Text( Text(
AppLocalizations.of(context)!.loadingDnsConfig, AppLocalizations.of(context)!.loadingDnsConfig,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -171,9 +171,9 @@ class _DnsSettingsWidgetState extends State<DnsSettingsWidget> {
Text( Text(
AppLocalizations.of(context)!.dnsConfigNotLoaded, AppLocalizations.of(context)!.dnsConfigNotLoaded,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -196,8 +196,8 @@ class _PrivateReverseDnsServersScreenState extends State<PrivateReverseDnsServer
child: Text( child: Text(
"${AppLocalizations.of(context)!.reverseDnsDefault}:\n\n${defaultReverseResolvers.map((item) => item).join(', ').toString().replaceAll(RegExp(r'\(|\)'), '')}", "${AppLocalizations.of(context)!.reverseDnsDefault}:\n\n${defaultReverseResolvers.map((item) => item).join(', ').toString().replaceAll(RegExp(r'\(|\)'), '')}",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 16 fontSize: 16
), ),
), ),
@ -264,8 +264,8 @@ class _PrivateReverseDnsServersScreenState extends State<PrivateReverseDnsServer
child: Text( child: Text(
AppLocalizations.of(context)!.noServerAddressesAdded, AppLocalizations.of(context)!.noServerAddressesAdded,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 16 fontSize: 16
), ),
), ),

View file

@ -173,8 +173,8 @@ class _UpstreamDnsScreenState extends State<UpstreamDnsScreen> {
child: Center( child: Center(
child: Text( child: Text(
AppLocalizations.of(context)!.noUpstreamDns, AppLocalizations.of(context)!.noUpstreamDns,
style: const TextStyle( style: TextStyle(
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 16 fontSize: 16
), ),
), ),

View file

@ -151,9 +151,9 @@ class _DnsRewritesWidgetState extends State<DnsRewritesWidget> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.loadingRewriteRules, AppLocalizations.of(context)!.loadingRewriteRules,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -243,9 +243,9 @@ class _DnsRewritesWidgetState extends State<DnsRewritesWidget> {
return Center( return Center(
child: Text( child: Text(
AppLocalizations.of(context)!.noRewriteRules, AppLocalizations.of(context)!.noRewriteRules,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
); );
@ -266,9 +266,9 @@ class _DnsRewritesWidgetState extends State<DnsRewritesWidget> {
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
AppLocalizations.of(context)!.rewriteRulesNotLoaded, AppLocalizations.of(context)!.rewriteRulesNotLoaded,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -287,9 +287,9 @@ class _EncryptionSettingsWidgetState extends State<EncryptionSettingsWidget> {
Text( Text(
AppLocalizations.of(context)!.loadingEncryptionSettings, AppLocalizations.of(context)!.loadingEncryptionSettings,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],
@ -613,9 +613,9 @@ class _EncryptionSettingsWidgetState extends State<EncryptionSettingsWidget> {
Text( Text(
AppLocalizations.of(context)!.encryptionSettingsNotLoaded, AppLocalizations.of(context)!.encryptionSettingsNotLoaded,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -83,9 +83,9 @@ class _ServerInformationWidgetState extends State<ServerInformationWidget> {
child: Text( child: Text(
AppLocalizations.of(context)!.loadingServerInfo, AppLocalizations.of(context)!.loadingServerInfo,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
) )
@ -161,9 +161,9 @@ class _ServerInformationWidgetState extends State<ServerInformationWidget> {
Text( Text(
AppLocalizations.of(context)!.serverInfoNotLoaded, AppLocalizations.of(context)!.serverInfoNotLoaded,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
) )
], ],

View file

@ -271,9 +271,9 @@ class _TopItemsScreenState extends State<TopItemsScreen> {
child: Text( child: Text(
AppLocalizations.of(context)!.noItemsSearch, AppLocalizations.of(context)!.noItemsSearch,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 22, fontSize: 22,
color: Colors.grey color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
), ),

View file

@ -419,9 +419,9 @@ class _ServersListState extends State<ServersList> with SingleTickerProviderStat
child: Text( child: Text(
AppLocalizations.of(context)!.noSavedConnections, AppLocalizations.of(context)!.noSavedConnections,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: const TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Colors.grey, color: Theme.of(context).colorScheme.onSurfaceVariant,
), ),
), ),
), ),