View Single Post
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:	499
Size:	96.1 KB
ID:	186834

Click image for larger version

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

Click image for larger version

Name:	light_emerald_and_light_editor.jpg
Views:	484
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