mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 10:37:00 -04:00 
			
		
		
		
	Fix #4641 (Search in Ebook viewer yields hard to see highlighting.)
This commit is contained in:
		
							parent
							
								
									88c540b328
								
							
						
					
					
						commit
						d4c862ba94
					
				| @ -178,6 +178,7 @@ class Document(QWebPage): | ||||
| 
 | ||||
|     def set_user_stylesheet(self): | ||||
|         raw = config().parse().user_css | ||||
|         raw = '::selection {background:#ffff00; color:#000;}\n'+raw | ||||
|         data = 'data:text/css;charset=utf-8;base64,' | ||||
|         data += b64encode(raw.encode('utf-8')) | ||||
|         self.settings().setUserStyleSheetUrl(QUrl(data)) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user