Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2023, 07:11 PM   #871
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
http, mailto, and calibre are working.

Q. would it be feasible to have an option to have NV use a different browser for http links - i.e. not the default ?
BetterRed is offline   Reply With Quote
Old 03-18-2023, 10:35 PM   #872
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Quote:
Originally Posted by BetterRed View Post
http, mailto, and calibre are working.
Q. would it be feasible to have an option to have NV use a different browser for http links - i.e. not the default ?
Probably. I could add that setting in the JS Customization.

I suspect that for "official" default applications in Windows Settings based on file extension, you can choose what app opens. HTTP likely points to Firefox for you, however.

For missing defaults, Windows of course defaults to Edge or whatever other apps come standard with Windows. I am thinking of Evernote.

I will look at setting a personal option for http and others in JS Customization for NV.


DaltonST
DaltonST is offline   Reply With Quote
Old 03-19-2023, 01:08 AM   #873
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
Probably. I could add that setting in the JS Customization.

I suspect that for "official" default applications in Windows Settings based on file extension, you can choose what app opens. HTTP likely points to Firefox for you, however.

For missing defaults, Windows of course defaults to Edge or whatever other apps come standard with Windows. I am thinking of Evernote.

I will look at setting a personal option for http and others in JS Customization for NV.


DaltonST
Truth is: I would like an option that would apply to all http:\\ urls in calibre. But I'd settle for a JS->NV option to use a different browser I'd use Edge as my NV browser.

I used to use Evernote, but when they killed off local Notebooks I switched to Onenote - then bugger me if MS didn't do the same But at least they've kept the desktop UI - if you can get at it

BR

Last edited by BetterRed; 03-22-2023 at 05:39 PM. Reason: they -> MS
BetterRed is offline   Reply With Quote
Old 03-19-2023, 08:19 AM   #874
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by BetterRed View Post
Truth is: I would like an option that would apply to all http:\\ urls in calibre. But I'd settle for a JS->NV option to use a different browser I'd use Edge as my NV browser.

I used to use Evernote, but when they killed off local Notebooks I switched to Onenote - then bugger me if they didn't do the same But at least they've kept the desktop UI - if you can get at it

BR
See, this is why I use a 13-year-old version of OneNote
ownedbycats is offline   Reply With Quote
Old 03-19-2023, 10:35 AM   #875
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Overriding http and/or https in links to use different apps

This version supports overriding http and/or https to use different apps in links that are clickable.

See the attached image for an explanation of how to do it.


DaltonST
Attached Thumbnails
Click image for larger version

Name:	js_notes_viewer_http_https_plugin_tweak_app_override.jpg
Views:	287
Size:	729.9 KB
ID:	200480  

Last edited by DaltonST; 03-19-2023 at 05:25 PM.
DaltonST is offline   Reply With Quote
Old 03-19-2023, 11:06 AM   #876
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Notes Viewer: ToolTips a.k.a. User Guide

Attached is an image showing all of the ToolTips in the Job Spy Notes Viewer.

The menu path to NV is: JS > Look & Feel > Notes Viewer. It is near 'RowSpy'.

Using a Shortcut is recommended, or at least as a Favourite in the eponymous plugin.


DaltonST
Attached Thumbnails
Click image for larger version

Name:	js_notes_viewer_tooltips.jpg
Views:	303
Size:	682.4 KB
ID:	200481  
DaltonST is offline   Reply With Quote
Old 03-19-2023, 01:09 PM   #877
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Anything about the weird dark mode problem I've been having?

It only started happening in 1.0.216.

I can reliably trigger it by setting Windows Personalize > Colours > Choose your Colour: Custom > Default App Mode: Light while Calibre is in dark mode.

I noticed this in the note_viewer_dialog.py:

Code:
from calibre.gui2.palette import windows_is_system_dark_mode_enabled, linux_is_system_dark_mode_enabled
I think if you figure out to change that to follow Calibre instead of system that may fix it.

EDIT: In this thread: QApplication.instance().is_dark_theme

Last edited by ownedbycats; 03-19-2023 at 01:13 PM.
ownedbycats is offline   Reply With Quote
Old 03-19-2023, 01:18 PM   #878
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
I haven't been following it. Restate it clearly from the start, being specific in all things.

