fix stupid colors

This commit is contained in:
Christien Rioux 2024-08-09 10:54:54 -07:00
parent 71cbfe0d6b
commit abf31369a1
6 changed files with 14 additions and 8 deletions

View File

@ -17,7 +17,7 @@ class EmptyChatWidget extends StatelessWidget {
width: double.infinity, width: double.infinity,
height: double.infinity, height: double.infinity,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).scaffoldBackgroundColor, color: scale.primaryScale.appBackground,
), ),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,

View File

@ -265,6 +265,9 @@ ThemeData contrastGenerator({
final themeData = ThemeData.from( final themeData = ThemeData.from(
colorScheme: colorScheme, textTheme: textTheme, useMaterial3: true); colorScheme: colorScheme, textTheme: textTheme, useMaterial3: true);
return themeData.copyWith( return themeData.copyWith(
appBarTheme: themeData.appBarTheme.copyWith(
backgroundColor: scaleScheme.primaryScale.border,
foregroundColor: scaleScheme.primaryScale.borderText),
bottomSheetTheme: themeData.bottomSheetTheme.copyWith( bottomSheetTheme: themeData.bottomSheetTheme.copyWith(
elevation: 0, elevation: 0,
modalElevation: 0, modalElevation: 0,

View File

@ -636,6 +636,9 @@ ThemeData radixGenerator(Brightness brightness, RadixThemeColor themeColor) {
} }
return scaleScheme.primaryScale.subtleBorder; return scaleScheme.primaryScale.subtleBorder;
})), })),
appBarTheme: themeData.appBarTheme.copyWith(
backgroundColor: scaleScheme.primaryScale.border,
foregroundColor: scaleScheme.primaryScale.borderText),
bottomSheetTheme: themeData.bottomSheetTheme.copyWith( bottomSheetTheme: themeData.bottomSheetTheme.copyWith(
elevation: 0, elevation: 0,
modalElevation: 0, modalElevation: 0,

View File

@ -94,10 +94,10 @@ class ScaleScheme extends ThemeExtension<ScaleScheme> {
// onErrorContainer: errorScale.subtleText, // onErrorContainer: errorScale.subtleText,
background: grayScale.appBackground, // reviewed background: grayScale.appBackground, // reviewed
onBackground: grayScale.appText, // reviewed onBackground: grayScale.appText, // reviewed
surface: primaryScale.primary, // reviewed surface: primaryScale.appBackground, // reviewed
onSurface: primaryScale.primaryText, // reviewed onSurface: primaryScale.appText, // reviewed
surfaceVariant: secondaryScale.primary, surfaceVariant: secondaryScale.appBackground,
onSurfaceVariant: secondaryScale.primaryText, // ?? reviewed a little onSurfaceVariant: secondaryScale.appText,
outline: primaryScale.border, outline: primaryScale.border,
outlineVariant: secondaryScale.border, outlineVariant: secondaryScale.border,
shadow: primaryScale.primary.darken(80), shadow: primaryScale.primary.darken(80),

View File

@ -113,7 +113,7 @@ class SliderTile extends StatelessWidget {
? tileColor.border ? tileColor.border
: tileColor.borderText) : tileColor.borderText)
: scale.scale(a.actionScale).primaryText, : scale.scale(a.actionScale).primaryText,
icon: subtitle.isNotEmpty ? a.icon : null, icon: subtitle.isEmpty ? a.icon : null,
label: a.label, label: a.label,
padding: const EdgeInsets.all(2)), padding: const EdgeInsets.all(2)),
) )
@ -136,7 +136,7 @@ class SliderTile extends StatelessWidget {
? tileColor.border ? tileColor.border
: tileColor.borderText) : tileColor.borderText)
: scale.scale(a.actionScale).primaryText, : scale.scale(a.actionScale).primaryText,
icon: subtitle.isNotEmpty ? a.icon : null, icon: subtitle.isEmpty ? a.icon : null,
label: a.label, label: a.label,
padding: const EdgeInsets.all(2)), padding: const EdgeInsets.all(2)),
) )

View File

@ -123,7 +123,7 @@ extension ThemePreferencesExt on ThemePreferences {
scaleConfig: ScaleConfig( scaleConfig: ScaleConfig(
useVisualIndicators: true, useVisualIndicators: true,
preferBorders: true, preferBorders: true,
borderRadiusScale: 0.5), borderRadiusScale: 0.2),
primaryFront: const Color(0xFF000000), primaryFront: const Color(0xFF000000),
primaryBack: const Color(0xFF00FF00), primaryBack: const Color(0xFF00FF00),
secondaryFront: const Color(0xFF000000), secondaryFront: const Color(0xFF000000),