Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-04-2025, 02:58 AM   #1
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
highlights on black color scheme

Sometimes I set the Viewer color scheme to Black and I wanted to change the text color of the highlights, however the Style creation tool allows only customisation of the highlight background color.

Click image for larger version

Name:	MWSnap 2025-01-04, 04_34_06.png
Views:	77
Size:	27.6 KB
ID:	212823

Default text color is white but in this case I'd prefer to set it to black, to contrast with the yellow background. I already use a custom style sheet to customise selected text, using...
Code:
::selection { background: yellow; color:#000;}
...which is how I wanted the highlights to be saved:

Click image for larger version

Name:	2025-01-04 04_21_16-White Nights-highlight.jpg
Views:	79
Size:	142.5 KB
ID:	212822

(probably too much work to make it feasible, as I looked into highlights.pyj, viewer.js and couldn't figure where this change might be implementable, but I thought I'd ask just in case)
Comfy.n is offline   Reply With Quote
Old 01-04-2025, 06:44 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not really doable without a lot fo work. The idea is you choose dark highlight colors that work well with light colored foreground text.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-04-2025, 06:52 AM   #3
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
thanks anyway Kovid
Comfy.n is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your Calibre Color Scheme? Rellwood Library Management 3 09-24-2024 10:51 PM
prefers-color-scheme media query tozz Editor 2 02-07-2023 04:47 PM
change calibre-server's color scheme? Geremia Server 1 04-04-2021 12:14 AM
Why No Color Scheme? d351r3d Sigil 5 01-17-2020 10:07 AM
Editor Settings > Color Scheme Agama Editor 2 12-23-2013 09:43 AM


All times are GMT -4. The time now is 01:07 AM.


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