This commit is contained in:
Overtorment 2018-06-17 12:38:12 +01:00
parent d89d592e7a
commit 11078d9bf7
10 changed files with 17 additions and 15 deletions

View file

@ -36,6 +36,7 @@ export class BlueButton extends Component {
}}
borderRadius={10}
backgroundColor={BlueApp.settings.buttonBackground}
color={BlueApp.settings.buttonTextColor}
/>
);
}

View file

@ -15,6 +15,7 @@ export class AppStorage {
brandingColor: '#008dc2',
foregroundColor: '#ffffff',
buttonBackground: '#008dc2',
buttonTextColor: '#ffffff',
};
}

View file

@ -70,7 +70,7 @@ export default class About extends Component {
</BlueText>
<BlueButton
icon={{ name: 'mark-github', type: 'octicon' }}
icon={{ name: 'mark-github', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={() => {
Linking.openURL('https://github.com/Overtorment/BlueWallet');
}}
@ -78,7 +78,7 @@ export default class About extends Component {
/>
<BlueButton
icon={{ name: 'twitter', type: 'font-awesome' }}
icon={{ name: 'twitter', type: 'font-awesome', color: BlueApp.settings.buttonTextColor }}
onPress={() => {
Linking.openURL('https://twitter.com/bluewalletio');
}}
@ -86,7 +86,7 @@ export default class About extends Component {
/>
<BlueButton
icon={{ name: 'thumbsup', type: 'octicon' }}
icon={{ name: 'thumbsup', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={() => {
Linking.openURL(
'https://itunes.apple.com/us/app/bluewallet-bitcoin-wallet/id1376878040?l=ru&ls=1&mt=8',
@ -96,7 +96,7 @@ export default class About extends Component {
/>
<BlueButton
icon={{ name: 'arrow-left', type: 'octicon' }}
icon={{ name: 'arrow-left', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
title="Go Back"
onPress={() => {
this.props.navigation.goBack();

View file

@ -66,7 +66,7 @@ export default class PlausibleDeniability extends Component {
<BlueText>{loc.plausibledeniability.help2}</BlueText>
<BlueButton
icon={{ name: 'shield', type: 'octicon' }}
icon={{ name: 'shield', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
title={loc.plausibledeniability.create_fake_storage}
onPress={async () => {
let p1 = await prompt(
@ -97,7 +97,7 @@ export default class PlausibleDeniability extends Component {
/>
<BlueButton
icon={{ name: 'arrow-left', type: 'octicon' }}
icon={{ name: 'arrow-left', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
title={loc.plausibledeniability.go_back}
onPress={() => {
this.props.navigation.goBack();

View file

@ -198,13 +198,13 @@ export default class SendCreate extends Component {
</BlueCard>
<BlueButton
icon={{ name: 'megaphone', type: 'octicon' }}
icon={{ name: 'megaphone', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={() => this.broadcast()}
title={loc.send.create.broadcast}
/>
<BlueButton
icon={{ name: 'arrow-left', type: 'octicon' }}
icon={{ name: 'arrow-left', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={() => this.props.navigation.goBack()}
title={loc.send.create.go_back}
/>

View file

@ -245,7 +245,7 @@ export default class SendDetails extends Component {
</View>
<View style={{ flex: 0.33 }}>
<BlueButton
icon={{ name: 'qrcode', type: 'font-awesome' }}
icon={{ name: 'qrcode', type: 'font-awesome', color: BlueApp.settings.buttonTextColor }}
style={{}}
title={loc.send.details.scan}
onPress={() => this.props.navigation.navigate('ScanQrAddress')}

View file

@ -90,7 +90,7 @@ export default class Settings extends Component {
{loc.settings.storage_not_encrypted}
</FormValidationMessage>
<BlueButton
icon={{ name: 'shield', type: 'octicon' }}
icon={{ name: 'shield', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={async () => {
this.setState({ isLoading: true });
let p1 = await prompt(

View file

@ -58,7 +58,7 @@ export default class WalletsAdd extends Component {
<BlueButton
large
icon={{ name: 'qrcode', type: 'font-awesome' }}
icon={{ name: 'qrcode', type: 'font-awesome', color: BlueApp.settings.buttonTextColor }}
title={loc.wallets.add.scan}
onPress={() => {
this.props.navigation.navigate('ScanQrWif');
@ -67,7 +67,7 @@ export default class WalletsAdd extends Component {
<BlueButton
large
icon={{ name: 'bitcoin', type: 'font-awesome' }}
icon={{ name: 'bitcoin', type: 'font-awesome', color: BlueApp.settings.buttonTextColor }}
title={loc.wallets.add.create}
onPress={() => {
this.props.navigation.goBack();

View file

@ -124,7 +124,7 @@ export default class WalletDetails extends Component {
<View style={{ flex: 0, flexDirection: 'row' }}>
<View style={{ flex: 0.5 }}>
<BlueButton
icon={{ name: 'stop', type: 'octicon' }}
icon={{ name: 'stop', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={async () => {
BlueApp.deleteWallet(this.state.wallet);
await BlueApp.saveToDisk();
@ -150,7 +150,7 @@ export default class WalletDetails extends Component {
return (
<View>
<BlueButton
icon={{ name: 'stop', type: 'octicon' }}
icon={{ name: 'stop', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={async () => {
this.setState({ confirmDelete: true });
}}

View file

@ -118,7 +118,7 @@ export default class WalletsList extends Component {
</BlueCard>
<BlueButton
icon={{ name: 'plus-small', type: 'octicon' }}
icon={{ name: 'plus-small', type: 'octicon', color: BlueApp.settings.buttonTextColor }}
onPress={() => {
navigate('AddWallet');
}}