|  03-18-2023, 07:11 PM | #871 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 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 ? | 
|   |   | 
|  03-18-2023, 10:35 PM | #872 | |
| Deviser            Posts: 2,265 Karma: 2090983 Join Date: Aug 2013 Location: Texas Device: none | Quote: 
 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 | |
|   |   | 
| Advert | |
|  | 
|  03-19-2023, 01:08 AM | #873 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
  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 | |
|   |   | 
|  03-19-2023, 08:19 AM | #874 | |
| Custom User Title            Posts: 11,342 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | Quote: 
   | |
|   |   | 
|  03-19-2023, 10:35 AM | #875 | 
| Deviser            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 Last edited by DaltonST; 03-19-2023 at 05:25 PM. | 
|   |   | 
| Advert | |
|  | 
|  03-19-2023, 11:06 AM | #876 | 
| Deviser            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 | 
|   |   | 
|  03-19-2023, 01:09 PM | #877 | 
| Custom User Title            Posts: 11,342 Karma: 79528341 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 EDIT: In this thread: QApplication.instance().is_dark_theme   Last edited by ownedbycats; 03-19-2023 at 01:13 PM. | 
|   |   | 
|  03-19-2023, 01:18 PM | #878 | 
| Deviser            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. | 
|   |   | 
|  03-19-2023, 01:27 PM | #879 | 
| Custom User Title            Posts: 11,342 Karma: 79528341 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 = TrueCode:     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)When Windows is using light mode but Calibre is in dark mode, the colours do weird things: | 
|   |   | 
|  03-19-2023, 01:30 PM | #880 | 
| Custom User Title            Posts: 11,342 Karma: 79528341 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)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. Last edited by ownedbycats; 03-19-2023 at 01:39 PM. | 
|   |   | 
|  03-19-2023, 05:24 PM | #881 | 
| Deviser            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. | 
|   |   | 
|  03-19-2023, 06:30 PM | #882 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 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'}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> | |
|   |   | 
|  03-19-2023, 06:37 PM | #883 | 
| Deviser            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 | 
|   |   | 
|  03-19-2023, 06:41 PM | #884 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | |
|   |   | 
|  03-19-2023, 06:42 PM | #885 | 
| Deviser            Posts: 2,265 Karma: 2090983 Join Date: Aug 2013 Location: Texas Device: none | 
			
			Also the path is meant to be inside the single quotes.
		 | 
|   |   | 
|  | 
| Tags | 
| author aka, author pen name, colors, toolbag, toolbox, tools | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| [GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 527 | 08-15-2025 01:36 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 |