04-28-2021, 07:28 AM | #1 |
Junior Member
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: 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:
I hope you like them Cheers Last edited by DiapDealer; 04-28-2021 at 05:00 PM. |
04-28-2021, 03:34 PM | #2 |
Sigil Developer
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. |
04-28-2021, 03:39 PM | #3 |
Sigil Developer
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. |
04-28-2021, 04:44 PM | #4 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Exactly so. 600 px on the longest side is the max for inline images. There's no such limit on (thumbnailed) attachments.
|
04-28-2021, 04:50 PM | #5 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
04-28-2021, 05:00 PM | #6 |
Grand Sorcerer
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.
|
04-28-2021, 05:51 PM | #7 |
Junior Member
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... |
04-28-2021, 06:52 PM | #8 |
Sigil Developer
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.
. |
04-28-2021, 07:48 PM | #9 |
Grand Sorcerer
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. |
04-30-2021, 03:52 PM | #10 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
* * * 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. 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. |
|
05-02-2021, 12:02 PM | #11 | |||||
Junior Member
Posts: 3
Karma: 10
Join Date: Apr 2021
Device: iPad
|
Quote:
I still think you could add the following colors to Preferences > Appearance > Code View > Colors:
Quote:
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:
Quote:
Quote:
|
|||||
Tags |
design, stylesheet, theme |
|
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 |