|  01-02-2020, 04:13 PM | #1 | 
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | 
				
				Inspector - adjust font-size?
			 
			
			Greetings! Is there a way to adjust the font-size of the Code View Inspector (make text bigger), either through settings or a custom stylesheet? I've dug through what settings I could find and Googled around, but my self-help efforts have fallen short. Note: this is not a feature request — this is simply me asking if I'm missing something here  Thank you | 
|   |   | 
|  01-02-2020, 04:23 PM | #2 | 
| Sigil Developer            Posts: 9,071 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			According Chrome docs, using Cmd +/- should work.  I have not tried it but QtWebEngine is basically a wrappered Chrome
		 | 
|   |   | 
|  01-02-2020, 04:51 PM | #3 | 
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 Join Date: Dec 2010 Device: Kindle PW2 | |
|   |   | 
|  01-02-2020, 04:55 PM | #4 | 
| Sigil Developer            Posts: 9,071 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Could be the zoom keyboard code interferes?
		 Last edited by KevinH; 01-02-2020 at 05:02 PM. | 
|   |   | 
|  01-02-2020, 05:38 PM | #5 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			Everything I've seen says Chrome? ... sure. QWebEngine? ... not so much.    | 
|   |   | 
|  01-03-2020, 12:25 AM | #6 | 
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | 
			
			Cmd/Ctrl +/- does not appear to work in Sigil for macOS either (though it works in Chrome). Not a biggie. I don't actually use Inspector. I was simply checking it out since it's been mentioned recently in a few threads. Thank you   | 
|   |   | 
|  01-03-2020, 10:09 AM | #7 | 
| Sigil Developer            Posts: 9,071 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			I spent some time looking at it and there are many css files that are tightly packed inside a Chrome .pak file inside Qt.  So user changes would not be easy.  That said, the Inspector is just a QWebEngineView so I will implement Zoom in it as I did Preview.  That way you will be able to use that same key sequence to make everything larger. I need it for my own eyes so I assume others will as well. I will try to get that in place this weekend if I get some free time. | 
|   |   | 
|  01-03-2020, 04:47 PM | #8 | 
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | 
			
			Sounds great! Thank you! I'm rather baffled by Inspector, but very interested in trying to learn how to use it. The zoom feature will be welcome to my aging eyes. Zoom would also be welcome in PageEdit's Inspector — not that I use that much either, just fiddling around with all the new stuff  ETA: I must admit I am really fascinated by PageEdit. The ability to open an unzipped epub by opening the opf with PageEdit is really cool. Last edited by odamizu; 01-03-2020 at 08:20 PM. | 
|   |   | 
|  01-04-2020, 11:28 AM | #9 | 
| Sigil Developer            Posts: 9,071 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Okay, just pushed support for this to master. In the Inspector now (this is hard coded since the Inspector has its own key shortcuts we can not change) Ctrl + "+" now does a zoom in Ctrl + "-" now does a zoom out Ctrl + "0" now does a zoom reset I will push similar changes to PageEdit's Inspector later today hopefully. KevinH | 
|   |   | 
|  01-04-2020, 12:01 PM | #10 | 
| Sigil Developer            Posts: 9,071 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Okay, I did something similar for the PageEdit Inspector. The problem is those key sequences are used to zoom the main Window in PageEdit and the Inspector is just a QDockWidget in PageEdit (not a top level dialog). Therefore in order to allow the normal key sequence to zoom the Main Window, and still independently zoom the Inspector, I changed the Inspector in PageEdit to respond to META + "+" to zoom in META + "-" to zoom out META + "0" to zoom reset. This allows the user to independently zoom the Inspector and the MainWindow in PageEdit. At some point, PageEdit may need to have a KeyBoard ShortCut Preferences of its own just to allow the user to change things, but for right now, that is low on my priority. | 
|   |   | 
|  01-04-2020, 05:30 PM | #11 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			Many Windows and Linux users won't know what a META is.  if it maps to the Windows Key then be aware that Windows itself uses Windows Key + '+' to invoke its Magnifier - which is the most irritating gadget I know of  . BR | 
|   |   | 
|  01-04-2020, 05:39 PM | #12 | 
| Sigil Developer            Posts: 9,071 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			On a mac it maps to the option key.  What would be safer to use on Windows given Ctrl +, Ctrl -, and Ctrl 0 are already taken?
		 | 
|   |   | 
|  01-04-2020, 06:20 PM | #13 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			See ==>> Keyboard shortcuts in Windows - Windows Help Ctrl/Shift/+, Ctrl/Shift/-, and Ctrl/Shift/0 should be OK. BR | 
|   |   | 
|  01-04-2020, 08:09 PM | #14 | 
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | |
|   |   | 
|  01-05-2020, 04:48 PM | #15 | |
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | Quote: 
 PageEdit Main WYSIWYG window: 
 PageEdit Inspector window: 
 Chrome Developer window: 
 Sigil Preview window: 
 Sigil Inspector window: 
 Last edited by odamizu; 01-06-2020 at 10:37 PM. Reason: clarity & brevity | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Adjust font within the Book Store | Brie987 | Kobo Developer's Corner | 0 | 03-19-2014 03:57 AM | 
| Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 03:30 PM | 
| Adjust font size of PDF? | peejayw | Kobo Reader | 2 | 04-24-2013 10:30 PM | 
| font of the title; adjust size | faber1971 | Recipes | 2 | 02-20-2012 02:19 PM |