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

Replace remaining Color(white: opacity:) references with semantic Color assets #1406

Merged

Conversation

lingoslinger
Copy link
Contributor

@lingoslinger lingoslinger commented Aug 15, 2024

Issues covered

#1375 (ongoing work)

Description

Replaced remaining Color(white: opacity:) references with semantically named colors in Colors.xcassets

How to test

  • Verify that the white: opacity: colors in each asset match the hard coded white: opacity: color in the changed file; smoke test the app to verify

Notes

  • changes to hard coded RGB colors will be addressed in a separate PR.

Copy link
Contributor

@joshuatbrown joshuatbrown left a comment

Choose a reason for hiding this comment

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

This is a partial review; I'll do a full one when #1403 is merged so the diff here is smaller. A couple things to change for now.

CHANGELOG.md Outdated
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed the like and repost counts from the Main and Profile feeds.
- Fixed an issue where the sheet asking users to set up a NIP-05 username would appear after reinstalling Nos, even if the profile already had a NIP-05 username.
- Fixed a bug where urls with periods after them would include the period.
- Replaced hard-coded color values.
- Replaced hard-coded hex and white: opacity: color values.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the original is better -- we don't need so much detail in the CHANGELOG.

Suggested change
- Replaced hard-coded hex and white: opacity: color values.
- Replaced hard-coded color values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood, I will change this in the final PR for RGB values.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change it now and skip the changelog update in the future PRs.

Nos/Views/Form/NosFormSection.swift Outdated Show resolved Hide resolved
Copy link
Contributor

@joshuatbrown joshuatbrown left a comment

Choose a reason for hiding this comment

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

One more request then we're all good -- I tested and everything else looks great! Thanks again!

CHANGELOG.md Outdated
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed the like and repost counts from the Main and Profile feeds.
- Fixed an issue where the sheet asking users to set up a NIP-05 username would appear after reinstalling Nos, even if the profile already had a NIP-05 username.
- Fixed a bug where urls with periods after them would include the period.
- Replaced hard-coded color values.
- Replaced hard-coded hex and white: opacity: color values.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change it now and skip the changelog update in the future PRs.

Copy link
Contributor

@joshuatbrown joshuatbrown left a comment

Choose a reason for hiding this comment

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

Thanks again for your work on this! The code is much nicer this way!

@joshuatbrown joshuatbrown added this pull request to the merge queue Aug 19, 2024
Merged via the queue into planetary-social:main with commit 283ce85 Aug 19, 2024
4 checks passed
@lingoslinger lingoslinger deleted the 1375-replace-white-opacity branch August 20, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants