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

PM-12322: Update color scheme #3986

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

david-livefront
Copy link
Collaborator

@david-livefront david-livefront commented Sep 27, 2024

🎟️ Tracking

PM-12322

πŸ“” Objective

This PR adds the new BitwardenTheme and applies the new colorscheme to the entire app.

πŸ“Έ Screenshots

colorscheme.mp4

Copy link
Contributor

github-actions bot commented Sep 27, 2024

Logo
Checkmarx One – Scan Summary & Details – 04d30169-b7ff-47b8-bb52-cc25e61cd2e8

No New Or Fixed Issues Found

@dseverns-livefront
Copy link
Collaborator

Wow...dark mode is

@@ -323,7 +323,7 @@ fun ExampleScreen(
text = state.exampleData,
textAlign = TextAlign.Center,
style = MaterialTheme.typography.headlineSmall,
color = MaterialTheme.colorScheme.onSurface,
color = BitwardenTheme.colorScheme.textColors.primary,
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be overkill and definitely outside the scope of this PR. It may be a good idea to just call out the use of Material components and how we are creating this pattern of mapping them for some of those components like radio buttons/cards/etc. component somewhere in the Readme

@@ -0,0 +1,89 @@
package com.x8bit.bitwarden.ui.platform.components.field.color
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 96.06299% with 10 lines in your changes missing coverage. Please review.

Project coverage is 88.91%. Comparing base (e6eb626) to head (1380e16).

Files with missing lines Patch % Lines
...en/ui/tools/feature/send/addsend/AddSendContent.kt 57.14% 6 Missing ⚠️
...tsecurity/pendingrequests/PendingRequestsScreen.kt 85.71% 1 Missing ⚠️
.../ui/vault/feature/addedit/VaultAddEditCardItems.kt 0.00% 1 Missing ⚠️
...vault/feature/addedit/VaultAddEditIdentityItems.kt 0.00% 1 Missing ⚠️
...movetoorganization/VaultMoveToOrganizationEmpty.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3986      +/-   ##
==========================================
+ Coverage   88.90%   88.91%   +0.01%     
==========================================
  Files         425      425              
  Lines       35145    35150       +5     
  Branches     5147     5145       -2     
==========================================
+ Hits        31245    31254       +9     
+ Misses       2108     2104       -4     
  Partials     1792     1792              

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

Copy link
Collaborator

@dseverns-livefront dseverns-livefront left a comment

Choose a reason for hiding this comment

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

I am in awe that you got this done this fast. Standing desk ovation to ya. I feel like this will work great as it still leaves the options in the future to support custom themes and with a non insignificant collaborative effort with design could even support a partial Material You experience (maybe even before google deprecates it)

<color name="ic_launcher_background">@color/blue_175DDC</color>
<color name="ic_shortcut_background">@color/white</color>
<!-- This is the apps Primary Blue color an exists here for launcher and splash theme only -->
<color name="ic_launcher_background">#FF175DDC</color>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This one is a little interesting, we need the color to be defined in XML for both the launcher icon and the splash theme. This is the only color in the app that needs to be defined in XML.

@david-livefront david-livefront force-pushed the PM-12322-update-color-scheme branch 14 times, most recently from 1380e16 to a229d85 Compare October 3, 2024 17:18
@david-livefront david-livefront removed the hold do not merge yet label Oct 3, 2024
Copy link
Collaborator

@dseverns-livefront dseverns-livefront left a comment

Choose a reason for hiding this comment

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

@david-livefront
Copy link
Collaborator Author

Thanks @dseverns-livefront

@david-livefront david-livefront merged commit 3dfe6ad into main Oct 4, 2024
7 checks passed
@david-livefront david-livefront deleted the PM-12322-update-color-scheme branch October 4, 2024 13:47
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