mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
parent
1e02aa3120
commit
f45a4fff8b
@ -77,10 +77,12 @@ class EncryptionConfigScreenComponent extends BaseScreenComponent {
|
|||||||
paddingBottom: 5,
|
paddingBottom: 5,
|
||||||
marginTop: theme.marginTop,
|
marginTop: theme.marginTop,
|
||||||
marginBottom: 5,
|
marginBottom: 5,
|
||||||
|
color: theme.color,
|
||||||
},
|
},
|
||||||
normalText: {
|
normalText: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
fontSize: theme.fontSize,
|
fontSize: theme.fontSize,
|
||||||
|
color: theme.color,
|
||||||
},
|
},
|
||||||
container: {
|
container: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@ -112,9 +114,9 @@ class EncryptionConfigScreenComponent extends BaseScreenComponent {
|
|||||||
<Text style={this.styles().titleText}>{_('Master Key %s', mk.id.substr(0,6))}</Text>
|
<Text style={this.styles().titleText}>{_('Master Key %s', mk.id.substr(0,6))}</Text>
|
||||||
<Text style={this.styles().normalText}>{_('Created: %s', time.formatMsToLocal(mk.created_time))}</Text>
|
<Text style={this.styles().normalText}>{_('Created: %s', time.formatMsToLocal(mk.created_time))}</Text>
|
||||||
<View style={{flexDirection: 'row', alignItems: 'center'}}>
|
<View style={{flexDirection: 'row', alignItems: 'center'}}>
|
||||||
<Text style={{flex:0, fontSize: theme.fontSize, marginRight: 10}}>{_('Password:')}</Text>
|
<Text style={{flex:0, fontSize: theme.fontSize, marginRight: 10, color: theme.color}}>{_('Password:')}</Text>
|
||||||
<TextInput secureTextEntry={true} value={password} onChangeText={(text) => onPasswordChange(text)} style={{flex:1, marginRight: 10}}></TextInput>
|
<TextInput secureTextEntry={true} value={password} onChangeText={(text) => onPasswordChange(text)} style={{flex:1, marginRight: 10, color: theme.color}}></TextInput>
|
||||||
<Text style={{fontSize: theme.fontSize, marginRight: 10}}>{passwordOk}</Text>
|
<Text style={{fontSize: theme.fontSize, marginRight: 10, color: theme.color}}>{passwordOk}</Text>
|
||||||
<Button title={_('Save')} onPress={() => onSaveClick()}></Button>
|
<Button title={_('Save')} onPress={() => onSaveClick()}></Button>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@ -137,8 +139,8 @@ class EncryptionConfigScreenComponent extends BaseScreenComponent {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={{flex:1, borderColor: theme.dividerColor, borderWidth: 1, padding: 10, marginTop: 10, marginBottom: 10}}>
|
<View style={{flex:1, borderColor: theme.dividerColor, borderWidth: 1, padding: 10, marginTop: 10, marginBottom: 10}}>
|
||||||
<Text style={{fontSize: theme.fontSize}}>{_('Enabling encryption means *all* your notes and attachments are going to be re-synchronised and sent encrypted to the sync target. Do not lose the password as, for security purposes, this will be the *only* way to decrypt the data! To enable encryption, please enter your password below.')}</Text>
|
<Text style={{fontSize: theme.fontSize, color: theme.color}}>{_('Enabling encryption means *all* your notes and attachments are going to be re-synchronised and sent encrypted to the sync target. Do not lose the password as, for security purposes, this will be the *only* way to decrypt the data! To enable encryption, please enter your password below.')}</Text>
|
||||||
<TextInput secureTextEntry={true} value={this.state.passwordPromptAnswer} onChangeText={(text) => { this.setState({ passwordPromptAnswer: text }) }}></TextInput>
|
<TextInput style={{margin: 10, color: theme.color, borderWidth: 1, borderColor: theme.dividerColor }} secureTextEntry={true} value={this.state.passwordPromptAnswer} onChangeText={(text) => { this.setState({ passwordPromptAnswer: text }) }}></TextInput>
|
||||||
<View style={{flexDirection: 'row'}}>
|
<View style={{flexDirection: 'row'}}>
|
||||||
<View style={{flex:1 , marginRight:10}} >
|
<View style={{flex:1 , marginRight:10}} >
|
||||||
<Button title={_('Enable')} onPress={() => { onEnableClick() }}></Button>
|
<Button title={_('Enable')} onPress={() => { onEnableClick() }}></Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user