Skip to content

Commit 74c8913

Browse files
committed
feat: update SplashScreen background color default to transparent
1 parent 794bf22 commit 74c8913

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

lib/prepare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ function updateProjectTheme (platformConfig, locations) {
493493
* @param {Object} locations A map of locations for this platform
494494
*/
495495
function updateProjectSplashScreenBackgroundColor (splashBackgroundColor, locations) {
496-
if (!splashBackgroundColor) { splashBackgroundColor = '#FFFFFF'; }
496+
if (!splashBackgroundColor) { splashBackgroundColor = '#00000000'; }
497497

498498
// res/values/colors.xml
499499
const colors = xmlHelpers.parseElementtreeSync(locations.colors);

templates/project/res/values/colors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
under the License.
1919
-->
2020
<resources xmlns:tools="http://schemas.android.com/tools">
21-
<color name="cdv_splashscreen_background">#FFFFFFFF</color>
21+
<color name="cdv_splashscreen_background">#00000000</color>
2222
<color name="cdv_background_color_dark">#121318</color>
2323
<color name="cdv_background_color_light">#FAF8FF</color>
2424
</resources>

templates/project/res/values/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
-->
2020
<resources xmlns:tools="http://schemas.android.com/tools">
2121
<style name="Theme.App.SplashScreen" parent="Theme.SplashScreen.IconBackground">
22-
<!-- Optional: Set the splash screen background. (Default: #FFFFFF) -->
22+
<!-- Optional: Set the splash screen background. (Default: #00000000) -->
2323
<item name="windowSplashScreenBackground">@color/cdv_splashscreen_background</item>
2424

2525
<!-- Required: Add either a drawable or an animated drawable -->

templates/project/res/xml/config.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
<preference name="loglevel" value="DEBUG" />
5151
<!--
52-
<preference name="backgroundColor" value="0xFFF" />
5352
<preference name="loadUrlTimeoutValue" value="20000" />
5453
<preference name="InAppBrowserStorageEnabled" value="true" />
5554
<preference name="disallowOverscroll" value="true" />

0 commit comments

Comments
 (0)