From bf54bf5e049d73265b568ac6c31ba4ef9e19ca11 Mon Sep 17 00:00:00 2001
From: Sakii <13037299+SakiiCode@users.noreply.github.com>
Date: Tue, 10 Sep 2024 21:51:27 +0200
Subject: [PATCH 1/2] Add monochrome tray icon setting
---
.../views/settings/tabs/user/PreferencesUserSettingsTab.tsx | 1 +
src/i18n/strings/en_EN.json | 1 +
src/settings/Settings.tsx | 5 +++++
3 files changed, 7 insertions(+)
diff --git a/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx b/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx
index 85b2bdfd5c..2a13b54b6e 100644
--- a/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx
+++ b/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx
@@ -335,6 +335,7 @@ export default class PreferencesUserSettingsTab extends React.Component
+
click here.",
"media_heading": "Images, GIFs and videos",
+ "monochrome_icon": "Use monochrome tray icon",
"presence_description": "Share your activity and status with others.",
"rm_lifetime": "Read Marker lifetime (ms)",
"rm_lifetime_offscreen": "Read Marker off-screen lifetime (ms)",
diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx
index 5e5c9a1535..7e98ac295a 100644
--- a/src/settings/Settings.tsx
+++ b/src/settings/Settings.tsx
@@ -1222,4 +1222,9 @@ export const SETTINGS: { [setting: string]: ISetting } = {
displayName: _td("settings|preferences|enable_hardware_acceleration"),
default: true,
},
+ "Electron.monochromeIcon": {
+ supportedLevels: [SettingLevel.PLATFORM],
+ displayName: _td("settings|preferences|monochrome_icon"),
+ default: true,
+ },
};
From ba6e88c4bfee62ad885df53693c01e823ab242c6 Mon Sep 17 00:00:00 2001
From: Sakii <13037299+SakiiCode@users.noreply.github.com>
Date: Wed, 11 Sep 2024 19:30:06 +0200
Subject: [PATCH 2/2] Monochrome icon setting defaults
---
src/settings/Settings.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx
index 7e98ac295a..e808ba6ba1 100644
--- a/src/settings/Settings.tsx
+++ b/src/settings/Settings.tsx
@@ -1225,6 +1225,6 @@ export const SETTINGS: { [setting: string]: ISetting } = {
"Electron.monochromeIcon": {
supportedLevels: [SettingLevel.PLATFORM],
displayName: _td("settings|preferences|monochrome_icon"),
- default: true,
+ default: process.platform === "linux",
},
};