03-16-2023, 02:16 PM
|
#832
|
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
Originally Posted by BetterRed
In dark mode the text box is pale grey text on a white ground.
Otherwise looks good. Everything seems to be working.
My only wish is to open a protocol link defined in an HTML <a ref> tag, which references a file://, onenote://, calibre://, mailto://, or https:// or any other sort of URL.
Example - Attachment 200352
BR
|
- The only color I change is the text background, to white, because Qt changes it to a dark grey when it feels like it. I don't touch any other attributes, html or markdown. What color is the text in dark mode supposed to be, in your opinion? I should override the original html?
- The Qt widget being used is QTextEdit, not QtWebEngine (or previously, QtWebKit). The Qt Web classes all are true browsers, and do what basic browsers do.
I made the mistake of using QtWebKit in my Entities Manager plugin to edit HTML notes; a year later I had to redo it for QtWebEngine. It does open links, though, now that I think about it.
I will look at what I can do from a starting point of QTextEdit. Not full browser-like functionality, that is for sure. Maybe I could emulate some or all of the link types you specified. Don't know yet. Stay tuned.
DaltonST
Last edited by DaltonST; 03-16-2023 at 04:08 PM.
|
|
|