You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Mobile: Implement plugin screen redesign (#10465)
This commit is contained in:
@ -3,7 +3,8 @@ import { themeStyle } from '../../../global-style';
|
||||
import * as React from 'react';
|
||||
import { useMemo } from 'react';
|
||||
import { Linking, View, StyleSheet, ViewStyle, TextStyle } from 'react-native';
|
||||
import { Button, Card, Divider, Icon, List, Text } from 'react-native-paper';
|
||||
import { Card, Divider, Icon, List, Text } from 'react-native-paper';
|
||||
import { LinkButton, PrimaryButton } from '../../../buttons';
|
||||
|
||||
interface Props {
|
||||
themeId: number;
|
||||
@ -50,7 +51,6 @@ const useStyles = (themeId: number) => {
|
||||
marginBottom: 0,
|
||||
},
|
||||
actionButton: {
|
||||
borderRadius: 10,
|
||||
marginLeft: theme.marginLeft * 2,
|
||||
marginRight: theme.marginRight * 2,
|
||||
marginBottom: theme.margin,
|
||||
@ -58,18 +58,6 @@ const useStyles = (themeId: number) => {
|
||||
});
|
||||
|
||||
const themeOverride = {
|
||||
secondaryButton: {
|
||||
colors: {
|
||||
primary: theme.color4,
|
||||
outline: theme.color4,
|
||||
},
|
||||
},
|
||||
primaryButton: {
|
||||
colors: {
|
||||
primary: theme.color4,
|
||||
onPrimary: theme.backgroundColor4,
|
||||
},
|
||||
},
|
||||
card: {
|
||||
colors: {
|
||||
outline: theme.codeBorderColor,
|
||||
@ -127,8 +115,8 @@ const EnablePluginSupportPage: React.FC<Props> = props => {
|
||||
{renderCard('source-branch-check', _('Open Source'), _('Most plugins have source code available for review on the plugin website.'))}
|
||||
{renderCard('flag-remove', _('Report system'), _('We have a system for reporting and removing problematic plugins.'))}
|
||||
<View>
|
||||
<Button style={styles.actionButton} theme={themeOverride.secondaryButton} onPress={onLearnMorePress}>{_('Learn more')}</Button>
|
||||
<Button style={styles.actionButton} theme={themeOverride.primaryButton} mode='contained' onPress={props.onEnablePluginSupport}>{_('Enable plugin support')}</Button>
|
||||
<LinkButton style={styles.actionButton} onPress={onLearnMorePress}>{_('Learn more')}</LinkButton>
|
||||
<PrimaryButton style={styles.actionButton} onPress={props.onEnablePluginSupport}>{_('Enable plugin support')}</PrimaryButton>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
Reference in New Issue
Block a user