1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +02:00
Files
joplin/ReactNativeClient/lib/components/global-style.js

40 lines
1.2 KiB
JavaScript
Raw Normal View History

2017-07-21 22:40:02 +01:00
const globalStyle = {
2017-07-30 23:04:26 +02:00
fontSize: 16,
2017-07-21 22:40:02 +01:00
margin: 15, // No text and no interactive component should be within this margin
2017-07-30 23:04:26 +02:00
itemMarginTop: 10,
itemMarginBottom: 10,
2017-07-21 22:40:02 +01:00
backgroundColor: "#ffffff",
2017-07-22 16:55:09 +01:00
color: "#555555", // For regular text
colorFaded: "#777777", // For less important text
2017-07-30 23:04:26 +02:00
fontSizeSmaller: 14,
2017-07-21 22:40:02 +01:00
dividerColor: "#dddddd",
2017-07-25 19:36:52 +01:00
selectedColor: '#e5e5e5',
2017-07-22 17:36:55 +01:00
disabledOpacity: 0.3,
2017-07-21 22:40:02 +01:00
2017-07-27 18:34:43 +01:00
raisedBackgroundColor: "#0080EF",
raisedColor: "#003363",
raisedHighlightedColor: "#ffffff",
2017-07-21 22:40:02 +01:00
// For WebView - must correspond to the properties above
2017-07-30 23:04:26 +02:00
htmlFontSize: '20x',
2017-07-21 22:40:02 +01:00
htmlColor: 'black', // Note: CSS in WebView component only seem to work if the colour is written in full letters (so no hexadecimal)
2017-07-22 18:21:39 +01:00
htmlDividerColor: 'Gainsboro',
2017-07-21 22:40:02 +01:00
};
globalStyle.marginRight = globalStyle.margin;
globalStyle.marginLeft = globalStyle.margin;
2017-07-22 16:55:09 +01:00
globalStyle.marginTop = globalStyle.margin;
globalStyle.marginBottom = globalStyle.margin;
2017-07-21 22:40:02 +01:00
globalStyle.htmlMarginLeft = ((globalStyle.marginLeft / 10) * 0.6).toFixed(2) + 'em';
2017-07-22 17:36:55 +01:00
globalStyle.icon = {
color: globalStyle.color,
fontSize: 30,
};
2017-07-22 23:52:24 +01:00
globalStyle.lineInput = {
color: globalStyle.color,
backgroundColor: globalStyle.backgroundColor,
};
2017-07-21 22:40:02 +01:00
export { globalStyle }