Add a note about how to create dark and light icons in a custom theme

This commit is contained in:
Kovid Goyal 2022-07-15 20:19:13 +05:30
parent 0c7caac263
commit 2a56eaa2c7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -121,6 +121,11 @@ icons. You can upload that to the calibre forum at `Mobileread
<https://www.mobileread.com/forums/forumdisplay.php?f=166>`__ and then I will <https://www.mobileread.com/forums/forumdisplay.php?f=166>`__ and then I will
make your theme available via calibre's builtin icon theme system. make your theme available via calibre's builtin icon theme system.
As of calibre 6, you can have custom icons for light and dark mode. Simply
create two versions of the icon and name the files with the suffix
``-for-dark-theme`` and ``-for-light-theme``. For example,
``modified-for-dark-theme.png`` and ``modified-for-light-theme.png``. Then
calibre will automatically use the appropriate icon based on the current theme.
Customizing calibre with plugins Customizing calibre with plugins
-------------------------------- --------------------------------