MCPcopy
hub / github.com/gitify-app/gitify / TraySettings

Function TraySettings

src/renderer/components/settings/TraySettings.tsx:13–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import { Title } from '../primitives/Title';
12
13export const TraySettings: FC = () => {
14 const { settings, updateSetting } = useAppContext();
15
16 return (
17 <fieldset>
18 <Title icon={DevicesIcon}>Tray</Title>
19
20 <Stack direction="vertical" gap="condensed">
21 <Checkbox
22 checked={settings.showNotificationsCountInTray}
23 label="Show notification count"
24 name="showNotificationsCountInTray"
25 onChange={() =>
26 updateSetting(
27 'showNotificationsCountInTray',
28 !settings.showNotificationsCountInTray,
29 )
30 }
31 tooltip={
32 <Text>
33 Show the unread notification count next to the tray icon. Useful
34 for a quick glance at unread activity.
35 </Text>
36 }
37 visible={window.gitify.platform.isMacOS()}
38 />
39
40 <Checkbox
41 checked={settings.useUnreadActiveIcon}
42 label="Highlight unread notifications"
43 name="useUnreadActiveIcon"
44 onChange={() =>
45 updateSetting('useUnreadActiveIcon', !settings.useUnreadActiveIcon)
46 }
47 tooltip={
48 <Stack direction="vertical" gap="condensed">
49 <Text>
50 Use a green {APPLICATION.NAME} logo when there are unread
51 notifications.
52 </Text>
53 </Stack>
54 }
55 />
56
57 <Checkbox
58 checked={settings.useAlternateIdleIcon}
59 label="Use alternate idle icon"
60 name="useAlternateIdleIcon"
61 onChange={() =>
62 updateSetting(
63 'useAlternateIdleIcon',
64 !settings.useAlternateIdleIcon,
65 )
66 }
67 tooltip={
68 <Stack direction="vertical" gap="condensed">
69 <Text>
70 Use a white {APPLICATION.NAME} logo (instead of the default

Callers

nothing calls this directly

Calls 1

useAppContextFunction · 0.90

Tested by

no test coverage detected