Fix section text color for dark theme

This commit is contained in:
Yegor Vialov 2020-04-11 12:48:36 +00:00
parent 89513ca4e5
commit 022622522f
2 changed files with 7 additions and 3 deletions

View File

@ -25,9 +25,9 @@ class DefaultEntityContainer extends StatelessWidget {
Divider(), Divider(),
Text( Text(
"${entityModel.entityWrapper.entity.displayName}", "${entityModel.entityWrapper.entity.displayName}",
style: Theme.of(context).textTheme.body1.copyWith( style: HAClientTheme().getLinkTextStyle(context).copyWith(
color: Theme.of(context).primaryColor decoration: TextDecoration.none
), )
) )
], ],
); );

View File

@ -2,6 +2,10 @@ part of '../main.dart';
class HAClientTheme { class HAClientTheme {
static const DEFAULT = 0;
static const DARK = 1;
static const HOMEASSISTANT = 2;
static const TextTheme textTheme = TextTheme( static const TextTheme textTheme = TextTheme(
display1: TextStyle(fontSize: 34, fontWeight: FontWeight.normal), display1: TextStyle(fontSize: 34, fontWeight: FontWeight.normal),
display2: TextStyle(fontSize: 34, fontWeight: FontWeight.normal), display2: TextStyle(fontSize: 34, fontWeight: FontWeight.normal),