Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-12-2012, 02:04 AM   #1
capidamonte
Not who you think I am...
capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!
 
capidamonte's Avatar
 
Posts: 346
Karma: 5337
Join Date: Jan 2010
Location: Honolulu
Device: Sony PRS-350
Sigil with Dark OS Themes

I recently had to build Sigil 0.5.3 from source, because of an OS issue. I'm now running Ubuntu Minimal 12.04 + XFCE (not Xubuntu).

Making it from source has been cool, lots of new features that weren't available in the previous version that I'd been sticking with for stability and workflow reasons.

But for those of us that can't stand the light blasting us in the retinas...

Is there a way to turn off line highlighting in code view? I get white-on-white, which is illegible, of course. Also, all the tooltips are using white text (proper) on a white background (not so much.)

There aren't many dark themes out of the box in 12.04, maybe 2 that seem reasonable, so it's tough to find one with different colored text.

On a related note, the shortcut editor is using black text in the third column, while the others are using the system color.

And Book View is using black text, not the system color -- there is not a single color call in the CSS, either.

If anyone has a workaround or a config that doesn't involve changing my CSS or my theme, I'd appreciate it. I include configuration for how to recompile Sigil as a possibility.

Aloha,
capidamonte is offline   Reply With Quote
Old 06-15-2012, 01:33 AM   #2
capidamonte
Not who you think I am...
capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!
 
capidamonte's Avatar
 
Posts: 346
Karma: 5337
Join Date: Jan 2010
Location: Honolulu
Device: Sony PRS-350
Guess everyone is too busy with v.0.6.

Anyone know if this is solved there?

Aloha,
capidamonte is offline   Reply With Quote
Old 06-15-2012, 07:35 AM   #3
Ahmad Samir
Zealot
Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!
 
Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
For the current line highlighting, open src/Sigil/ViewEditors/CodeViewEditor.cpp, line 864:
Code:
    QColor lineColor = QColor( Qt::yellow ).lighter( COLOR_FADE_AMOUNT );
Change Qt::yellow to e.g. Qt::black, this will make the highlight background black.

If you want to disable line highlighting altogether, in the same file, comment out line 866:
Code:
    selection.format.setBackground( lineColor );
by adding // to the beginning of the line, so that it becomes:
Code:
//    selection.format.setBackground( lineColor );
then recompile Sigil.

FWIW, if you still have the directory where you previously compiled Sigil intact, just edit that file, then run make again, it'll pick up the changes and recompile only the necessary bits, i.e. you won't have to compile everything from the beginning.

AFAIK, the tooltip colours come from the colour scheme your system is using, so you have to change it there...
Ahmad Samir is offline   Reply With Quote
Old 06-15-2012, 08:00 AM   #4
capidamonte
Not who you think I am...
capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!
 
capidamonte's Avatar
 
Posts: 346
Karma: 5337
Join Date: Jan 2010
Location: Honolulu
Device: Sony PRS-350
Hey Pal!

Thanks, seriously.

I want to just turn it off. If I change the color, then change dark themes, I'd be out of luck if the background wasn't black.

Tooltip text color is coming from system, but tooltip background is light yellow. I thought it was white b/c it's so light. It might be qt4config setting, but that is inconsistent here, among apps. I may have not installed some theme engine or something.

Anyhow, big ups to you.

Aloha,
capidamonte is offline   Reply With Quote
Old 06-16-2012, 10:30 PM   #5
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The editor colors are hard coded at the moment. Fixing this is a 0.7.0 planned project. The rest of the colors should be using system settings for Qt apps.
user_none is offline   Reply With Quote
Old 06-17-2012, 01:32 AM   #6
capidamonte
Not who you think I am...
capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!
 
capidamonte's Avatar
 
Posts: 346
Karma: 5337
Join Date: Jan 2010
Location: Honolulu
Device: Sony PRS-350
That'll be cool. I assume you also mean the code highlighting colors as well as the line highlighting and foreground/background text.

BTW, is it too late to get the line-highlight as an on/off option in v0.6? That's the only major readability issue with dark themes for me, since I don't use Book View much anyway -- and I expect that will change with the new viewer.

Aloha,
capidamonte is offline   Reply With Quote
Reply

Tags
color, configure, sigil, theme

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free online read (urban fantasy) from Pocket After Dark - Surrender the Dark Susan Crealock Deals, Freebies, and Resources (No Self-Promotion) 2 12-12-2014 09:33 PM
Themes for PocketBook kacir PocketBook 131 11-27-2012 05:23 AM
360 Themes etc MorganM PocketBook 14 09-29-2011 11:10 PM
Free online read (paranormal romance) from Pocket After Dark - Dark Protector Susan Crealock Deals, Freebies, and Resources (No Self-Promotion) 0 05-15-2011 02:10 AM
Forum Themes Xanthe Feedback 8 03-24-2010 09:51 AM


All times are GMT -4. The time now is 12:22 AM.


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