Skip to content
110 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

The desktop app has settings of its own and a menu, and it is for using g1t, not browsing it.1<!doctype html>
2<!--
3 The desktop app's settings, in a window of their own: opened from the
4 menu, the tray, or the site's account menu (src/settings.rs). Each
5 change is kept as soon as it is made; there is nothing to save.
6-->
7<html lang="en">
8 <head>
9 <meta charset="utf-8" />
10 <meta name="viewport" content="width=device-width, initial-scale=1" />
11 <meta name="color-scheme" content="dark" />
12 <title>g1t settings</title>
13 <link rel="stylesheet" href="settings.css" />
14 </head>
15 <body>
16 <main>
17 <h1>Settings</h1>
18 <p class="muted lede">For the desktop app on this computer. Your account's settings, notifications included, are on g1t itself.</p>
19
20 <section aria-labelledby="general-heading">
21 <h2 id="general-heading">Starting and closing</h2>
22 <label class="setting">
23 <span><strong>Open g1t when you sign in</strong><span class="muted" id="open-at-login-note">g1t starts with your computer.</span></span>
24 <input type="checkbox" role="switch" id="openAtLogin" />
25 </label>
26 <label class="setting">
27 <span><strong>Start in the tray</strong><span class="muted" id="start-hidden-note">Opened at sign-in, g1t waits in the tray without opening its window.</span></span>
28 <input type="checkbox" role="switch" id="startHidden" />
29 </label>
30 <label class="setting">
31 <span><strong>Keep g1t running when the window closes</strong><span class="muted">It stays in the tray for notifications. Turned off, closing the window quits.</span></span>
32 <input type="checkbox" role="switch" id="closeToTray" />
33 </label>
34 </section>
35
36 <section aria-labelledby="notifications-heading">
37 <h2 id="notifications-heading">Notifications</h2>
38 <label class="setting">
39 <span><strong>Show notifications</strong><span class="muted">From your system, for what needs you while g1t is behind another window. Which things notify you is set on g1t.</span></span>
40 <input type="checkbox" role="switch" id="notifications" />
41 </label>
42 <label class="setting">
43 <span><strong id="flash-label">Flash the taskbar icon</strong><span class="muted">When a notification arrives and the window is not in front.</span></span>
44 <input type="checkbox" role="switch" id="flash" />
45 </label>
46 <label class="setting">
47 <span><strong>Show a badge on the icon</strong><span class="muted">How many things are waiting for you.</span></span>
48 <input type="checkbox" role="switch" id="badge" />
49 </label>
50 </section>
51
52 <section aria-labelledby="window-heading">
53 <h2 id="window-heading">Window</h2>
The desktop app draws its own title bar, as Slack and Discord do, and the site can call the app again.54 <label class="setting">
55 <span
56 ><strong>Use the system's title bar</strong
57 ><span class="muted" id="system-title-bar-note">In place of g1t's own, with the menu bar under it.</span></span
58 >
59 <input type="checkbox" role="switch" id="systemTitleBar" />
The desktop app has settings of its own and a menu, and it is for using g1t, not browsing it.60 </label>
The desktop app draws its own title bar, as Slack and Discord do, and the site can call the app again.61 <div class="setting" id="restart-row" hidden>
62 <span><strong>Restart to change the title bar</strong><span class="muted">g1t opens again where you were.</span></span>
63 <button type="button" id="restart-app" class="primary">Restart now</button>
64 </div>
The desktop app has settings of its own and a menu, and it is for using g1t, not browsing it.65 <label class="setting">
66 <span><strong>Zoom</strong><span class="muted" id="zoom-note">The View menu changes it too.</span></span>
67 <select id="zoom">
68 <option value="0.67">67%</option>
69 <option value="0.75">75%</option>
70 <option value="0.8">80%</option>
71 <option value="0.9">90%</option>
72 <option value="1">100%</option>
73 <option value="1.1">110%</option>
74 <option value="1.25">125%</option>
75 <option value="1.5">150%</option>
76 <option value="1.75">175%</option>
77 <option value="2">200%</option>
78 </select>
79 </label>
80 </section>
81
82 <section aria-labelledby="updates-heading">
83 <h2 id="updates-heading">Updates</h2>
84 <label class="setting">
85 <span><strong>Download updates by themselves</strong><span class="muted">Each one installs when you restart or quit g1t, never in the middle of something.</span></span>
86 <input type="checkbox" role="switch" id="autoUpdate" />
87 </label>
Checking for updates in the desktop app answers in its settings window, with a restart beside a downloaded version.88 <div class="setting" id="updates-row">
89 <span><strong id="version">g1t</strong><span class="muted" id="update-status" aria-live="polite">&nbsp;</span></span>
90 <span class="buttons">
91 <button type="button" id="restart" class="primary" hidden>Restart now</button>
92 <button type="button" id="check">Check for updates</button>
93 </span>
The desktop app has settings of its own and a menu, and it is for using g1t, not browsing it.94 </div>
95 </section>
96
97 <section aria-labelledby="server-heading">
98 <h2 id="server-heading">Server</h2>
99 <div class="setting">
100 <span><strong id="server">g1t.sh</strong><span class="muted">The g1t this app opens. Change it if you run g1t yourself.</span></span>
101 <button type="button" id="change-server">Change…</button>
102 </div>
103 </section>
104
105 <p class="error" id="error" role="alert" hidden></p>
106 <p class="muted small foot"><a href="https://docs.g1t.sh/guides/desktop/">About the desktop app</a></p>
107 </main>
108 <script src="settings.js"></script>
109 </body>
110</html>