一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
78 行
1.6 KiB
TypeScript
78 行
1.6 KiB
TypeScript
import { ThemeStyle, buildStyle } from '@joplin/lib/theme';
|
|
|
|
export default function styles(themeId: number) {
|
|
return buildStyle('KeymapConfigScreen', themeId, (theme: ThemeStyle) => {
|
|
return {
|
|
container: {
|
|
...theme.containerStyle,
|
|
// padding: theme.configScreenPadding,
|
|
backgroundColor: theme.backgroundColor3,
|
|
},
|
|
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',
|
|
border: 'none',
|
|
background: 'transparent',
|
|
},
|
|
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,
|
|
},
|
|
};
|
|
});
|
|
}
|