• Jente Hidskes's avatar
    Refactor dark theme detection into a function · 268f3209
    Jente Hidskes authored
    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.
    268f3209
Name
Last commit
Last update
..
commit Loading commit data...
history Loading commit data...
preferences Loading commit data...
resources Loading commit data...
Makefile Loading commit data...
Makefile.am Loading commit data...
gitg-action-support.vala Loading commit data...
gitg-animated-paned.vala Loading commit data...
gitg-application.vala Loading commit data...
gitg-author-details-dialog.vala Loading commit data...
gitg-builder.vala Loading commit data...
gitg-clone-dialog.vala Loading commit data...
gitg-commit-action-cherry-pick.vala Loading commit data...
gitg-commit-action-create-branch.vala Loading commit data...
gitg-commit-action-create-patch.vala Loading commit data...
gitg-commit-action-create-tag.vala Loading commit data...
gitg-convert.vala Loading commit data...
gitg-create-branch-dialog.vala Loading commit data...
gitg-create-tag-dialog.vala Loading commit data...
gitg-dash-view.vala Loading commit data...
gitg-dirs.vala Loading commit data...
gitg-notifications.vala Loading commit data...
gitg-plugins-engine.vala Loading commit data...
gitg-popup-menu.vala Loading commit data...
gitg-recursive-monitor.vala Loading commit data...
gitg-recursive-scanner.vala Loading commit data...
gitg-ref-action-checkout.vala Loading commit data...
gitg-ref-action-copy-name.vala Loading commit data...
gitg-ref-action-delete.vala Loading commit data...
gitg-ref-action-fetch.vala Loading commit data...
gitg-ref-action-merge.vala Loading commit data...
gitg-ref-action-rename.vala Loading commit data...
gitg-remote-manager.vala Loading commit data...
gitg-remote-notification.vala Loading commit data...
gitg-simple-notification.vala Loading commit data...
gitg-ui-elements.vala Loading commit data...
gitg-window.vala Loading commit data...
gitg.rc Loading commit data...
gitg.vala Loading commit data...
meson.build Loading commit data...