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: fallback screen settings button icon rendering with the right color #7764

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

themooneer
Copy link
Contributor

@themooneer themooneer commented Sep 5, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Fix setting icon rendering color

Before ❌

image

After βœ…

image

❓ Context

  • JIRA or GitHub link:

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@themooneer themooneer requested a review from a team as a code owner September 5, 2024 17:02
Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 10:59am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 10:59am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 10:59am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 10:59am
web-tools ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 10:59am

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Sep 5, 2024
@@ -27,6 +26,9 @@ const FallbackCameraBody: React.FC<Props> = ({
}: Props) => {
const { colors } = useTheme();

// benefit from component scope colors variable for IconSettings
const IconSettings = () => <Icon name="settings" size={16} color={colors.constant.white} />
Copy link
Member

Choose a reason for hiding this comment

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

On dark mode, the icon should be black as the background is white, I think that we have some colors for that in the theme, could you find the one we need, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, i will figure it out

Copy link
Contributor Author

@themooneer themooneer Sep 6, 2024

Choose a reason for hiding this comment

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

@KVNLS in the dark mode (i used the ForceTheme container over the Fallback to simulate it) the button's background is still white , so making the icon white will make it invisible.

Copy link
Contributor

Choose a reason for hiding this comment

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

you can use colors.neutral.c00 or colors.neutral.c100 :) It will works for both Theme

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it will be like this in the dark mode
image

Copy link
Contributor

Choose a reason for hiding this comment

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

But you didn't changed const color ?

@@ -27,6 +26,9 @@ const FallbackCameraBody: React.FC<Props> = ({
}: Props) => {
const { colors } = useTheme();

// benefit from component scope colors variable for IconSettings
Copy link
Member

Choose a reason for hiding this comment

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

I understand why you added the comment but I'm not convinced that we need it for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so i delete the comment here?

@@ -27,6 +26,9 @@ const FallbackCameraBody: React.FC<Props> = ({
}: Props) => {
const { colors } = useTheme();

// benefit from component scope colors variable for IconSettings
const IconSettings = () => <Icon name="settings" size={16} color={colors.constant.white} />

Copy link
Member

Choose a reason for hiding this comment

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

Could you fix the prettier formatting, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep sure, i'm using the default prettier config in my VSCode.

Copy link
Contributor

Choose a reason for hiding this comment

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

can you try using neutral.c100 please? :) Instead of using osTheme
if neutral.c100 not working try neutral.c00 I don't remember de right one
it will convert automatically according to the current theme

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure ! can you please send me (if exists) theming documentation or color palette docs/ref ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mcayuelas-ledger done βœ…

@@ -27,6 +26,9 @@ const FallbackCameraBody: React.FC<Props> = ({
}: Props) => {
const { colors } = useTheme();

// benefit from component scope colors variable for IconSettings
const IconSettings = () => <Icon name="settings" size={16} color={colors.constant.white} />

Copy link
Contributor

Choose a reason for hiding this comment

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

can you try using neutral.c100 please? :) Instead of using osTheme
if neutral.c100 not working try neutral.c00 I don't remember de right one
it will convert automatically according to the current theme

Copy link
Member

@KVNLS KVNLS left a comment

Choose a reason for hiding this comment

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

lgtm!

@themooneer themooneer merged commit 4999d67 into develop Sep 6, 2024
38 checks passed
@themooneer themooneer deleted the bugfix/LIVE-13351 branch September 6, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants