From 2a56eaa2c759c88ba23382a40064237527ae1989 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Jul 2022 20:19:13 +0530 Subject: [PATCH] Add a note about how to create dark and light icons in a custom theme --- manual/customize.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manual/customize.rst b/manual/customize.rst index b44c3cd02b..a74d3e76f5 100644 --- a/manual/customize.rst +++ b/manual/customize.rst @@ -121,6 +121,11 @@ icons. You can upload that to the calibre forum at `Mobileread `__ and then I will 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 --------------------------------