1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Highlight row backgroung in table

This commit is contained in:
Laurent Cozic 2019-02-10 17:16:11 +00:00
parent ea9f1dc91d
commit f0020b3393
3 changed files with 18 additions and 1 deletions

View File

@ -791,7 +791,9 @@ class NoteTextComponent extends React.Component {
webviewReady: true,
});
// if (Setting.value('env') === 'dev') this.webview_.openDevTools();
if (Setting.value('env') === 'dev') {
this.webviewRef_.current.wrappedInstance.openDevTools();
}
}
editor_ref(element) {

View File

@ -64,6 +64,10 @@ class NoteTextViewerComponent extends React.Component {
this.destroyWebview();
}
// ----------------------------------------------------------------
// Wrap WebView functions
// ----------------------------------------------------------------
send(channel, arg0 = null, arg1 = null, arg2 = null, arg3 = null) {
return this.webviewRef_.current.send(channel, arg0, arg1, arg2, arg3);
}
@ -76,6 +80,14 @@ class NoteTextViewerComponent extends React.Component {
return this.webviewRef_.current.print(options);
}
openDevTools() {
return this.webviewRef_.current.openDevTools();
}
// ----------------------------------------------------------------
// Wrap WebView functions (END)
// ----------------------------------------------------------------
render() {
return <webview
ref={this.webviewRef_}

View File

@ -635,6 +635,9 @@ class MdToHtml {
tr:nth-child(even) {
background-color: ` + style.htmlTableBackgroundColor + `;
}
tr:hover {
background-color: ` + style.raisedBackgroundColor + `;
}
hr {
border: none;
border-bottom: 2px solid ` + style.htmlDividerColor + `;