WIP Themes: climate controls and entity name
This commit is contained in:
33
lib/managers/theme_manager.dart
Normal file
33
lib/managers/theme_manager.dart
Normal file
@ -0,0 +1,33 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class HAClientTheme {
|
||||
|
||||
static const Color defaultFontColor = Colors.black87;
|
||||
|
||||
static final HAClientTheme _instance = HAClientTheme
|
||||
._internal();
|
||||
|
||||
factory HAClientTheme() {
|
||||
return _instance;
|
||||
}
|
||||
|
||||
HAClientTheme._internal();
|
||||
|
||||
final ThemeData lightTheme = ThemeData.light().copyWith(
|
||||
textTheme: ThemeData.light().textTheme.copyWith(
|
||||
display1: TextStyle(fontSize: 34, fontWeight: FontWeight.normal, color: Colors.black54),
|
||||
display2: TextStyle(fontSize: 34, fontWeight: FontWeight.normal, color: Colors.redAccent),
|
||||
headline: TextStyle(fontSize: 24, fontWeight: FontWeight.normal, color: defaultFontColor),
|
||||
title: TextStyle(fontSize: 20, fontWeight: FontWeight.w700, color: defaultFontColor),
|
||||
subhead: TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: defaultFontColor),
|
||||
body1: TextStyle(fontSize: 15, fontWeight: FontWeight.normal, color: defaultFontColor),
|
||||
body2: TextStyle(fontSize: 15, fontWeight: FontWeight.w500, color: defaultFontColor),
|
||||
subtitle: TextStyle(fontSize: 15, fontWeight: FontWeight.w500, color: Colors.black45),
|
||||
caption: TextStyle(fontSize: 13, fontWeight: FontWeight.normal, color: defaultFontColor),
|
||||
overline: TextStyle(fontSize: 10, fontWeight: FontWeight.normal, color: Colors.black54),
|
||||
)
|
||||
);
|
||||
|
||||
final ThemeData darkTheme = ThemeData.dark();
|
||||
|
||||
}
|
Reference in New Issue
Block a user