From 469ff520cf22e3153653d8296f3cff269aeea5c1 Mon Sep 17 00:00:00 2001 From: Luca Pau Date: Tue, 1 Nov 2016 17:17:33 +0100 Subject: [PATCH 1/3] ability to change color to spinner --- components/Spinner.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/Spinner.js b/components/Spinner.js index 8ce6a029..c5a5e9cf 100644 --- a/components/Spinner.js +++ b/components/Spinner.js @@ -8,10 +8,12 @@ import { connectStyle } from '@shoutem/theme'; function Spinner({ style }) { const indicatorStyle = { ...style }; delete indicatorStyle.size; + delete indicatorStyle.color; return ( @@ -24,6 +26,7 @@ Spinner.propTypes = { const StyledSpinner = connectStyle('shoutem.ui.Spinner', { size: 'small', + color: 'gray', })(Spinner); export { From 7c223633df11d11a586ddfd9462f5784ee30a6c7 Mon Sep 17 00:00:00 2001 From: Luca Pau Date: Sat, 19 Nov 2016 17:50:35 +0100 Subject: [PATCH 2/3] add default style spinner --- theme.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/theme.js b/theme.js index bc5f694b..a9800141 100644 --- a/theme.js +++ b/theme.js @@ -881,6 +881,10 @@ export default () => ({ margin: MEDIUM_GUTTER, }, }, + + 'shoutem.ui.Spinner'; { + color: Colors.SPINNER, + }, // // Collections From 750704c051a780684f5022d30366d63437939a5d Mon Sep 17 00:00:00 2001 From: Luca Pau Date: Sat, 19 Nov 2016 17:51:38 +0100 Subject: [PATCH 3/3] moved color default in themes file --- components/Spinner.js | 1 - 1 file changed, 1 deletion(-) diff --git a/components/Spinner.js b/components/Spinner.js index c5a5e9cf..9f35b168 100644 --- a/components/Spinner.js +++ b/components/Spinner.js @@ -26,7 +26,6 @@ Spinner.propTypes = { const StyledSpinner = connectStyle('shoutem.ui.Spinner', { size: 'small', - color: 'gray', })(Spinner); export {