2024-04-11 09:35:20 +02:00
|
|
|
import { ThemeStyle } from '@joplin/lib/theme';
|
|
|
|
|
2020-11-07 17:59:37 +02:00
|
|
|
const { buildStyle } = require('@joplin/lib/theme');
|
2020-09-06 14:00:25 +02:00
|
|
|
|
|
|
|
export default function styles(themeId: number) {
|
2024-04-11 09:35:20 +02:00
|
|
|
return buildStyle('KeymapConfigScreen', themeId, (theme: ThemeStyle) => {
|
2020-09-06 14:00:25 +02:00
|
|
|
return {
|
|
|
|
container: {
|
|
|
|
...theme.containerStyle,
|
2022-01-09 17:42:27 +02:00
|
|
|
// padding: theme.configScreenPadding,
|
2020-09-15 15:01:07 +02:00
|
|
|
backgroundColor: theme.backgroundColor3,
|
2020-09-06 14:00:25 +02:00
|
|
|
},
|
|
|
|
actionsContainer: {
|
|
|
|
display: 'flex',
|
|
|
|
flexDirection: 'row',
|
|
|
|
},
|
|
|
|
filterInput: {
|
|
|
|
...theme.inputStyle,
|
|
|
|
flexGrow: 1,
|
|
|
|
minHeight: 29,
|
|
|
|
alignSelf: 'center',
|
|
|
|
},
|
|
|
|
label: {
|
|
|
|
...theme.textStyle,
|
|
|
|
alignSelf: 'center',
|
|
|
|
marginRight: 10,
|
|
|
|
},
|
|
|
|
table: {
|
|
|
|
...theme.containerStyle,
|
|
|
|
marginTop: 16,
|
|
|
|
overflow: 'auto',
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
tableShortcutColumn: {
|
|
|
|
...theme.textStyle,
|
|
|
|
width: '60%',
|
|
|
|
},
|
|
|
|
tableCommandColumn: {
|
|
|
|
...theme.textStyle,
|
|
|
|
width: 'auto',
|
|
|
|
},
|
|
|
|
tableCellContent: {
|
|
|
|
flexGrow: 1,
|
|
|
|
alignSelf: 'center',
|
|
|
|
},
|
|
|
|
tableCellStatus: {
|
|
|
|
height: '100%',
|
|
|
|
alignSelf: 'center',
|
2024-10-26 22:06:18 +02:00
|
|
|
border: 'none',
|
|
|
|
background: 'transparent',
|
2020-09-06 14:00:25 +02:00
|
|
|
},
|
|
|
|
kbd: {
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
border: '1px solid',
|
|
|
|
borderRadius: 4,
|
|
|
|
backgroundColor: theme.raisedBackgroundColor,
|
|
|
|
padding: 2,
|
|
|
|
paddingLeft: 6,
|
|
|
|
paddingRight: 6,
|
|
|
|
},
|
|
|
|
disabled: {
|
|
|
|
color: theme.colorFaded,
|
|
|
|
fontStyle: 'italic',
|
|
|
|
},
|
|
|
|
inlineButton: {
|
|
|
|
...theme.buttonStyle,
|
|
|
|
marginLeft: 12,
|
|
|
|
},
|
|
|
|
warning: {
|
|
|
|
...theme.textStyle,
|
|
|
|
backgroundColor: theme.warningBackgroundColor,
|
|
|
|
paddingLeft: 16,
|
|
|
|
paddingRight: 16,
|
|
|
|
paddingTop: 2,
|
|
|
|
paddingBottom: 2,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|