Mobile. Share Screen. Remove hardcoded colors from serverinfo

This commit is contained in:
grummbeer 2023-03-02 04:25:43 +01:00
parent 40115163b4
commit 21353a9b47

@ -207,30 +207,26 @@ class ServerInfo extends StatelessWidget {
TextFormField( TextFormField(
readOnly: true, readOnly: true,
style: const TextStyle( style: const TextStyle(
fontSize: 25.0, fontSize: 25.0, fontWeight: FontWeight.bold),
fontWeight: FontWeight.bold,
color: MyTheme.accent),
controller: model.serverId, controller: model.serverId,
decoration: InputDecoration( decoration: InputDecoration(
icon: const Icon(Icons.perm_identity), icon: const Icon(Icons.perm_identity),
labelText: translate("ID"), labelText: translate("ID"),
labelStyle: const TextStyle( labelStyle: const TextStyle(fontWeight: FontWeight.bold),
fontWeight: FontWeight.bold, color: MyTheme.accent80),
), ),
onSaved: (String? value) {}, onSaved: (String? value) {},
), ),
TextFormField( TextFormField(
readOnly: true, readOnly: true,
style: const TextStyle( style: const TextStyle(
fontSize: 25.0, fontSize: 25.0, fontWeight: FontWeight.bold),
fontWeight: FontWeight.bold,
color: MyTheme.accent),
controller: isPermanent ? emptyController : model.serverPasswd, controller: isPermanent ? emptyController : model.serverPasswd,
decoration: InputDecoration( decoration: InputDecoration(
icon: const Icon(Icons.lock), icon: const Icon(Icons.lock),
labelText: translate("Password"), labelText: translate("Password"),
labelStyle: const TextStyle( labelStyle: const TextStyle(
fontWeight: FontWeight.bold, color: MyTheme.accent80), fontWeight: FontWeight.bold,
),
suffix: isPermanent suffix: isPermanent
? null ? null
: IconButton( : IconButton(