From 2a27a7594b80a69b07f2d5acd07d38451cbe0ff4 Mon Sep 17 00:00:00 2001 From: Guillaume Louvigny Date: Fri, 8 Feb 2019 17:51:25 +0100 Subject: [PATCH] fix: minor debug bar style refinements --- .../components/Library/DebugStateBar.js | 26 +++++++++++-------- .../common/components/Library/Header.js | 2 +- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/client/react-native/common/components/Library/DebugStateBar.js b/client/react-native/common/components/Library/DebugStateBar.js index b9ce1c26e4..75792d1b60 100644 --- a/client/react-native/common/components/Library/DebugStateBar.js +++ b/client/react-native/common/components/Library/DebugStateBar.js @@ -35,6 +35,7 @@ class DebugStateBar extends PureComponent { daemonState: daemonStateValues.down, peers: [], compact: true, + collapsed: true, } } @@ -216,11 +217,8 @@ class DebugStateBar extends PureComponent { const count = peers.reduce((acc, cur) => cur.connection === 1 ? acc + 1 : acc, 0) return ( - - - - - + + {!this.state.collapsed && { this.state.compact ? : bertyText.toLocaleUpperCase() } - - + } + {!this.state.collapsed && NavigationService.navigate('network/peers')}>{count.toString()} - - + } + {!this.state.collapsed && NavigationService.navigate('network/config')}>{bleText.toLocaleUpperCase()} - - + } + {!this.state.collapsed && NavigationService.navigate('settings/devtools')} /> + } + + this.setState({ collapsed: !this.state.collapsed })} /> + + + ) diff --git a/client/react-native/common/components/Library/Header.js b/client/react-native/common/components/Library/Header.js index cb744ed82d..ac16ed5449 100644 --- a/client/react-native/common/components/Library/Header.js +++ b/client/react-native/common/components/Library/Header.js @@ -5,7 +5,7 @@ import { colors } from '../../constants' import { padding, borderBottom } from '../../styles' import { isRTL } from '../../i18n' -const [defaultTextColor, defaultBackColor] = [colors.black, colors.white] +const [defaultTextColor, defaultBackColor] = [colors.fakeBlack, colors.white] const HeaderButton = ({ icon, color, style, ...otherProps }) => { return