| 
			
			 | 
		#286 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			The fix will be in the next calibre release which is tomorrow, barring unforseen contingencies.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#287 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 6 
				Karma: 10 
				Join Date: Jul 2014 
				
				
				
				Device: none 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#288 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: May 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I don't really know how to fix this so if anyone knows how it would be greatly appreciated. 
		
	
		
		
			I have dark mode on windows 10 e.g. white text on dark background. The viewer obeys this. In the viewer I change the theme to white because I am studying for MCAT and dark mode reading is just too difficult and figures are hard to read. So I change the theme to white, and the pages obey this but the ToC remains in dark mode e.g. white text on dark background. Is there a way for the ToC to also obey the white theme? Is there a CSS line for such an occasion? Basically, I want it to look the viewer to look as if windows was in light mode for the viewer (dark text on white background for pages and ToC) but being in dark mode in windows settings because overall dark mode in windows is still easier on the eyes than light mode. Does that make sense? I attached a picture of what I am seeing (dark mode ToC).  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#289 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Set CALIBRE_USE_DARK_PALETTE https://manual.calibre-ebook.com/cus...ment-variables
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#290 | |
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: May 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#291 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You need to set the environemnt variable system widethere is a note about how to set environmnet variables at the bottom of th emanual link I posted.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#292 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: May 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			That's what I thought I did. I obviously did something wrong but I'm not really sure what I did wrong.
		 
		
	
		
		
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#293 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			The part on the left has to be CALIBRE_USE_DARK_PALETTE and the part on the right 0
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#294 | |
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: May 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Then there is also another variable called "Calibre" (right), and the value is the "CALIBRE_USE_DARK_PALETTE=0" line. I added that one myself Perhaps you could reclarify what you mean because I'm not sure how I can switch it.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#295 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 5 
				Karma: 10 
				Join Date: May 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#296 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905 
				Karma: 47303824 
				Join Date: Jul 2011 
				Location: Sydney, Australia 
				
				
				Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Delete what you have added, and add a new variable using those as the name and value. Edit: Remember to refresh before posting  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#297 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 1 
				Karma: 10 
				Join Date: Jun 2020 
				
				
				
				Device: Kindle Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hi all, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	As someone who just got into Calibre, I have a small question. I have an e-book that has some full size portrait and landscape images that I would like to view at their original, full widths for clarity, but otherwise keep the body of the text to a limited width. Additionally, I would like the images to be centered horizontally and vertically, but the landscape images seem to be floating at the top rather than being centered vertically. How would I manage to get the styling to keep the text area limited while being expanded on the images and making them centered? I view my books in full-screen mode, and the e-book hasn't been converted from/to anything, as I received it from the publisher. Thank you for your time! Noer  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#298 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 60 
				Karma: 10 
				Join Date: Sep 2017 
				
				
				
				Device: PocketBook 
				
				
				 | 
	
	
	
		
		
			
			 
				
				div#book-top-margin
			 
			
			
			Another css question: I tried unsuccessfully (in personal stylesheet) to add a left and right padding for div#book-top-margin as  following: 
		
	
		
		
		
		
		
		
		
		
		
		
		
			div#book-top-margin {padding-left: 5px !important; padding-right: 3px !important;} How should I do? Last edited by duns; 06-19-2020 at 06:29 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#299 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You cannot style margins via custom css, that applies only to book content.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#300 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 60 
				Karma: 10 
				Join Date: Sep 2017 
				
				
				
				Device: PocketBook 
				
				
				 | 
	
	
	
		
		
			
			 
				
				why not?
			 
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Custom CSS for output | deckoff | Calibre | 1 | 08-29-2010 12:55 AM | 
| ePub with custom .css on a 505 | dicknskip | Sony Reader Dev Corner | 3 | 06-10-2010 12:34 AM | 
| User stylesheets for ePub files | salty-horse | Sony Reader Dev Corner | 12 | 02-23-2010 08:44 AM | 
| ePub conversion: override existing css with a custom one | sbin | Calibre | 1 | 01-09-2010 05:03 AM | 
| Calibre's generated css for epub | brewt | Calibre | 7 | 12-29-2008 10:59 AM |