forked from firka/student-legacy
made dark mode colors better kinda
This commit is contained in:
parent
3868e70b23
commit
57a4c65d2c
@ -83,7 +83,8 @@ class AppTheme {
|
||||
accentColor == AccentColor.ogfilc) ||
|
||||
!settings.newColors
|
||||
? accent
|
||||
: ColorsUtils().darken(accent, amount: 0.5);
|
||||
: ColorsUtils().darken(accent,
|
||||
amount: 0.4); // white mode: same tertiary as secondary
|
||||
|
||||
return ThemeData(
|
||||
brightness: Brightness.light,
|
||||
@ -186,14 +187,15 @@ class AppTheme {
|
||||
accentColor == AccentColor.ogfilc) ||
|
||||
!settings.newColors
|
||||
? accent
|
||||
: ColorsUtils().lighten(accent, amount: 0.1);
|
||||
: ColorsUtils().lighten(accent, amount: 0.3);
|
||||
// Color newScaffoldBg = ColorsUtils().lighten(accent, amount: 0.4);
|
||||
Color newTertiary = (accentColor == AccentColor.adaptive ||
|
||||
accentColor == AccentColor.custom ||
|
||||
accentColor == AccentColor.ogfilc) ||
|
||||
!settings.newColors
|
||||
? accent
|
||||
: ColorsUtils().lighten(accent, amount: 0.4);
|
||||
: ColorsUtils().darken(accent,
|
||||
amount: 0.1); // dark mode: tertiary is way darker than secondary
|
||||
|
||||
return ThemeData(
|
||||
brightness: Brightness.dark,
|
||||
|
@ -61,7 +61,7 @@ class _FilterBarState extends State<FilterBar> {
|
||||
indicatorSize: TabBarIndicatorSize.tab,
|
||||
indicatorPadding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
indicator: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(.2),
|
||||
color: Theme.of(context).colorScheme.tertiary.withOpacity(.2),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
overlayColor: MaterialStateProperty.all(const Color(0x00000000)),
|
||||
|
@ -58,7 +58,7 @@ class ProfileButton extends StatelessWidget {
|
||||
return ProfileImage(
|
||||
backgroundColor: !pMode
|
||||
? child.backgroundColor
|
||||
: Theme.of(context).colorScheme.secondary,
|
||||
: Theme.of(context).colorScheme.tertiary,
|
||||
heroTag: child.heroTag,
|
||||
key: child.key,
|
||||
name: !pMode ? child.name : "János",
|
||||
|
@ -165,7 +165,7 @@ class AbsencesPageState extends State<AbsencesPage>
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.tertiary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
@ -385,7 +385,7 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
builder: (context, onPressed, progress) =>
|
||||
FloatingActionButton.small(
|
||||
onPressed: onPressed,
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
backgroundColor: Theme.of(context).colorScheme.tertiary,
|
||||
child: const Icon(Icons.more_horiz_outlined),
|
||||
),
|
||||
),
|
||||
@ -394,7 +394,7 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
builder: (context, onPressed, progress) =>
|
||||
FloatingActionButton.small(
|
||||
onPressed: onPressed,
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
backgroundColor: Theme.of(context).colorScheme.tertiary,
|
||||
child: const Icon(Icons.close),
|
||||
),
|
||||
),
|
||||
@ -404,7 +404,7 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
children: [
|
||||
FloatingActionButton.small(
|
||||
heroTag: "btn_ghost_grades",
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
backgroundColor: Theme.of(context).colorScheme.tertiary,
|
||||
onPressed: () {
|
||||
gradeCalc(context);
|
||||
},
|
||||
@ -412,7 +412,7 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
),
|
||||
FloatingActionButton.small(
|
||||
heroTag: "btn_goal_planner",
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
backgroundColor: Theme.of(context).colorScheme.tertiary,
|
||||
onPressed: () {
|
||||
// if (!Provider.of<PlusProvider>(context, listen: false)
|
||||
// .hasScope(PremiumScopes.goalPlanner)) {
|
||||
|
@ -546,7 +546,7 @@ class GradesPageState extends State<GradesPage> {
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.tertiary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
@ -307,7 +307,7 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary, //!settings.presentationMode
|
||||
.tertiary, //!settings.presentationMode
|
||||
//? ColorUtils.stringToColor(user.displayName ?? "?")
|
||||
//: Theme.of(context).colorScheme.secondary,
|
||||
badge: updateProvider.available,
|
||||
|
@ -105,7 +105,7 @@ class MessagesPageState extends State<MessagesPage>
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.tertiary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
@ -251,7 +251,7 @@ class NotesPageState extends State<NotesPage> with TickerProviderStateMixin {
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.tertiary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
@ -283,7 +283,7 @@ class TimetablePageState extends State<TimetablePage>
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.tertiary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
@ -34,7 +34,7 @@ class NavbarItem extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
decoration: BoxDecoration(
|
||||
color: active
|
||||
? Theme.of(context).colorScheme.secondary.withOpacity(.2)
|
||||
? Theme.of(context).colorScheme.tertiary.withOpacity(.2)
|
||||
: null,
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
),
|
||||
|
@ -30,7 +30,7 @@ class AccountView extends StatelessWidget {
|
||||
AccountTile(
|
||||
profileImage: ProfileImage(
|
||||
name: _firstName,
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
backgroundColor: Theme.of(context).colorScheme.tertiary,
|
||||
role: user.role,
|
||||
),
|
||||
name: SelectableText(
|
||||
|
@ -136,7 +136,7 @@ class SettingsScreenState extends State<SettingsScreen>
|
||||
profilePictureString: account.picture,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary, //!settings.presentationMode
|
||||
.tertiary, //!settings.presentationMode
|
||||
//? ColorUtils.stringToColor(account.name)
|
||||
//: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user