diff --git a/ElectronClient/app/gui/ClipperConfigScreen.jsx b/ElectronClient/app/gui/ClipperConfigScreen.jsx index 1579bd985..2da088c6d 100644 --- a/ElectronClient/app/gui/ClipperConfigScreen.jsx +++ b/ElectronClient/app/gui/ClipperConfigScreen.jsx @@ -45,15 +45,21 @@ class ClipperConfigScreenComponent extends React.Component { const style = this.props.style; const theme = themeStyle(this.props.theme); - const headerStyle = { - width: style.width, - }; + const headerStyle = Object.assign({}, theme.headerStyle, { width: style.width }); + + const containerStyle = Object.assign({}, theme.containerStyle, { + overflowY: 'scroll', + height:style.height, + }); + + const buttonStyle = Object.assign({}, theme.buttonStyle, { marginRight: 10 }); const stepBoxStyle = { border: "1px solid #ccc", padding: 15, paddingTop: 0, marginBottom: 15, + backgroundColor: theme.backgroundColor, }; let webClipperStatusComps = []; @@ -68,7 +74,7 @@ class ClipperConfigScreenComponent extends React.Component { webClipperStatusComps.push() } else { webClipperStatusComps.push(
{_('The web clipper service is not enabled.')}
) - webClipperStatusComps.push() + webClipperStatusComps.push() } const apiTokenStyle = Object.assign({}, theme.textStyle, { @@ -81,7 +87,7 @@ class ClipperConfigScreenComponent extends React.Component { return ({_('Joplin Web Clipper allows saving web pages and screenshots from your browser to Joplin.')}
{_('In order to use the web clipper, you need to do the following:')}
@@ -106,7 +112,7 @@ class ClipperConfigScreenComponent extends React.Component {{_('Advanced options')}
{_('Authorisation token:')}
-{this.props.apiToken} {_('Copy token')}
+{this.props.apiToken} {_('Copy token')}
{_('This authorisation token is only needed to allow third-party applications to access Joplin.')}
{_('To allow Joplin to synchronise with Dropbox, please follow the steps below:')}
{_('Step 1: Open this URL in your browser to authorise the application:')}
{this.state.loginUrl} @@ -59,4 +61,4 @@ const mapStateToProps = (state) => { const DropboxLoginScreen = connect(mapStateToProps)(DropboxLoginScreenComponent); -module.exports = { DropboxLoginScreen }; \ No newline at end of file +module.exports = { DropboxLoginScreen }; diff --git a/ElectronClient/app/gui/EncryptionConfigScreen.jsx b/ElectronClient/app/gui/EncryptionConfigScreen.jsx index 28ab352aa..2fa1ae417 100644 --- a/ElectronClient/app/gui/EncryptionConfigScreen.jsx +++ b/ElectronClient/app/gui/EncryptionConfigScreen.jsx @@ -50,6 +50,13 @@ class EncryptionConfigScreenComponent extends React.Component { renderMasterKey(mk) { const theme = themeStyle(this.props.theme); + const passwordStyle = { + color: theme.color, + backgroundColor: theme.backgroundColor, + border: '1px solid', + borderColor: theme.dividerColor, + } + const onSaveClick = () => { return shared.onSavePasswordClick(this, mk); } @@ -69,7 +76,7 @@ class EncryptionConfigScreenComponent extends React.Component {{shared.decryptedStatText(this)}
; - const toggleButton = + const toggleButton = let masterKeySection = null; @@ -213,4 +218,4 @@ const mapStateToProps = (state) => { const EncryptionConfigScreen = connect(mapStateToProps)(EncryptionConfigScreenComponent); -module.exports = { EncryptionConfigScreen }; \ No newline at end of file +module.exports = { EncryptionConfigScreen }; diff --git a/ElectronClient/app/gui/Header.jsx b/ElectronClient/app/gui/Header.jsx index 070b6c31c..2db012ad5 100644 --- a/ElectronClient/app/gui/Header.jsx +++ b/ElectronClient/app/gui/Header.jsx @@ -108,6 +108,9 @@ class HeaderComponent extends React.Component { color: style.color, fontSize: style.fontSize, fontFamily: style.fontFamily, + backgroundColor: style.searchColor, + border: '1px solid', + borderColor: style.dividerColor, }; const searchButton = { @@ -171,6 +174,8 @@ class HeaderComponent extends React.Component { paddingLeft: theme.headerButtonHPadding, paddingRight: theme.headerButtonHPadding, color: theme.color, + searchColor: theme.backgroundColor, + dividerColor: theme.dividerColor, textDecoration: 'none', fontFamily: theme.fontFamily, fontSize: theme.fontSize, @@ -212,4 +217,4 @@ const mapStateToProps = (state) => { const Header = connect(mapStateToProps)(HeaderComponent); -module.exports = { Header }; \ No newline at end of file +module.exports = { Header }; diff --git a/ElectronClient/app/gui/IconButton.jsx b/ElectronClient/app/gui/IconButton.jsx index 1671d5a33..f1f1244f5 100644 --- a/ElectronClient/app/gui/IconButton.jsx +++ b/ElectronClient/app/gui/IconButton.jsx @@ -35,4 +35,4 @@ class IconButton extends React.Component { } -module.exports = { IconButton }; \ No newline at end of file +module.exports = { IconButton }; diff --git a/ElectronClient/app/gui/MainScreen.jsx b/ElectronClient/app/gui/MainScreen.jsx index dd08f5e9d..4f7c58109 100644 --- a/ElectronClient/app/gui/MainScreen.jsx +++ b/ElectronClient/app/gui/MainScreen.jsx @@ -336,14 +336,17 @@ class MainScreenComponent extends React.Component { } render() { - const style = this.props.style; + const theme = themeStyle(this.props.theme); + const style = Object.assign({ + color: theme.color, + backgroundColor: theme.backgroundColor, + }, this.props.style); const promptOptions = this.state.promptOptions; const folders = this.props.folders; const notes = this.props.notes; const messageBoxVisible = this.props.hasDisabledSyncItems || this.props.showMissingMasterKeyMessage; const sidebarVisibility = this.props.sidebarVisibility; const styles = this.styles(this.props.theme, style.width, style.height, messageBoxVisible, sidebarVisibility); - const theme = themeStyle(this.props.theme); const selectedFolderId = this.props.selectedFolderId; const onConflictFolder = this.props.selectedFolderId === Folder.conflictFolderId(); diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index 8c1ce89b4..9f64de194 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -37,6 +37,7 @@ require('brace/mode/markdown'); // https://ace.c9.io/build/kitchen-sink.html // https://highlightjs.org/static/demo/ require('brace/theme/chrome'); +require('brace/theme/twilight'); class NoteTextComponent extends React.Component { @@ -1401,6 +1402,10 @@ class NoteTextComponent extends React.Component { paddingLeft: 8, paddingRight: 8, marginRight: rootStyle.paddingLeft, + color: theme.color, + backgroundColor: theme.backgroundColor, + border: '1px solid', + borderColor: theme.dividerColor, }; const toolbarStyle = { @@ -1432,6 +1437,9 @@ class NoteTextComponent extends React.Component { paddingTop: paddingTop + 'px', lineHeight: theme.textAreaLineHeight + 'px', fontSize: theme.fontSize + 'px', + color: theme.color, + backgroundColor: theme.backgroundColor, + editorTheme: theme.editorTheme, }; if (visiblePanes.indexOf('viewer') < 0) { @@ -1462,7 +1470,8 @@ class NoteTextComponent extends React.Component { const htmlHasChanged = this.lastSetHtml_ !== html; if (htmlHasChanged) { - this.webview_.send('setHtml', html); + let options = {codeTheme: theme.codeThemeCss}; + this.webview_.send('setHtml', html, options); this.lastSetHtml_ = html; } @@ -1535,7 +1544,7 @@ class NoteTextComponent extends React.Component { const editor =