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
Add NavigationSuiteScaffold #1373
base: main
Are you sure you want to change the base?
Conversation
9e7d6d5
to
63b759d
Compare
Combined test coverage report
Files
|
63b759d
to
7c4d197
Compare
Combined test coverage report
Files
|
app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/NavigationUiTest.kt
Outdated
Show resolved
Hide resolved
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 is changing the tonal elevation we are using for the navigation bar, as the NavigationSuiteScaffold
doesn't allow that much customization.
If we strongly feel like we want to keep the current look of the navigation bar (which is overriding the tonal elevation to 0dp
), then the intended usage would be to just set up the navigation UI manually, like we are doing right now, but then we wouldn't be using NavigationSuiteScaffold
.
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.
Another option would be overriding the navigation bar colors specifically to what it would be with that elevation, but that seems a bit like fighting the APIs. I think the new colors look fine, but I don't know who should approve them.
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.
That could work, but eww... especially since we have to handle dynamic colors and the Android colors.
@dturner do you think the visual update here is fine to merge with?
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.
LGTM but I think someone else needs to approve for the color changes. It seems more inline with what M3 generally looks like, but I don't know if there was any history in the decision.
app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/NavigationUiTest.kt
Outdated
Show resolved
Hide resolved
...c/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/component/Navigation.kt
Outdated
Show resolved
Hide resolved
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.
Another option would be overriding the navigation bar colors specifically to what it would be with that elevation, but that seems a bit like fighting the APIs. I think the new colors look fine, but I don't know who should approve them.
7dd1fc5
to
18e6c9a
Compare
Combined test coverage report
Files
|
18e6c9a
to
091c80a
Compare
Change-Id: I36710d880bff381ed86c61632f2ab91902727775
596fe7c
to
3fb6df7
Compare
Combined test coverage report
Files
|
Adds
NavigationSuiteScaffold
to replace the current manual logic to switch between a navigation rail and navigation bar.