Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dark theme dialog colors. #569

Merged
merged 8 commits into from
Apr 10, 2023
Merged

Conversation

Jonas-Sander
Copy link
Collaborator

@Jonas-Sander Jonas-Sander commented Apr 5, 2023

By using ColorScheme.fromSwatch().copyWith(...) the ColorScheme was tailored to light-mode which caused some dialogs to be displayed in the wrong colors when using dark mode.
Specifying the Brightness inside ColorScheme.fromSeed fixed this issue.

Before After
grafik grafik
grafik grafik
grafik grafik

Fixes #167
Fixes #168
Fixes #169
Fixes #384
Fixes #496

On Android picking only reminder times in an half-hour interval was broken. Instead a user could pick any time. By using `package:interval_time_picker` this issue is now fixed an users can again only pick reminder times in an half-hour interval.
By using `ColorScheme.fromSwatch().copyWith(...)` the `ColorScheme` was tailored to light-mode which caused some dialogs to be displayed in the wrong colors when using dark mode.
Specifying the `Brightness` inside `ColorScheme.fromSeed` fixed this issue.
@github-actions github-actions bot added dependencies Changing, updating, adding or removing one or more dependencies. feature: timetable / calendar Includes anything regarding lessons (timetable) and events (calendar). ui / ux ui: dark-mode labels Apr 5, 2023
@github-actions
Copy link

github-actions bot commented Apr 5, 2023

Visit the preview URL for this PR (updated for commit 3ad69f7):

https://sharezone-test--pr569-fix-dark-theme-dialo-iteuv403.web.app

(expires Sun, 16 Apr 2023 21:39:31 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@nilsreichardt
Copy link
Member

This PR also fixes #384

Copy link
Member

@nilsreichardt nilsreichardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2023-04-05 at 22 57 51

Snackbar in dark mode is not readable

@nilsreichardt
Copy link
Member

image

Wrong in the PR description (you need to swap the images)

Copy link
Member

@nilsreichardt nilsreichardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The only thing that I have seen was that the snackbar text has the wrong color in dark mode

@github-actions github-actions bot added the feature: authentification Logging in/out (anonymous, sign-in with X, etc.) and registration. label Apr 9, 2023
@@ -72,6 +72,7 @@ class SignInWithAppleButton extends StatelessWidget {
child: Icon(
FontAwesomeIcons.apple,
size: 26,
color: Colors.white,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can see in your last screen shot the icon was not completely white. I didn't find see this for the other icons in the app though.

Copy link
Member

@nilsreichardt nilsreichardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jonas-Sander Jonas-Sander added this pull request to the merge queue Apr 10, 2023
Merged via the queue into main with commit 2ba1394 Apr 10, 2023
@Jonas-Sander Jonas-Sander deleted the fix-dark-theme-dialog-colors branch April 10, 2023 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changing, updating, adding or removing one or more dependencies. feature: authentification Logging in/out (anonymous, sign-in with X, etc.) and registration. feature: timetable / calendar Includes anything regarding lessons (timetable) and events (calendar). ui: dark-mode ui / ux
Projects
None yet
2 participants