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

View File

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