mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
fix: Dark mode fixes
This commit is contained in:
parent
aef809030d
commit
36746c86ac
@ -11,6 +11,7 @@ abstract class AppConfig {
|
|||||||
static const bool allowOtherHomeservers = true;
|
static const bool allowOtherHomeservers = true;
|
||||||
static const bool enableRegistration = true;
|
static const bool enableRegistration = true;
|
||||||
static const Color primaryColor = Color(0xFF5625BA);
|
static const Color primaryColor = Color(0xFF5625BA);
|
||||||
|
static const Color primaryColorLight = Color(0xFFF5B4D2);
|
||||||
static String _privacyUrl = 'https://fluffychat.im/en/privacy.html';
|
static String _privacyUrl = 'https://fluffychat.im/en/privacy.html';
|
||||||
static String get privacyUrl => _privacyUrl;
|
static String get privacyUrl => _privacyUrl;
|
||||||
static const String appId = 'im.fluffychat.FluffyChat';
|
static const String appId = 'im.fluffychat.FluffyChat';
|
||||||
|
@ -32,6 +32,7 @@ abstract class FluffyThemes {
|
|||||||
primaryColorLight: Color(0xff121212),
|
primaryColorLight: Color(0xff121212),
|
||||||
brightness: Brightness.light,
|
brightness: Brightness.light,
|
||||||
primaryColor: AppConfig.primaryColor,
|
primaryColor: AppConfig.primaryColor,
|
||||||
|
accentColor: AppConfig.primaryColor,
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
secondaryHeaderColor: Color(0xFFECECF2),
|
secondaryHeaderColor: Color(0xFFECECF2),
|
||||||
scaffoldBackgroundColor: Colors.white,
|
scaffoldBackgroundColor: Colors.white,
|
||||||
@ -74,12 +75,12 @@ abstract class FluffyThemes {
|
|||||||
static ThemeData dark = ThemeData.dark().copyWith(
|
static ThemeData dark = ThemeData.dark().copyWith(
|
||||||
primaryColorDark: Color(0xff121212),
|
primaryColorDark: Color(0xff121212),
|
||||||
primaryColorLight: Colors.white,
|
primaryColorLight: Colors.white,
|
||||||
primaryColor: Color(0xFF8966CF),
|
primaryColor: AppConfig.primaryColor,
|
||||||
errorColor: Color(0xFFCF6679),
|
errorColor: Color(0xFFCF6679),
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
scaffoldBackgroundColor: Colors.black,
|
scaffoldBackgroundColor: Colors.black,
|
||||||
accentColor: Color(0xFFF5B4D2),
|
accentColor: AppConfig.primaryColorLight,
|
||||||
secondaryHeaderColor: Color(0xff1D1D1D),
|
secondaryHeaderColor: Color(0xff2D2D2D),
|
||||||
textTheme: Typography.material2018().white.merge(fallback_text_theme),
|
textTheme: Typography.material2018().white.merge(fallback_text_theme),
|
||||||
dialogTheme: DialogTheme(
|
dialogTheme: DialogTheme(
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
@ -95,6 +96,11 @@ abstract class FluffyThemes {
|
|||||||
backgroundColor: AppConfig.primaryColor,
|
backgroundColor: AppConfig.primaryColor,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
),
|
),
|
||||||
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
|
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
|
||||||
|
filled: true,
|
||||||
|
fillColor: Color(0xff2D2D2D),
|
||||||
|
),
|
||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
color: Color(0xff1D1D1D),
|
color: Color(0xff1D1D1D),
|
||||||
|
Loading…
Reference in New Issue
Block a user