-
Notifications
You must be signed in to change notification settings - Fork 317
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
Bug 1821430 - Update strings in the ETP settings screen part 2. Use the new strings and update the layout #1213
Conversation
fenix/app/src/main/res/layout/tracking_protection_learn_more_preference.xml
Outdated
Show resolved
Hide resolved
267e906
to
da2d1d8
Compare
This comment was marked as resolved.
This comment was marked as resolved.
f44d760
to
bfb5cad
Compare
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.
Moving into the right direction! I left some notes on styling and ui elements spacing!
fenix/app/src/androidTest/java/org/mozilla/fenix/ui/EnhancedTrackingProtectionTest.kt
Show resolved
Hide resolved
fenix/app/src/debug/res/layout/preference_widget_switch_fenix_style.xml
Outdated
Show resolved
Hide resolved
fenix/app/src/main/java/org/mozilla/fenix/settings/FenixSwitchPreference.kt
Outdated
Show resolved
Hide resolved
@@ -10,8 +10,7 @@ | |||
android:layout_height="wrap_content" | |||
android:baselineAligned="false" | |||
android:orientation="horizontal" | |||
android:paddingTop="@dimen/radio_button_preference_vertical" | |||
android:paddingBottom="@dimen/radio_button_preference_vertical"> | |||
android:paddingBottom="12dp"> |
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.
This file, given the design, needs some adjustments.
Top spacing from the title should be 6dp
, bottom spacing from the widget_summary
should be 6dp
as well. The info icon should be positioned in center (currently bottom padding of the parent view is lifting it up a bit).
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!
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.
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.
android:paddingTop="12dp" | ||
android:paddingBottom="12dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginTop="16dp" |
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.
this file still looks very different compared to the new design! Top/bottom spacing are different, layout_constraintGuide_percent
value is too high. Even the image itself looks a bit different (in the design the top element in the image is the cloud, but in the file we actually have the sun as the top element, hence top padding is different)
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.
Yes, the provided image is actually slightly different to the Figma design. I've cc'd you into some UX conversations around this ETP banner, which should provide some context 🙂
android:letterSpacing="0.01" | ||
android:lineSpacingExtra="5sp" | ||
android:textAppearance="@style/Header16TextStyle" | ||
app:layout_constraintStart_toStartOf="parent" |
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.
let's add constraints to the text view similar to the summary. if the string is too long, it will violate the checkbox space :)
android:layout_marginTop="12dp" | ||
android:gravity="center_vertical" | ||
android:letterSpacing="0.01" | ||
android:lineSpacingExtra="5sp" |
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.
let's add bottom padding to the textView, to follow the design. lineSpacingExtra
plays a role only in between lines, but doesn't affect the spacing below the last line. If you check the design, the line height on the textView is 24dp, which gives us 4dp extra padding to the bottom of 16sp text :)
a120996
to
4ab464d
Compare
…he new strings and update the layout
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.
looks good! 🚢 it!
Still todo: Update SUMO with screenshots when approved.
ℹ️ Please see Figma model for exact layout specifications.
Pull Request checklist
After merge
To download an APK when reviewing a PR (after all CI tasks finished running):
Checks
at the top of the PR page.firefoxci-taskcluster
group on the left to expand all tasks.build-apk-{fenix,focus,klar}-debug
task you're interested in.View task in Taskcluster
in the newDETAILS
section.GitHub Automation
https://bugzilla.mozilla.org/show_bug.cgi?id=1821430