mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Prefer Theme.colorScheme
This commit is contained in:
parent
d927bf3cb8
commit
dec000b1a6
4 changed files with 3 additions and 9 deletions
|
@ -87,12 +87,6 @@ class AppTheme extends StatelessWidget {
|
||||||
return Colors.blue[200];
|
return Colors.blue[200];
|
||||||
}
|
}
|
||||||
|
|
||||||
static Color getCloudIconColor(BuildContext context) {
|
|
||||||
return Theme.of(context).brightness == Brightness.light
|
|
||||||
? primarySwatchLight
|
|
||||||
: primarySwatchDark;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Color getPrimaryTextColor(BuildContext context) {
|
static Color getPrimaryTextColor(BuildContext context) {
|
||||||
return Theme.of(context).brightness == Brightness.light
|
return Theme.of(context).brightness == Brightness.light
|
||||||
? Colors.black87
|
? Colors.black87
|
||||||
|
|
|
@ -79,7 +79,7 @@ class _ConnectState extends State<Connect> {
|
||||||
Icon(
|
Icon(
|
||||||
Icons.cloud,
|
Icons.cloud,
|
||||||
size: 128,
|
size: 128,
|
||||||
color: AppTheme.getCloudIconColor(context),
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
AppLocalizations.of(context)
|
AppLocalizations.of(context)
|
||||||
|
|
|
@ -123,7 +123,7 @@ class _SignInState extends State<SignIn> {
|
||||||
Center(
|
Center(
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.cloud,
|
Icons.cloud,
|
||||||
color: AppTheme.getCloudIconColor(context),
|
color: Theme.of(context).colorScheme.primary,
|
||||||
size: 72,
|
size: 72,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -52,7 +52,7 @@ class _SplashState extends State<Splash> {
|
||||||
Icon(
|
Icon(
|
||||||
Icons.cloud,
|
Icons.cloud,
|
||||||
size: 96,
|
size: 96,
|
||||||
color: AppTheme.getCloudIconColor(context),
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Text(
|
Text(
|
||||||
|
|
Loading…
Reference in a new issue