]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commitdiff
TFA: improve color-readabillity for input
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 20 Dec 2021 11:35:09 +0000 (12:35 +0100)
committerThomas Lamprecht <thomas@lamprecht.org>
Mon, 20 Dec 2021 19:47:41 +0000 (20:47 +0100)
with the recent changes, the input field was invisible, adapting like
the login dialog - note this is still not using the correct colors that
the actual main app theme defines, as its always derived from the dark
default theme now.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-By: Aaron Lauterer <a.lauterer@proxmox.com>
[ Thomas: clarified/extended commit message ]
Signed-off-by: Thomas Lamprecht <thomas@lamprecht.org>
lib/proxmox_tfa_form.dart

index db3cfa73cd6a4e08029400901ab062ee81c63517..3743455a68fcb5c21c7ecb43d312d6620d2d2713 100644 (file)
@@ -17,9 +17,12 @@ class _ProxmoxTfaFormState extends State<ProxmoxTfaForm> {
   @override
   Widget build(BuildContext context) {
     return Theme(
-      data: ThemeData.dark().copyWith(accentColor: Color(0xFFE47225)),
+      data: ThemeData.dark().copyWith(
+          colorScheme: ColorScheme.dark().copyWith(
+              secondary: ProxmoxColors.orange,
+              onSecondary: ProxmoxColors.supportGrey)),
       child: Scaffold(
-        backgroundColor: Theme.of(context).primaryColor,
+        backgroundColor: ProxmoxColors.supportBlue,
         extendBodyBehindAppBar: true,
         appBar: AppBar(
           elevation: 0.0,