-
-
Notifications
You must be signed in to change notification settings - Fork 314
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: 2987 - The section header are smaller and not as color flashy as the titles of the individual settings. #3696
Conversation
… titles of the individual settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also can you attach a screnshot , how this affects the current UI
packages/smooth_app/lib/pages/preferences/user_preferences_settings.dart
Outdated
Show resolved
Hide resolved
@M123-dev @teolemon I have made changes as asked by @AshAman999 . Please review the changes. |
style: Theme.of(context).textTheme.displaySmall?.copyWith( | ||
height: 2.5, | ||
), | ||
style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @Adiii1436
Could you keep the
Theme.of(context).textTheme.displaySmall?.copyWith(
and do your changed in this copyWith
.
This just means that you use the global text style and just change parts of it.
Say we plan to change the text font, we can just change it in the global theme and not at every text in the app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thankyou @M123-dev for guiding me. I will make changes right away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@M123-dev I have made changes as you said.
Codecov Report
@@ Coverage Diff @@
## develop #3696 +/- ##
========================================
Coverage 10.97% 10.97%
========================================
Files 265 265
Lines 13071 13071
========================================
Hits 1435 1435
Misses 11636 11636
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
? const Color(0xFF000000) | ||
: const Color(0xFFFFFFFF)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make it Colors.black and Colors.white, thats way easier to understand :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the changes @M123-dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to test this out. Thanks @Adiii1436
My only concern is maybe with the coming AMOLED mode, that the fixed colors could be problematic
cc: @AshAman999 the PR is blocked on you 😄 what do you say
packages/smooth_app/lib/pages/preferences/user_preferences_widgets.dart
Outdated
Show resolved
Hide resolved
@@ -235,8 +235,7 @@ class UserPreferencesTitle extends StatelessWidget { | |||
), | |||
child: Text( | |||
label, | |||
style: Theme.of(context).textTheme.displaySmall?.copyWith( | |||
height: 2.5, | |||
style: Theme.of(context).textTheme.displayLarge! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Theme.of(context).textTheme.displayLarge! | |
style: Theme.of(context).textTheme.displayLarge |
perfect @AshAman999 , thanks 👌 |
Thanks @Adiii1436 for your PR 😊 |
Fixed #2987
Increased header font size and provided bold white color.