joplin/ReactNativeClient/lib/components/global-style.js

33 lines
1.0 KiB
JavaScript
Raw Normal View History

2017-07-21 21:40:02 +00:00
const globalStyle = {
margin: 15, // No text and no interactive component should be within this margin
backgroundColor: "#ffffff",
2017-07-22 15:55:09 +00:00
color: "#555555", // For regular text
colorFaded: "#777777", // For less important text
2017-07-21 21:40:02 +00:00
fontSize: 10,
dividerColor: "#dddddd",
2017-07-25 18:36:52 +00:00
selectedColor: '#e5e5e5',
2017-07-22 16:36:55 +00:00
disabledOpacity: 0.3,
2017-07-21 21:40:02 +00:00
// For WebView - must correspond to the properties above
htmlFontSize: '14px',
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 17:21:39 +00:00
htmlDividerColor: 'Gainsboro',
2017-07-21 21:40:02 +00:00
};
globalStyle.marginRight = globalStyle.margin;
globalStyle.marginLeft = globalStyle.margin;
2017-07-22 15:55:09 +00:00
globalStyle.marginTop = globalStyle.margin;
globalStyle.marginBottom = globalStyle.margin;
2017-07-21 21:40:02 +00:00
globalStyle.htmlMarginLeft = ((globalStyle.marginLeft / 10) * 0.6).toFixed(2) + 'em';
2017-07-22 16:36:55 +00:00
globalStyle.icon = {
color: globalStyle.color,
fontSize: 30,
};
2017-07-22 22:52:24 +00:00
globalStyle.lineInput = {
color: globalStyle.color,
backgroundColor: globalStyle.backgroundColor,
};
2017-07-21 21:40:02 +00:00
export { globalStyle }