From 8b4fbac10b0983139541b905e5434200ba930743 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 25 Mar 2018 23:40:39 +0430 Subject: [PATCH] feat: guess best values for loadingIndicator by other options --- lib/common/options.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/options.mjs b/lib/common/options.mjs index fd17a635cf..32ed18ee8a 100644 --- a/lib/common/options.mjs +++ b/lib/common/options.mjs @@ -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 },