aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-01-31 16:44:56 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-01-31 16:44:56 +0100
commit5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7 (patch)
tree32fb9ff66f9bdbf01a0632a18de538574e8f63d6 /src/stores/ServicesStore.js
parentFix lint (diff)
downloadferdium-app-5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7.tar.gz
ferdium-app-5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7.tar.zst
ferdium-app-5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7.zip
Add better sync between Ferdi and service dark mode
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 3dd601bc3..731305141 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -83,6 +83,7 @@ export default class ServicesStore extends Store {
83 this.actions.service.openDevTools.listen(this._openDevTools.bind(this)); 83 this.actions.service.openDevTools.listen(this._openDevTools.bind(this));
84 this.actions.service.openDevToolsForActiveService.listen(this._openDevToolsForActiveService.bind(this)); 84 this.actions.service.openDevToolsForActiveService.listen(this._openDevToolsForActiveService.bind(this));
85 this.actions.service.setHibernation.listen(this._setHibernation.bind(this)); 85 this.actions.service.setHibernation.listen(this._setHibernation.bind(this));
86 this.actions.service.shareSettingsWithServiceProcess.listen(this._shareSettingsWithServiceProcess.bind(this));
86 87
87 this.registerReactions([ 88 this.registerReactions([
88 this._focusServiceReaction.bind(this), 89 this._focusServiceReaction.bind(this),
@@ -771,7 +772,10 @@ export default class ServicesStore extends Store {
771 } 772 }
772 773
773 _shareSettingsWithServiceProcess() { 774 _shareSettingsWithServiceProcess() {
774 const settings = this.stores.settings.app; 775 const settings = {
776 ...this.stores.settings.app,
777 isDarkThemeActive: this.stores.ui.isDarkThemeActive
778 };
775 this.actions.service.sendIPCMessageToAllServices({ 779 this.actions.service.sendIPCMessageToAllServices({
776 channel: 'settings-update', 780 channel: 'settings-update',
777 args: settings, 781 args: settings,