Commit 268f3209 authored by Committed by Alberto Fanjul
Refactor dark theme detection into a function
We need to instance a Gtk.Widget to be able to use `get_style_context`. Thus, we use the singleton pattern to avoid allocating an object every time we call `is_theme_dark()`. Fixes #133.
Showing with 60 additions and 45 deletions