Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-28-2021, 07:28 AM   #1
pablogil
Junior Member
pablogil began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2021
Device: iPad
Dark, Darker and Light themes for Sigil

Hi all,

It's my very first post in this community but I have been authoring ePubs and used Sigil for a while.

I'm also actively collaborating with FreeCAD (https://www.freecadweb.org/), as a result I have created some themes with Qt stylesheets.

I have adapted and improved them for use in Sigil

Here you have some examples, they are 24 variants in total:
Click image for larger version

Name:	dark_emerald_and_dark_editor.jpg
Views:	253
Size:	96.1 KB
ID:	186834

Click image for larger version

Name:	darker_blue_and_dark_editor.jpg
Views:	246
Size:	97.2 KB
ID:	186835

Click image for larger version

Name:	light_emerald_and_light_editor.jpg
Views:	244
Size:	101.7 KB
ID:	186836

Here you can download and install them: https://github.com/pgilfernandez/sigil_stylesheets

In the GitHub repository I explain it all but I would like to note here the problems I faced while creating the themes just in case Sigil developers feel like improving the theme selection and/or collaborate with me in order to include them in the official builds:
  • you can just select one stylesheet. It would be nice to have a preference entry to select between a list of .qss files
  • you should set a full path for all images (icons) inside the qt_styles.qss file so that they are drawn in Sigil. It would be nice that a "Preferences folder location" variable is set so that the stylesheet just writes "qss:" and Sigil changes/find them on the fly.
  • inside Tools > Add cover... window there is a splitter that shows zoomed, it seems to be something hardcoded.
  • as Sigil already lets user setup some colors inside Preferences > Appearance, it's kind of messy because you need to "synchronize" colors from the stylesheet with those color Preferences in order to get a final nice theme. It would be desirable that all "Code editor" colors can be accessible by Preferences > Appearance and another Preference entry let user choose between a list of UI styles (.qss files).

I hope you like them
Cheers

Last edited by DiapDealer; 04-28-2021 at 05:00 PM.
pablogil is offline   Reply With Quote
Old 04-28-2021, 03:34 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
I believe large images should be made as attachments for people to select according to the posting guidelines.

Please make that change to your post so that the moderators do not need to do it.

Thanks

Last edited by KevinH; 04-28-2021 at 05:06 PM.
KevinH is offline   Reply With Quote
Old 04-28-2021, 03:39 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
Interesting themes. Sigil near Sigil 1.0 moved to supporting operating system Level light and dark themes. For example, on macOS if the user changes its theme from light to dark or visa-versa, Sigil adopts the new theme on the fly. I think for Windows and Linux it requires restarting Sigil.

As a result I try to stay away from too much qss as most of the palette and styling is taken from the OS itself.

I think many Linux users might be interested.
KevinH is offline   Reply With Quote
Old 04-28-2021, 04:44 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
I believe large impages should be made as attachments for people to select according to the posting guidelines.

Please make that change to your post so that the moderators do not need to do it.

Thanks
Exactly so. 600 px on the longest side is the max for inline images. There's no such limit on (thumbnailed) attachments.
DiapDealer is offline   Reply With Quote
Old 04-28-2021, 04:50 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
I think many Linux users might be interested.
Sigil on Linux is already able to be integrated with existing Desktop Environment themes in a variety of ways. I change my Sigil theme all the time.
DiapDealer is offline   Reply With Quote
Old 04-28-2021, 05:00 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I thumbnailed the images so they don't break the forum theme. People can enlarge them by clicking on the thumbnails.
DiapDealer is offline   Reply With Quote
Old 04-28-2021, 05:51 PM   #7
pablogil
Junior Member
pablogil began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2021
Device: iPad
Thanks DiapDealer,

I didn't know how to setup the thumbnails.

Sadly, Windows or even macOS still don't handle correctly the dark/light auto themes and, IMHO, the OS default styles are not very nice.
With these stylesheets you can be sure that the style is applied as you like...
pablogil is offline   Reply With Quote
Old 04-28-2021, 06:52 PM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
Please then file a Sigil bug report for the macOS dark /light theme issue you are seeing that does not handle something correctly. It appears to work just fine on my macOS machines. I use it all of the time to auto switch in the evenings and mornings.
.
KevinH is offline   Reply With Quote
Old 04-28-2021, 07:48 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm not really interested in shipping any extra themes with the official Sigil builds. App skinning/theme-ing is pretty niche in my opinion. We've made it possible for those who wish to obsess over the aesthetics of how the app looks, so I doubt there will be a ton of additional Sigil preferences added just to make changing themes quicker.

I'll happily to put a link pointing to your Sigil theme repository where people can find it, though.
DiapDealer is offline   Reply With Quote
Old 04-30-2021, 03:52 PM   #10
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by pablogil View Post
Sadly, Windows or even macOS still don't handle correctly the dark/light auto themes and, IMHO, the OS default styles are not very nice.

