Source code for draugr.entry_points.toggle_darkmode
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 01/10/2020
"""
__all__ = []
[docs]def main() -> None:
"""
:rtype: None
"""
from draugr.os_utilities.linux_utilities.gtk_utilities import GtkThemePreferences
with GtkThemePreferences() as a:
a.prefer_dark_mode = not a.prefer_dark_mode
if __name__ == "__main__":
main()