calibre/src/qt/dbus.py
Kovid Goyal bc97485ff2
Linux: Use the system dark mode setting
This comes from the desktop settings portal implemented in KDE 5.24 and
GNOME 42
2022-07-06 19:19:45 +05:30

15 lines
353 B
Python

#!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2021, Kovid Goyal <kovid at kovidgoyal.net>
from .loader import dynamic_load
from .dbus_name_map import name_map, module_names
already_imported = {}
qt_modules = {}
def __getattr__(name):
return dynamic_load(name, name_map, already_imported, qt_modules, module_names)