As gtk-application-prefer-dark-theme can only be meaningfully set once per application we should also treat it accordingly. Before this commit the changing of the dark-mode setting in one panel would have side-effects on other panels: everything panel-internal would change, all external plugins would stick to the dark-mode setting of their panel, resulting in mixed bright/dark panels.
82385ee1 dark-mode: Make property unique across panels
migrate/default.xml.in | 2 +-
panel/panel-application.c | 17 ++++++++++++-----
panel/panel-itembar.c | 14 ++++++++++++++
panel/panel-preferences-dialog.c | 2 +-
panel/panel-window.c | 10 ++++++----
5 files changed, 34 insertions(+), 11 deletions(-)
Upstream: git.xfce.org