feat: guess best values for loadingIndicator by other options

This commit is contained in:
Pooya Parsa 2018-03-25 23:40:39 +04:30
parent b61698f44c
commit 8b4fbac10b

View File

@ -114,9 +114,9 @@ Options.from = function (_options) {
options.loadingIndicator = Object.assign(
{
name: 'default',
color: '#D3D3D3',
color: (options.loading && options.loading.color) || '#D3D3D3',
color2: '#F5F5F5',
background: 'white',
background: (options.manifest && options.manifest.theme_color) || 'white',
dev: options.dev,
loading: options.messages.loading
},