1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Styled Dropbox mobile GUI

This commit is contained in:
Laurent Cozic
2018-03-27 17:41:19 +00:00
parent 96fb7c2087
commit 2280fb5c43
3 changed files with 50 additions and 17 deletions

View File

@ -15,6 +15,7 @@ const globalStyle = {
dividerColor: "#dddddd",
selectedColor: '#e5e5e5',
disabledOpacity: 0.2,
colorUrl: '#000CFF',
raisedBackgroundColor: "#0080EF",
raisedColor: "#003363",
@ -89,10 +90,17 @@ function addExtraStyles(style) {
fontSize: style.fontSize,
};
style.urlText = {
color: style.colorUrl,
fontSize: style.fontSize,
};
return style;
}
function themeStyle(theme) {
if (!theme) throw new Error('Theme not set');
if (themeCache_[theme]) return themeCache_[theme];
let output = Object.assign({}, globalStyle);