Calibre is a powerful and versatile ebook manager that allows you to organize, save, and read ebooks in various formats. It also offers a plethora of customization options, one of which is the ability to switch to a dark theme or night mode. This article will guide you step-by-step on how to enable this feature.
To enable dark theme/night mode in Calibre Ebook Viewer, you need to change the theme of the Calibre application itself by creating and modifying a file named
calibre.sh in the
/etc/profile.d/ directory. Additionally, you can change the background and text color in the Ebook Viewer and override book colors from within Calibre.
Changing the Calibre App Theme
The first step towards enabling a dark theme in Calibre involves changing the theme of the Calibre application itself. This can be achieved by creating and modifying a file named
calibre.sh in the
/etc/profile.d/ directory. Here’s how to do it:
- Open your terminal.
- Type in the following command to create and open the
calibre.shfile in a text editor (we’re using nano in this example):
sudo nano /etc/profile.d/calibre.sh.
- Once the file is open, add the following line to the file:
export CALIBRE_USE_SYSTEM_THEME=1. This command sets the Calibre theme to use the system’s default theme.
- Save the file and exit the editor. In nano, you can do this by pressing
Ctrl + X, then
Yto confirm saving changes, and finally
Enterto confirm the file name.
- Restart the display manager using the command
sudo service gdm restart. This will apply the changes you made.
Changing the Background and Text Color in the Ebook Viewer
The next step is to change the background and text color in the Ebook Viewer. Here’s how:
- Open an ebook in the Ebook Viewer (not in the main Calibre app).
- Right-click anywhere in the viewer and select “Preferences”.
- In the Preferences window, navigate to the “Colors” section.
- Click on “New scheme” and set the desired background and foreground (text) colors for the dark theme.
- Click “Apply” and then “OK” to save the changes.
Overriding Ebook CSS
In some cases, the font color in ebooks may not change even after adjusting the viewer settings. This can be fixed by manually modifying the CSS file inside the ebook. Here’s how:
- Extract the ebook file (which is essentially a zip file).
- Locate the
Content.cssfile in the extracted files.
- Open the file and search for the
- Replace it with a different color value, such as “Gray” or “#DBDBDB”. This changes the font color to a lighter shade, making it visible against a dark background.
- Save the changes, compress the extracted files back into a zip file, and change the file extension to
Overriding Book Colors from Within Calibre
Calibre also offers an in-built feature to override book colors. Here’s how to use it:
- Go to “Convert books” and select the book you want to modify.
- In the “Look and feel” section, choose to convert to the same format and check the “Colors” option.
- This allows you to change the colors of the book without manually editing the CSS file.
Remember, the specific steps and options may vary depending on the version of Calibre you are using. Always refer to the official Calibre documentation for the most accurate and up-to-date information.
By following these steps, you can enjoy a more comfortable reading experience in Calibre, especially during the night or in low-light conditions. Happy reading!
Yes, you can enable dark theme in Calibre on all operating systems by following the steps mentioned in the article.
No, changing the Calibre app theme does not affect the theme of the Ebook Viewer. You need to change the background and text color settings in the Ebook Viewer separately.
Yes, you can customize the background and text color for each ebook individually by following the steps mentioned in the article. This allows you to have different color schemes for different ebooks.
Yes, changing the font color in the CSS file will affect the original ebook. However, it is recommended to make a backup of the original file before making any modifications.
Yes, you can override book colors without manually editing the CSS file by using the "Convert books" feature in Calibre. This allows you to change the colors of the book without directly modifying the CSS file.