Splash Screen Spinner screen color change in splash cordon plugin

I am going to finish my first application using Ionic / Cordova.

YES, this is BIG, but sometimes I wonder why everything is so complicated (with all these plugins, etc. :))

I wonder if I can change the color of my Splash-Screen-Spinner .

Any ideas? I am looking in the source code: Color, Spinner ..... but I did not find a hint.

I think this will help many people.

Hi

+5
source share
2 answers

At least with Cordova 7.0 and Cordova iOS 4.4.0 there is no need to change the source code of the plugin. You can simply add the following line to your config.xml file, and the counter will look white, not gray.

 <preference name="TopActivityIndicator" value="whiteLarge" /> 

NOTE The Apache Cordova documentation is a bit confusing when it comes to the counter. The config.xml says the following about TopActivityIndicator :

Controls the appearance of a small icon in the status bar, which indicates significant processor activity.

I believe the statement refers to the following counter:

enter image description here

However, at least on Cordova 7.0 iOS, changing the TopActivityIndicator affects the appearance of the counter that appears in the middle of the screen when the application opens. Example whiteLarge example:

enter image description here

Hope this helps.

+1
source

If you want to change the color symbol "cordova-plugin-splashscreen" Spinner on iOS. There are 3 predefined color options to choose from (I don’t know how to change it to any color). You must manually edit the iOS plug-in file "CDVSplashScreen.m", which is located inside "/ plugins / cordova-plugin-splashscreen / src / ios".

gray (by default - search for this line):

 UIActivityIndicatorViewStyle topActivityIndicatorStyle = UIActivityIndicatorViewStyleGray 

white

 UIActivityIndicatorViewStyle topActivityIndicatorStyle = UIActivityIndicatorViewStyleWhite; 

whiteLarge

 UIActivityIndicatorViewStyle topActivityIndicatorStyle = UIActivityIndicatorViewStyleWhiteLarge 

Found in files:

 /* * The Activity View is the top spinning throbber in the status/battery bar. We init it with the default Grey Style. * * whiteLarge = UIActivityIndicatorViewStyleWhiteLarge * white = UIActivityIndicatorViewStyleWhite * gray = UIActivityIndicatorViewStyleGray * */ 

I also found a way to change the position of the counter by entering my column post here

0
source

All Articles