With these stylesheets you can be sure that the style is applied as you like...
I agree, I agree. Would be nice to be able to more easily apply themes, and those look like some very nice ones you've created!

* * *

qbittorrent is a Qt-based torrent program, and they recently added a very nice option to change between custom themes:

https://github.com/qbittorrent/qBitt...stom-UI-themes
https://github.com/qbittorrent/qBitt...or-qBittorrent

It was added in v4.2.2 last year. I'm not sure exactly how it was implemented, but here was one large issue discussing their "Dark Theme":

https://github.com/qbittorrent/qBitt...ment-606253598

I believe jagannatharjun was the user who implemented that support, so his Github comments/issues might have a lot more details on the subject.

Quote:
Originally Posted by pablogil View Post
I didn't know how to setup the thumbnails.
When you're in the Advanced posting mode, you see all the buttons up top? (Bold, Italics, Underline, [...]).

Towards the middle right, there should be a little paperclip icon. You click on that to attach images.

Then you can click on the little arrow NEXT TO the paperclip in order to insert it into your actual post.

Last edited by Tex2002ans; 04-30-2021 at 03:56 PM.
Tex2002ans is offline   Reply With Quote
Old 05-02-2021, 12:02 PM   #11
pablogil
Junior Member
pablogil began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2021
Device: iPad
Quote:
Originally Posted by KevinH View Post
Please then file a Sigil bug report for the macOS dark /light theme issue you are seeing that does not handle something correctly. It appears to work just fine on my macOS machines. I use it all of the time to auto switch in the evenings and mornings.
.
I have played with Light/Dark modes in macOS, I can tell you that they work as expected, I'm sorry about alerting you. The only "issue" I found is that the Code View color set changed but, digging inside sigil.ini, I found that there is a different set of color when the Dark mode is on, so everything's fine

I still think you could add the following colors to Preferences > Appearance > Code View > Colors:
  • default text color (when any of the other text colors apply)
  • Code view background color
  • selection text color
  • selection background text color
This way any user could create a full theme for their Code View without relaying in their OS theme or .qss stylesheet

Quote:
Originally Posted by DiapDealer View Post
I'm not really interested in shipping any extra themes with the official Sigil builds. App skinning/theme-ing is pretty niche in my opinion. We've made it possible for those who wish to obsess over the aesthetics of how the app looks, so I doubt there will be a ton of additional Sigil preferences added just to make changing themes quicker.
I meet a lot of people that usually say that open source is ugly and, just because of that, they don't want to use it... I totally disagree, of course, and try to convince them showing them that they can use skins, themes, stylesheets, etc. so that the software looks cool... and from that day they like and use them. Those people usually have Windows or macOS computers. I know too that in Linux OS, apps themes very easily get the OS look and they really look cool, but, once again it sadly it doesn't happen in Windows or macOS and the default UI is pretty raw, heterogeneous and ugly.
With all this little speech I just want to say that it is not bad to make a little room in open source software for theme customization because we never know how the app looks in other OS or, even knowing it, we don't know the user look preferences...

Quote:
Originally Posted by DiapDealer View Post
I'll happily to put a link pointing to your Sigil theme repository where people can find it, though.
Thank you very much, not just for me (I really had fun developing/tweaking them) but for all those users (or future users) that may need it to have a better experience using Sigil

Quote:
Originally Posted by Tex2002ans View Post
I agree, I agree. Would be nice to be able to more easily apply themes, and those look like some very nice ones you've created!
This is another suggestion I made, an entry inside Preferences > Appearance to set the .qss stylesheet you want to load instead of be forced to use the file called "qt_styles.qss". I might not be hard to code and it would make life easier for users (that they usually are not very skilled...)

Quote:
Originally Posted by Tex2002ans View Post
When you're in the Advanced posting mode, you see all the buttons up top? (Bold, Italics, Underline, [...]).

Towards the middle right, there should be a little paperclip icon. You click on that to attach images.

Then you can click on the little arrow NEXT TO the paperclip in order to insert it into your actual post.
Thank you very much, I will do it next time
pablogil is offline   Reply With Quote
Reply

Tags
design, stylesheet, theme


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with windows dark themes and File preview Entry20 Editor 20 11-29-2021 10:37 PM
Dark themes Where to change them back KevinA General Discussions 1 03-25-2020 03:22 PM
Sigil with Dark OS Themes capidamonte Sigil 5 06-17-2012 12:32 AM
Unutterably Silly Light or dark AprilHare Lounge 16 03-01-2011 04:41 AM
PRS-600 Light for dark reading jduvall Sony Reader 8 09-01-2010 05:38 AM


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


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