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

feat: SplashScreen Background Color preference support #1411

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Mar 20, 2024

Platforms affected

iOS

Motivation and Context

Closes #1254.

Description

Support a SplashScreenBackgroundColor preference that sets the background colour of the splash screen via xcassets.

If no SplashScreenBackgroundColor is provided, it will fall back to the BackgroundColor (i.e., the current behaviour).
If neither are specified, it will fallback to the system background colour (also current behaviour).

Testing

  • Created a new iOS project from this branch and specified both the BackgroundColor and SplashScreenBackgroundColor preferences. Ensured both variables had correct values in Xcode and confirmed splash screen used the correct colour on device.
  • Created a new iOS project from this branch and specified only the BackgroundColor preference. Ensured both variables had correct values in Xcode and confirmed splash screen used the correct colour on device.

Checklist

  • I've run the tests to see all new and existing tests pass
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@dpogue dpogue added this to the 7.1.0 milestone Mar 20, 2024
@dpogue dpogue force-pushed the splashscreen-background-colour branch from 53e37e8 to e10fd3d Compare March 20, 2024 04:56
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 52.94118% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 78.37%. Comparing base (1974dbb) to head (a9da7e2).

Files Patch % Lines
lib/prepare.js 52.94% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1411      +/-   ##
==========================================
- Coverage   78.50%   78.37%   -0.13%     
==========================================
  Files          16       16              
  Lines        1814     1827      +13     
==========================================
+ Hits         1424     1432       +8     
- Misses        390      395       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dpogue dpogue force-pushed the splashscreen-background-colour branch from e10fd3d to a5e9b0b Compare March 20, 2024 22:46
@dpogue dpogue force-pushed the splashscreen-background-colour branch from a5e9b0b to a9da7e2 Compare March 28, 2024 22:48
@dpogue dpogue marked this pull request as ready for review March 28, 2024 22:50
dpogue added a commit to dpogue/cordova-docs that referenced this pull request Mar 28, 2024
Include some preferences that were missing for auto-hiding and controlling splash screen delays, and also add the iOS `SplashScreenBackgroundColor` preference (from apache/cordova-ios#1411)
@dpogue
Copy link
Member Author

dpogue commented Mar 28, 2024

Docs PR: apache/cordova-docs#1348

Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

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

LGTM

@dpogue dpogue merged commit 0dd2c85 into apache:master Mar 29, 2024
10 checks passed
@dpogue dpogue deleted the splashscreen-background-colour branch March 29, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature(splash-screen): support setting background color
3 participants