Fix section text color for dark theme
This commit is contained in:
parent
89513ca4e5
commit
022622522f
@ -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
|
||||||
),
|
)
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
@ -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),
|
||||||
|
Reference in New Issue
Block a user