-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
38 lines (33 loc) · 2.18 KB
/
Copy pathplugin.xml
File metadata and controls
38 lines (33 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-custom-splash-eg" version="1.0.0">
<name>Custom eg style</name>
<description>Plugin to set Android window background for Cordova/Ionic applications</description>
<license>MIT</license>
<author>Matheus Medeiros</author>
<keywords>cordova,ionic,android,window background,color,background,window,theme,styles.xml</keywords>
<repo>https://github.com/matheus-inacio/cordova-plugin-custom-splash-eg.git</repo>
<js-module src="www/Empty.js" name="Empty">
<clobbers target="cordova.plugins.eg" />
</js-module>
<platform name="android">
<preference name="WINDOW_BACKGROUND_COLOR" />
<edit-config file="AndroidManifest.xml" target="/manifest/application/activity[@android:name='MainActivity']" mode="merge">
<activity android:name="MainActivity" android:theme="@style/AppTheme"/>
</edit-config>
<source-file src="cordova-window-background-strings.xml" target-dir="app/src/main/res/values" />
<source-file src="cordova-window-background-styles.xml" target-dir="app/src/main/res/values" />
<config-file target="app/src/main/res/values/cordova-window-background-strings.xml" parent="/*">
<color name="cordova_window_background">$WINDOW_BACKGROUND_COLOR</color>
</config-file>
<config-file target="app/src/main/res/values/cordova-window-background-styles.xml" parent="/*">
<style name="AppTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:background">@drawable/screen</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@color/cordova_window_background</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:navigationBarColor">@color/cordova_window_background</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
</config-file>
</platform>
</plugin>