I will say that if Calibre is in dark mode, then it never changes the text background to anything; otherwise, it always makes it white since Qt randomly changes it to grey.

I never use dark mode on my pc, so unless the solution is trivial, I won't be inclined to spend time on it now.
DaltonST is offline   Reply With Quote
Old 03-19-2023, 01:27 PM   #879
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
In notes_viewer_dialog.py:

Code:
        self.is_dark_mode = False
        if iswindows:
            if windows_is_system_dark_mode_enabled():
                self.is_dark_mode = True
        elif not iswindows and not ismacos:
            if linux_is_system_dark_mode_enabled():
                self.is_dark_mode = True
Code:
    def set_text_background_color(self):
        if not self.is_dark_mode:
            self.plain_qtextedit.setTextBackgroundColor(color_white)
            self.markdown_qtextedit.setTextBackgroundColor(color_white)
            self.html_qtextbrowser.setTextBackgroundColor(color_white)
These lines check the system theme, rather than which theme Calibre is using (QApplication.instance().is_dark_theme).

When Windows is using light mode but Calibre is in dark mode, the colours do weird things:

Click image for larger version

Name:	2023-03-19 14_26_14-JS+ GUI Tool_  Notes Viewer.png
Views:	299
Size:	35.1 KB
ID:	200484
ownedbycats is offline   Reply With Quote
Old 03-19-2023, 01:30 PM   #880
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
To test, I changed the lines to

Code:
    def set_text_background_color(self):
        if not QApplication.instance().is_dark_theme:
            self.plain_qtextedit.setTextBackgroundColor(color_white)
            self.markdown_qtextedit.setTextBackgroundColor(color_white)
            self.html_qtextbrowser.setTextBackgroundColor(color_white)
It fixed it

EDIT: wrong screenshot, hang on

EDIT: Replaced screenshot

ANOTHER EDIT: Additional testing: It also works as expected using Calibre in System default with Windows in dark mode.
Attached Thumbnails
Click image for larger version

Name:	2023-03-19 14_35_24-JS+ GUI Tool_  Notes Viewer.png
Views:	309
Size:	34.2 KB
ID:	200486  

Last edited by ownedbycats; 03-19-2023 at 01:39 PM.
ownedbycats is offline   Reply With Quote
Old 03-19-2023, 05:24 PM   #881
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
See prior postings #19 & #20 for documentation images of how NV works.


DaltonST

Last edited by DaltonST; 03-19-2023 at 10:31 PM.
DaltonST is offline   Reply With Quote
Old 03-19-2023, 06:30 PM   #882
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
This version supports overriding http and/or https to use different apps in links that are clickable.

See the attached image for an explanation of how to do it.


DaltonST
Doesn't want to work for me, links open in default browser (Firefox).

This is what have in plugin tweaks

Code:
job_spy_notes_viewer_protocol_default_apps = {'https': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'}
FTR: That's not what I typed, I had the path in double quotes with backslashes - which I guess got pythonised as per the tooltip.

This is the https link:

Code:
<div>
<p><a href="https://www.mobileread.com/forums/index.php"><span style="color: #6cb4ee">MR Home Page</span></a></p></div>
BR
BetterRed is offline   Reply With Quote
Old 03-19-2023, 06:37 PM   #883
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Compare the image showing how to do it with what you did. Not the same. Override http not https.

DaltonST
DaltonST is offline   Reply With Quote
Old 03-19-2023, 06:41 PM   #884
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
Compare the image showing how to do it with what you did. Not the same. Override http not https.

DaltonST
That's where I started - same result, so thought I'd try https.

BR
BetterRed is offline   Reply With Quote
Old 03-19-2023, 06:42 PM   #885
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Also the path is meant to be inside the single quotes.
DaltonST is offline   Reply With Quote
Reply

Tags
author aka, author pen name, colors, toolbag, toolbox, tools


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Ex Libris AlPe Plugins 87 10-10-2020 03:10 PM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
Ubuntu/Linux : Command to schedule a job with Calibre.( No GUI ) DurgaPrasad Calibre 0 10-16-2013 06:50 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 10:03 PM.


MobileRead.com is a privately owned, operated and funded community.