View Single Post
Old 12-08-2019, 01:34 PM   #36
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,249
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Hi, @Kovid.

About this commit: https://github.com/kovidgoyal/calibr...9e118a40fa7a90

Can I import this from a plugin to detect if Dark Mode is set? Maybe like this:
Code:
from calibre.gui2 import is_dark_theme
Is this a boolean? This would be useful to adapt the icons automatically.

EDIT: Oops... already answered below as I was editing it.

Last edited by thiago.eec; 12-08-2019 at 01:43 PM.
thiago.eec is offline   Reply With Quote