![]() |
#1 |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
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, |
![]() |
![]() |
![]() |
#2 |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Guess everyone is too busy with v.0.6.
Anyone know if this is solved there? Aloha, |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ); If you want to disable line highlighting altogether, in the same file, comment out line 866: Code:
selection.format.setBackground( lineColor ); Code:
// selection.format.setBackground( lineColor ); 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... |
![]() |
![]() |
![]() |
#4 |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
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, |
![]() |
![]() |
![]() |
#5 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
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, |
![]() |
![]() |
![]() |
Tags |
color, configure, sigil, theme |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Themes for PocketBook | kacir | PocketBook | 136 | 03-29-2023 04:29 AM |
Forum Themes | Xanthe | Feedback | 10 | 04-28-2017 06:26 AM |
Free online read (urban fantasy) from Pocket After Dark - Surrender the Dark | Susan Crealock | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 12-12-2014 08:33 PM |
360 Themes etc | MorganM | PocketBook | 14 | 09-29-2011 10:10 PM |
Free online read (paranormal romance) from Pocket After Dark - Dark Protector | Susan Crealock | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 05-15-2011 01:10 AM |