pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.68k stars 414 forks source link

[Q] preview stylings don't apply #2049

Closed netfly closed 3 years ago

netfly commented 3 years ago

General question

First of all ... great Tool. I searched for a good Note App which works well with Nextcloud and QOwnNotes is super. Thanks a lot. But I have a few issues which I don't figure out how to fix them.

I wonder why the Preview does not accept padding and border stylings. I use the custom styling script for that. Colors and margins work fine, but not paddings and borders. Any idea why? When I check the Qt docu (https://doc.qt.io/qt-5/richtext-html-subset.html) this settings should work too. Is there an issue with Qt for mac?

I use this styling: blockquote {border-left: solid 3px red; padding: 10px; background-color: #333333} ... only the bg color is used. Btw ... the stylings are there. I see them on the exported HTML. There everythings works as expected.

I also wonder, why the button to apply the editor stylings to the preview window does not do anything. No, thats not true. They apply on font-size, but not on coloring. I tried to aktivate/deaktivate dark mode with no effect too.

I use QOwnNotes - version 21.2.1 - GitHub Actions - build 811 on Mac.

Thanks for your feedback.

Kind regards Markus

Relevant log output in the Log panel

Expand ``` [10:51:19] [scripting] loading script file: /Users/markus/Library/Application Support/PBE/QOwnNotes/scripts/duplicate-note/duplicate-note.qml [10:51:19] [scripting] loading script file: /Users/markus/Library/Application Support/PBE/QOwnNotes/scripts/preview-styling/preview-styling.qml [10:51:19] [scripting] loading script file: /Users/markus/Library/Application Support/PBE/QOwnNotes/scripts/favorite-note/favorite-note.qml ```

Information about the application, settings and environment

Expand QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Fr. Feb. 12 10:51:51 2021` **Version**: `21.2.1` **Build date**: `Feb 12 2021` **Build number**: `811` **Platform**: `macosx` **Operating System**: `macOS 11.2` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `/Users/markus/Library/Preferences/com.pbe.QOwnNotes.plist` **Application database path**: `/Users/markus/Library/Application Support/PBE/QOwnNotes/QOwnNotes.sqlite` **Application arguments**: `/Applications/QOwnNotes.app/Contents/MacOS/QOwnNotes` **Qt Debug**: `0` **Locale (system)**: `de_DE` **Locale (interface)**: `de` **Primary screen resolution**: `1680x1050` **Screen resolution(s)**: `1680x1050, 2560x1440` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `354` **Calendar items**: `0` **Enabled scripts**: `3` ## Server Info **serverUrl**: `**removed**` **appIsValid**: `yes` **notesPathExists**: `yes` **serverVersion**: `20.0.6.1` **appVersion**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: *empty* **Language codes**: *empty* **Language names**: *empty* **Application dictionaries path**: `/Users/markus/Library/Application Support/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `1` ### Note folder `Standard` **id**: `1` **isCurrent**: `yes` **activeTagId**: `0` **localPath**: `**removed**` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **activeNoteSubFolder name**: *empty* **database file**: `**removed**` ## Cloud connections ### Cloud connection `**removed**` **id**: `1` **isCurrent**: `yes` **serverUrl**: `**removed**` **username**: `**removed**` ## Enabled scripts ### Script `Duplicate note` **id**: `1` **path**: `/Users/markus/Library/Application Support/PBE/QOwnNotes/scripts/duplicate-note/duplicate-note.qml` **variablesJson**: *empty* **identifier**: `duplicate-note` **version**: `0.0.1` **minAppVersion**: `20.10.7` ### Script `Custom note preview styling` **id**: `2` **path**: `/Users/markus/Library/Application Support/PBE/QOwnNotes/scripts/preview-styling/preview-styling.qml` **variablesJson**: ``` { "customStylesheet": "blockquote {border-left: solid 3px red; padding: 10px; background-color: #333333}" } ``` **identifier**: `preview-styling` **version**: `0.0.5` **minAppVersion**: `20.6.0` ### Script `Favorite note` **id**: `3` **path**: `/Users/markus/Library/Application Support/PBE/QOwnNotes/scripts/favorite-note/favorite-note.qml` **variablesJson**: *empty* **identifier**: `favorite-note` **version**: `0.0.1` **minAppVersion**: `17.05.6` ## Settings **ACTIONS HS USB FlashDisk** (QString): `1` **AKLastCheckInAttemptDate** (QDateTime): `2019-10-17T08:16:32.684` **AKLastCheckInSuccessDate** (QDateTime): `2019-10-17T08:16:34.296` **AKLastEmailListRequestDateKey** (QDateTime): `2021-02-11T22:08:11.111` **AKLastIDMSEnvironment** (qlonglong): `0` **AboutDialog/geometry** (QByteArray): `` **ActiveNoteHistoryItem** (NoteHistoryItem): `` **Cable Matters Inc/ Cable Matters USB-C Video Cable** (QString): `1` **Cherry GmbH wired keyboard** (QString): `1` **ContextMenuGesture** (qlonglong): `1` **Country** (QString): `DE` **Debug/fakeOldVersionNumber** (bool): `false` **Debug/fileLogging** (bool): `false` **DisplayLink USB-C Triple-4K Dock** (QString): `1` **DistractionFreeMode/menuBarGeometry** (QByteArray): `` **DistractionFreeMode/menuBarHeight** (qlonglong): `0` **DistractionFreeMode/menuBarVisible** (bool): `false` **DistractionFreeMode/windowState** (QByteArray): `` **Editor/ColorSchemes** (QStringList): `EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368` **Editor/CurrentSchemaKey** (QString): `EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368` **Editor/autoBracketClosing** (bool): `true` **Editor/autoBracketRemoval** (bool): `true` **Editor/centerCursor** (bool): `false` **Editor/disableCursorBlinking** (bool): `false` **Editor/editorWidthInDFMOnly** (bool): `true` **Editor/highlightCurrentLine** (bool): `true` **Editor/indentSize** (qlonglong): `4` **Editor/removeTrailingSpaces** (bool): `false` **Editor/useTabIndent** (bool): `false` **Editor/vimMode** (bool): `false` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_-1** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_0** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1000** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1001** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1002** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1003** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1004** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1005** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_1006** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_11** (QString): `false` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_12** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_13** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_14** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_15** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_16** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_17** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_18** (bool): `false` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_19** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_2** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_21** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_22** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_23** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_25** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_28** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_3** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_4** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColorEnabled_8** (QString): `false` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_-1** (QColor): `#ffffff` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_0** (QColor): `#fff8ef` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1** (QColor): `#fff2e4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1000** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1001** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1002** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1003** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1004** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1005** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_1006** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_11** (QColor): `#aaf7ff` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_12** (QColor): `#f1f1f4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_13** (QColor): `#f1f1f4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_14** (QColor): `#f1f1f4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_15** (QColor): `#f1f1f4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_16** (QColor): `#f1f1f4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_17** (QColor): `#f1f1f4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_18** (QColor): `#eccdf9` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_19** (QColor): `#e2e7e2` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_2** (QColor): `#fff2e4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_21** (QColor): `#ebebeb` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_22** (QColor): `#f7f6ff` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_23** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_25** (QColor): `#fffae2` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_28** (QColor): `#ebebeb` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_3** (QColor): `#edffed` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_4** (QColor): `#edfced` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/BackgroundColor_8** (QColor): `#dbf9e5` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_12** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_13** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_14** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_15** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_16** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_17** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_18** (bool): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_8** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Bold_9** (bool): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/FontSizeAdaption_12** (QString): `200` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/FontSizeAdaption_13** (QString): `160` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/FontSizeAdaption_14** (QString): `130` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/FontSizeAdaption_15** (QString): `100` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/FontSizeAdaption_16** (QString): `90` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/FontSizeAdaption_17** (QString): `90` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/FontSizeAdaption_8** (QString): `100` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_-1** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_0** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_10** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1000** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1001** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1002** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1003** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1004** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1005** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_1006** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_11** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_12** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_13** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_14** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_15** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_16** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_17** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_18** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_19** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_2** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_20** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_21** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_22** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_23** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_24** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_26** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_29** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_3** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_30** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_4** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_5** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_6** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_7** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_8** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColorEnabled_9** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_-1** (QColor): `#303030` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_0** (QColor): `#fc7e00` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1** (QColor): `#fc7e00` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_10** (QColor): `#a3007b` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1000** (QColor): `#f92672` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1001** (QColor): `#3ba23f` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1002** (QColor): `#908b74` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1003** (QColor): `#636def` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1004** (QColor): `#b57c50` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1005** (QColor): `#ae81ff` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_1006** (QColor): `#f92672` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_11** (QColor): `#ababab` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_12** (QColor): `#00316e` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_13** (QColor): `#003a82` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_14** (QColor): `#004396` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_15** (QColor): `#0051b4` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_16** (QColor): `#0055be` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_17** (QColor): `#0055be` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_18** (QColor): `#aa0000` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_19** (QColor): `#008000` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_2** (QColor): `#fc7e00` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_20** (QColor): `#3d3d3d` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_21** (QColor): `#393939` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_22** (QColor): `#5771be` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_23** (QColor): `#006c00` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_24** (QColor): `#cccccc` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_26** (QColor): `#ff5500` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_29** (QColor): `#bf0000` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_3** (QColor): `#00bf00` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_30** (QColor): `#007e00` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_4** (QColor): `#006c00` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_5** (QColor): `#3d3d3d` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_6** (QColor): `#3d3d3d` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_7** (QColor): `#215490` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_8** (QColor): `#00428a` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/ForegroundColor_9** (QColor): `#a6000f` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Italic_7** (QString): `true` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Name** (QString): `Netfly Light` **EditorColorSchema-668060e0-ce4a-446f-9b9d-188e631c1368/Underline_26** (QString): `true` **FileDialog/LastPath** (QString): `**removed**` **FileDialog/LastPath-PreviewHTMLFileExport** (QString): `**removed**` **Freecom Hard Drive XS** (QString): `1` **IssueAssistantDialog/geometry** (QByteArray): `` **JMicron USB to ATA·ATAPI Bridge** (QString): `1` **LastUpdateCheck** (QDateTime): `2021-02-12T10:36:31.564` **LogWidget/criticalLog** (bool): `true` **LogWidget/debugLog** (bool): `true` **LogWidget/fatalLog** (bool): `true` **LogWidget/infoLog** (bool): `true` **LogWidget/scriptingLog** (bool): `true` **LogWidget/statusLog** (bool): `true` **LogWidget/warningLog** (bool): `true` **Logitech USB BootLoader** (QString): `1` **Logitech USB Receiver** (QString): `1` **MATSHITA BD-MLT UJ260AF** (QString): `1` **MainWindow/geometry** (QByteArray): `` **MainWindow/mainToolBar.iconSize** (qlonglong): `22` **MainWindow/menuBarGeometry** (QByteArray): `` **MainWindow/noteTextEdit.code.font** (QString): `.AppleSystemUIFontMonospaced,11,-1,5,50,0,0,0,0,0` **MainWindow/noteTextEdit.font** (QString): `.AppleSystemUIFont,14,-1,5,50,0,0,0,0,0` **MainWindow/noteTextView.code.font** (QString): `.AppleSystemUIFontMonospaced,10,-1,5,50,0,0,0,0,0` **MainWindow/noteTextView.font** (QString): `.AppleSystemUIFont,13,-1,5,50,0,0,0,0,0` **MainWindow/noteTextView.ignoreCodeFontSize** (bool): `false` **MainWindow/noteTextView.rtl** (bool): `false` **MainWindow/noteTextView.underline** (bool): `true` **MainWindow/noteTextView.useEditorStyles** (bool): `false` **MainWindow/noteTextView.useInternalExportStyling** (bool): `true` **MainWindow/showNotesFromAllNoteSubFolders** (bool): `true` **MultipleSessionEnabled** (bool): `true` **NoteFolder-1/NoteTabNameList** (QStringList): `Epheser 11-14` **NoteFolder-1/NoteTabStickinessList** (QStringList): *empty* **NoteFolder-1/NoteTabSubFolderPathDataList** (QStringList): `Studium (Epheser)` **NoteHistory-1** (QVariantList): `` **NoteHistoryCurrentIndex-1** (qlonglong): `11` **OrphanedAttachmentsDialog/geometry** (QByteArray): `` **PKSecureElementAvailableFlagsByHost** (qlonglong): `3` **PiwikClientId** (QString): `` **Realtek USB 10·100·1000 LAN** (QString): `1` **SMI Corporation USB DISK** (QString): `1` **SanDisk Cruzer Blade** (QString): `1` **SanDisk Ultra Fit** (QString): `1` **ScriptRepositoryDialog/geometry** (QByteArray): `` **ScriptRepositoryDialog/mainSplitterState** (QByteArray): `` **Seagate Expansion Desk** (QString): `1` **SearchEngineId** (qlonglong): `2` **SettingsDialog/geometry** (QByteArray): `` **SettingsDialog/mainSplitterState** (QByteArray): `` **ShareDialog/geometry** (QByteArray): `` **ShowSystemTray** (bool): `false` **Silicon Laboratories EFM8 HID ISP** (QString): `1` **StartHidden** (bool): `false` **UpdateDialog/geometry** (QByteArray): `` **WebAutomaticSpellingCorrectionEnabled** (bool): `false` **WelcomeDialog/geometry** (QByteArray): `` **_HIHideMenuBar** (bool): `false` **acceptAllExternalModifications** (bool): `false` **allowNoteEditing** (bool): `true` **allowOnlyOneAppInstance** (bool): `false` **appMetrics/disableAppHeartbeat** (bool): `true` **appMetrics/disableTracking** (bool): `true` **appMetrics/notificationShown** (bool): `true` **automaticNoteFolderDatabaseClosing** (bool): `false` **checkSpelling** (bool): `false` **closeTodoListAfterSave** (bool): `false` **cryptoKey** (qlonglong): `` **currentNoteFolderId** (qlonglong): `1` **currentWorkspace** (QString): `5ae8a78d-4bff-4c33-9866-629d3bea937e` **cursorWidth** (qlonglong): `1` **customNoteFileExtensionList** (QStringList): *empty* **darkMode** (bool): `false` **darkModeColors** (bool): `true` **darkModeIconTheme** (bool): `true` **darkModeTrayIcon** (bool): `true` **defaultNoteFileExtension** (QString): `md` **demoNotesCreated** (bool): `true` **disableAutomaticUpdateDialog** (bool): `true` **disableSavedSearchesAutoCompletion** (bool): `false` **dockWasInitializedOnce** (bool): `true` **enableNoteTree** (bool): `false` **enableSocketServer** (bool): `true` **externalEditorPath** (QString): *empty* **fullyHighlightedBlockquotes** (bool): `false` **gitCommitInterval** (qlonglong): `30` **gitExecutablePath** (QString): *empty* **gitLogCommand** (QString): *empty* **guiFirstRunInit** (bool): `true` **ignoreAllExternalModifications** (bool): `false` **ignoreAllExternalNoteFolderChanges** (bool): `false` **ignoreNoteSubFolders** (QString): `^\.` **imageScaleDown** (bool): `false` **imageScaleDownMaximumHeight** (qlonglong): `1024` **imageScaleDownMaximumWidth** (qlonglong): `1024` **initialLayoutIdentifier** (QString): `full` **insertTimeFormat** (QString): *empty* **interfaceFontSize** (qlonglong): `11` **interfaceLanguage** (QString): `de` **interfaceStyle** (QString): `macintosh` **internalIconTheme** (bool): `true` **itemHeight** (qlonglong): `22` **legacyLinking** (bool): `false` **localTrash/autoCleanupDays** (qlonglong): `30` **localTrash/autoCleanupEnabled** (bool): `true` **localTrash/supportEnabled** (bool): `true` **markdownHighlightingEnabled** (bool): `true` **navigationPanelHideSearch** (bool): `false` **networking/ignoreSSLErrors** (bool): `true` **networking/proxyType** (qlonglong): `2` **newNoteAskHeadline** (bool): `false` **noteEditIsCentralWidget** (bool): `true` **noteListPreview** (bool): `false` **noteSaveIntervalTime** (qlonglong): `10` **noteSubfoldersPanelDisplayAsFullTree** (bool): `true` **noteSubfoldersPanelHideSearch** (bool): `false` **noteSubfoldersPanelOrder** (qlonglong): `0` **noteSubfoldersPanelShowFullPath** (bool): `false` **noteSubfoldersPanelShowNotesRecursively** (bool): `false` **noteSubfoldersPanelShowRootFolderName** (bool): `false` **noteSubfoldersPanelSort** (qlonglong): `0` **notesPanelOrder** (qlonglong): `0` **notesPanelSort** (qlonglong): `1` **notesPath** (QString): `/Users/markus/Nextcloud/Notes` **notifyAllExternalModifications** (bool): `false` **overrideInterfaceFontSize** (bool): `false` **ownCloud/supportEnabled** (bool): `true` **ownCloud/todoCalendarBackend** (qlonglong): `3` **ownCloud/todoCalendarCalDAVPassword** (QString): `` **ownCloud/todoCalendarCalDAVServerUrl** (QString): *empty* **ownCloud/todoCalendarCalDAVUsername** (QString): *empty* **ownCloud/todoCalendarCloudConnectionId** (qlonglong): `0` **ownCloud/todoCalendarDisplayNameList** (QStringList): *empty* **ownCloud/todoCalendarEnabledList** (QStringList): *empty* **ownCloud/todoCalendarEnabledUrlList** (QStringList): *empty* **ownCloud/todoCalendarUrlList** (QStringList): *empty* **ownCloudInfo/appIsValid** (bool): `true` **ownCloudInfo/connectionErrorMessage** (QString): `Unknown error` **ownCloudInfo/notesPathExistsText** (QString): `yes` **ownCloudInfo/serverVersion** (QString): `20.0.6.1` **previousWorkspace** (QString): `initial` **restoreCursorPosition** (bool): `false` **restoreLastNoteAtStartup** (bool): `true` **restoreNoteTabs** (bool): `true` **savedSearches/noteFolder-1** (QStringList): `Qt QML 5.15.2` **showMatches** (bool): `true` **showMenuBar** (bool): `false` **showStatusBar** (bool): `true` **systemIconTheme** (bool): `false` **tagWasAddedToNote** (bool): `true` **taggingShowNotesRecursively** (bool): `false` **tagsPanelHideNoteCount** (bool): `true` **tagsPanelHideSearch** (bool): `true` **tagsPanelOrder** (qlonglong): `0` **tagsPanelSort** (qlonglong): `0` **todoCalendarSupport** (bool): `false` **toolbar/1/items** (QStringList): `action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_trash, actionShare_note` **toolbar/1/name** (QString): `mainToolBar` **toolbar/1/title** (QString): `Hauptsymbolleiste` **toolbar/2/items** (QStringList): `actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote` **toolbar/2/name** (QString): `formattingToolbar` **toolbar/2/title** (QString): `Formatierungs-Werkzeugleiste` **toolbar/3/items** (QStringList): `actionInsert_Link_to_note, actionInsert_image, actionInsert_current_time` **toolbar/3/name** (QString): `insertingToolbar` **toolbar/3/title** (QString): `Einfügen-Werkzeugleiste` **toolbar/4/items** (QStringList): `action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note` **toolbar/4/name** (QString): `encryptionToolbar` **toolbar/4/title** (QString): `Verschlüsselung-Werkzeugleiste` **toolbar/5/items** (QStringList): `actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size` **toolbar/5/name** (QString): `windowToolbar` **toolbar/5/title** (QString): `Fenster-Werkzeugleiste` **toolbar/6/items** (QStringList): `action_Quit` **toolbar/6/name** (QString): `quitToolbar` **toolbar/6/title** (QString): `Beenden - Symbolleiste` **toolbar/size** (qlonglong): `6` **useNoteFolderButtons** (bool): `false` **useSoftWrapInNoteEditor** (bool): `true` **useUNIXNewline** (bool): `false` **webSocketServerService/bookmarksNoteName** (QString): `Bookmarks` **webSocketServerService/bookmarksTag** (QString): `bookmarks` **webSocketServerService/port** (qlonglong): `22222` **webSocketServerService/token** (QString): `hMSb3VCK` **workspace-5ae8a78d-4bff-4c33-9866-629d3bea937e/name** (QString): `Netfly` **workspace-5ae8a78d-4bff-4c33-9866-629d3bea937e/noteSubFolderDockWidgetVisible** (bool): `true` **workspace-5ae8a78d-4bff-4c33-9866-629d3bea937e/windowState** (QByteArray): `` **workspace-Yyg5hFy7z4Ms/name** (QString): `Vollständig` **workspace-Yyg5hFy7z4Ms/noteSubFolderDockWidgetVisible** (bool): `true` **workspace-Yyg5hFy7z4Ms/windowState** (QByteArray): `` **workspace-initial/name** (QString): `Minimal` **workspace-initial/noteSubFolderDockWidgetVisible** (bool): `true` **workspace-initial/windowState** (QByteArray): `` **workspaces** (QStringList): `initial, Yyg5hFy7z4Ms, 5ae8a78d-4bff-4c33-9866-629d3bea937e` ## System environment **USER**: `markus` **__CFBundleIdentifier**: `com.PBE.QOwnNotes` **COMMAND_MODE**: `unix2003` **LOGNAME**: `markus` **PATH**: `/usr/bin:/bin:/usr/sbin:/sbin` **SSH_AUTH_SOCK**: `/private/tmp/com.apple.launchd.7nsDkYrJPX/Listeners` **SHELL**: `/bin/zsh` **HOME**: `/Users/markus` **__CF_USER_TEXT_ENCODING**: `0x1F5:0x0:0x3` **TMPDIR**: `/var/folders/f0/z11frxzs4gv4hczn621m86dh0000gn/T/` **XPC_SERVICE_NAME**: `application.com.PBE.QOwnNotes.63645534.63698193` **XPC_FLAGS**: `0x0` **QT_LOGGING_RULES**: `qt.network.ssl.warning=false`
pbek commented 3 years ago

Thank you for your kind words! 😁 The styling capabilities of the QTextBrowser used as preview are very limited!

Btw ... the stylings are there. I see them on the exported HTML. There everythings works as expected.

Maybe you tried to style the wrong tag? For playing with the preview it's best to use the raw html export provided by right clicking on the preview, then at least you see the html you are trying to tamper with.

I also wonder, why the button to apply the editor stylings to the preview window does not do anything. No, thats not true. They apply on font-size, but not on coloring. I tried to aktivate/deaktivate dark mode with no effect too.

I can't reproduce that. Can you post a screenshot? Did you try to start QON in a different session (with new settings) to see if some other settings are interfering? See: https://www.qownnotes.org/getting-started/cli-parameters.html

pbek commented 3 years ago

... only the bg color is used.

I think border is only supported by table cells 😬

netfly commented 3 years ago

I think border is only supported by table cells

But padding should work.

pbek commented 3 years ago

But padding should work.

Your styles look correct. I can't find any anything about it if it's supported. You could only try to start modifying the html too in a script to put something around the tag that supports padding (or use the margin of the blockquote then).

netfly commented 3 years ago

I can't reproduce that. Can you post a screenshot?

Screenshot at Feb 12 11-18-11

Here you see, that the right pane is in dark mode even when I checked "Use editor highlighting styles also for the preview" and unchecked "enabled dark mode".

I restarted in a test session.

Maybe you tried to style the wrong tag?

No I don't because the background-color is used :-)

pbek commented 3 years ago

I restarted in a test session.

the screenshot isn't from the test session, correct? (because dark mode shouldn't be the default)

netfly commented 3 years ago

the screenshot isn't from the test session, correct? (because dark mode shouldn't be the default)

