-
Notifications
You must be signed in to change notification settings - Fork 937
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
Update Settings: Update sub-screens #5334
Update Settings: Update sub-screens #5334
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
9cbd91e
to
a3873ed
Compare
b062abb
to
ac87252
Compare
a3873ed
to
f9ee2ee
Compare
ac87252
to
600bd64
Compare
f9ee2ee
to
8cf3693
Compare
8cf3693
to
f740a42
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.
Added a couple comments, nothing blocking.
override fun updateDrawState(ds: TextPaint) { | ||
super.updateDrawState(ds) | ||
if (newSettingsFeature.self().isEnabled()) { | ||
ds.color = ContextCompat.getColor(applicationContext, CommonR.color.blue50) |
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.
the blue color is wrong, use accentBlue here instead.
context.getColorFromAttr(R.attr.daxColorAccentBlue)
@@ -20,6 +20,7 @@ import android.content.Context | |||
import android.util.AttributeSet | |||
import android.widget.LinearLayout | |||
import com.duckduckgo.common.ui.viewbinding.viewBinding | |||
import com.duckduckgo.mobile.android.R | |||
import com.duckduckgo.mobile.android.databinding.ViewStatusIndicatorBinding | |||
|
|||
class StatusIndicator @JvmOverloads constructor( |
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.
Can you rename this to StatusIndicatorView
instead? Just to follow other conventions.
f740a42
to
b8ef962
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.
nice work @mikescamell !
The new "Learn More" link text does not have an underline and is our own blue color We need to ensure that "Learn More" is placed on a newline after we create the Spannable The Cookie Image is slightly different in on/off scenarios (spikey cookie ends, checkmark sizing) and I will ask about this
We have one more state "Always On" which we need for a couple of sub screens. It makes more sense now to add this as an emum and allow setting from XML We can make a function that allows us to easily set on/off which we need in most cases that calls to the new setStatus function that takes a "Status"
It seemed easiest to add new views and just hide/show based on the flag
Similar to AutoConsent and I've made a note to extract the clickable span when I come back to tidy up
I purposefully did not flag the minor margin changes for the divider, I didn't think it was worth it.
Again not flagging purposefully as it's such a minor change
not flagging this as it's a simple change
We don't need to use makeSceneTransitionAnimation as we're not doing SharedElementTransitions This looks like it became a c/p for all the screens, resulting in some weird cross-fading
I didn't realise that adding new strings would mean that anyone asking for translations would get them, i now know to add them to donottranslate during development, but adding translatable=false for now to save moving them about
2ceafcb
to
203d7c1
Compare
Task/Issue URL: https://app.asana.com/0/1207908166761516/1208785622935234/f
Description
Makes design changes to all the settings sub-screens, including:
Steps to test this PR
Prerequisites:
newSettings
flag is onDesigns:
Private Search
UI changes
Web Tracking Protection
UI changes
Cookie Pop-Up Protection
UI changes
App Tracking Protection
Email Protection
General
Sync & Backup
UI changes
Appearance
UI changes
Passwords & Autofill
UI changes
Accessibility
UI changes
Permissions
Data Clearing
UI changes
Duck Player
About
UI changes
LegacySettings Screen
Prerequisites:
newSettings
flag is offDemo
Screen_recording_20241129_163452.mp4