Tool icon pixbufs are baked at construction time using the button's current style context foreground color. Without this, switching the desktop theme (e.g. light <-> dark) at runtime leaves the editor's icons stuck in the previous color while the rest of the UI updates. Subscribe to Gtk.Settings notify::gtk-theme-name and notify::gtk-application-prefer-dark-theme; on either, replace each themed button's child Gtk.Image with a freshly-recolored one. Disconnect both signals from PerKeyEditor.shutdown so the editor doesn't leak handlers across openings. |
||
|---|---|---|
| .. | ||
| about | ||
| perkey | ||
| __init__.py | ||
| action.py | ||
| common.py | ||
| config_panel.py | ||
| desktop_notifications.py | ||
| diversion_rules.py | ||
| icons.py | ||
| pair_window.py | ||
| rule_actions.py | ||
| rule_base.py | ||
| rule_conditions.py | ||
| tray.py | ||
| window.py | ||