Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Add setting for monochrome tray icon (#31)
Browse files Browse the repository at this point in the history
* Add monochrome tray icon setting

* Monochrome icon setting defaults

---------

Co-authored-by: Florian Duros <[email protected]>
  • Loading branch information
SakiiCode and florianduros authored Oct 15, 2024
1 parent 950ab19 commit cefc124
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export default class PreferencesUserSettingsTab extends React.Component<IProps,
{this.renderGroup(PreferencesUserSettingsTab.GENERAL_SETTINGS)}

<SettingsFlag name="Electron.showTrayIcon" level={SettingLevel.PLATFORM} hideIfCannotSet />
<SettingsFlag name="Electron.monochromeIcon" level={SettingLevel.PLATFORM} hideIfCannotSet />
<SettingsFlag
name="Electron.enableHardwareAcceleration"
level={SettingLevel.PLATFORM}
Expand Down
1 change: 1 addition & 0 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2690,6 +2690,7 @@
"keyboard_heading": "Keyboard shortcuts",
"keyboard_view_shortcuts_button": "To view all keyboard shortcuts, <a>click here</a>.",
"media_heading": "Images, GIFs and videos",
"monochrome_icon": "Use monochrome tray icon",
"presence_description": "Share your activity and status with others.",
"publish_timezone": "Publish timezone on public profile",
"rm_lifetime": "Read Marker lifetime (ms)",
Expand Down
5 changes: 5 additions & 0 deletions src/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1225,4 +1225,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: process.platform === "linux",
},
};

0 comments on commit cefc124

Please sign in to comment.