it is ..... thats the problem. It only changes, when I switch the mode in the settings of my mac. But then everything is light, but still no colors.

pbek commented 3 years ago

I've no idea how the macOS dark mode is interfering with Qt UI styling. Under Linux it works great. What happens if you turn on QON's own dark mode?

netfly commented 3 years ago

Then everything is dark .... the editor too.

pbek commented 3 years ago

the editor too.

you can configure the editor separately in the settings

netfly commented 3 years ago

I know :) ..... ok thank you for your support .... maybe you will find a solution for this issue. It's not a big deal. I just whould prefer to have a light preview without switching my whole system.

Thanks

pbek commented 3 years ago

So what do you want? Dark edit and light preview?

netfly commented 3 years ago

Sorry, I also had a lot of other issues which brings me to the point to go back to Joplin. I really like the concept of QOwnNotes to work with the nextcloud notes it self, but it is (maybe just for mac) too buggy.

Thanks a lot for your effort.

pbek commented 3 years ago

No problem. I myself run QON on all platforms (including macOS) and have no issues. 😉

netfly commented 3 years ago

No problem. I myself run QON on all platforms (including macOS) and have no issues. 😉

Yesterday after a few hours QON was resetting my config every time I changed something in my settings. Most of the time I had to restart QON and after that everything was back to the beginning. This drove me nuts. So I decided to use my old setup with joplin. Maybe I'll give it a try again, because I really like the concept of using the native nextcloud notes.

pbek commented 3 years ago

Yesterday after a few hours QON was resetting my config every time I changed something in my settings. Most of the time I had to restart QON and after that everything was back to the beginning.

Phew, never heard of such a thing before on any platform. Almost sounds like the app doesn't have write access to it's config plist /Users/markus/Library/Preferences/com.pbe.QOwnNotes.plist...

netfly commented 3 years ago

I don't know .... big sur gives me a hard time with all kind of apps. :-(