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 | /* The settings window, in the launcher's colours (launcher.css): rows of |
| 2 | settings under small headings, each with its switch on the right. */ | |
| 3 | :root { | |
| 4 | --bg: #0f0f11; | |
| 5 | --fg: #ededf0; | |
| 6 | --muted: #9a9aa6; | |
| 7 | --line: #26262c; | |
| 8 | --surface: #17171b; | |
| 9 | --accent: #b6a8ff; | |
| 10 | --accent-ink: #15112e; | |
| 11 | --error: #ff8a8a; | |
| 12 | color-scheme: dark; | |
| 13 | } | |
| 14 | * { | |
| 15 | box-sizing: border-box; | |
| 16 | } | |
| 17 | html, | |
| 18 | body { | |
| 19 | margin: 0; | |
| 20 | } | |
| 21 | body { | |
| 22 | background: var(--bg); | |
| 23 | color: var(--fg); | |
| 24 | font: 14px/1.45 system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; | |
| 25 | -webkit-font-smoothing: antialiased; | |
| 26 | user-select: none; | |
| 27 | cursor: default; | |
| 28 | } | |
| 29 | main { | |
| 30 | max-width: 36rem; | |
| 31 | margin: 0 auto; | |
| 32 | padding: 1.5rem 1.25rem 1.25rem; | |
| 33 | } | |
| 34 | h1 { | |
| 35 | font-size: 1.25rem; | |
| 36 | font-weight: 600; | |
| 37 | margin: 0 0 0.25rem; | |
| 38 | } | |
| 39 | h2 { | |
| 40 | font-size: 0.75rem; | |
| 41 | font-weight: 600; | |
| 42 | letter-spacing: 0.06em; | |
| 43 | text-transform: uppercase; | |
| 44 | color: var(--muted); | |
| 45 | margin: 0 0 0.25rem; | |
| 46 | } | |
| 47 | p { | |
| 48 | margin: 0; | |
| 49 | } | |
| 50 | .lede { | |
| 51 | margin-bottom: 1.5rem; | |
| 52 | } | |
| 53 | .muted { | |
| 54 | color: var(--muted); | |
| 55 | } | |
| 56 | .small { | |
| 57 | font-size: 0.8125rem; | |
| 58 | } | |
| 59 | section { | |
| 60 | margin-bottom: 1.5rem; | |
| 61 | } | |
| 62 | .setting { | |
| 63 | display: flex; | |
| 64 | align-items: center; | |
| 65 | justify-content: space-between; | |
| 66 | gap: 1rem; | |
| 67 | padding: 0.75rem 0; | |
| 68 | border-bottom: 1px solid var(--line); | |
| 69 | } | |
| 70 | section .setting:last-child { | |
| 71 | border-bottom: 0; | |
| 72 | } | |
| 73 | .setting > span { | |
| 74 | display: flex; | |
| 75 | flex-direction: column; | |
| 76 | gap: 0.125rem; | |
| 77 | min-width: 0; | |
| 78 | } | |
| 79 | .setting strong { | |
| 80 | font-weight: 500; | |
| 81 | overflow-wrap: anywhere; | |
| 82 | } | |
| 83 | .setting .muted { | |
| 84 | font-size: 0.8125rem; | |
| 85 | } | |
| 86 | .setting.off { | |
| 87 | opacity: 0.5; | |
| 88 | } | |
| 89 | input[type="checkbox"][role="switch"] { | |
| 90 | appearance: none; | |
| 91 | flex: none; | |
| 92 | width: 36px; | |
| 93 | height: 20px; | |
| 94 | margin: 0; | |
| 95 | border-radius: 999px; | |
| 96 | background: var(--line); | |
| 97 | position: relative; | |
| 98 | transition: background 0.15s; | |
| 99 | } | |
| 100 | input[type="checkbox"][role="switch"]::after { | |
| 101 | content: ""; | |
| 102 | position: absolute; | |
| 103 | top: 2px; | |
| 104 | left: 2px; | |
| 105 | width: 16px; | |
| 106 | height: 16px; | |
| 107 | border-radius: 50%; | |
| 108 | background: var(--fg); | |
| 109 | transition: transform 0.15s; | |
| 110 | } | |
| 111 | input[type="checkbox"][role="switch"]:checked { | |
| 112 | background: var(--accent); | |
| 113 | } | |
| 114 | input[type="checkbox"][role="switch"]:checked::after { | |
| 115 | transform: translateX(16px); | |
| 116 | background: var(--accent-ink); | |
| 117 | } | |
| 118 | input:disabled { | |
| 119 | opacity: 0.5; | |
| 120 | } | |
| 121 | @media (prefers-reduced-motion: reduce) { | |
| 122 | input[type="checkbox"][role="switch"], | |
| 123 | input[type="checkbox"][role="switch"]::after { | |
| 124 | transition: none; | |
| 125 | } | |
| 126 | } | |
| 127 | button, | |
| 128 | select { | |
| 129 | flex: none; | |
| 130 | font: inherit; | |
| 131 | font-size: 0.8125rem; | |
| 132 | font-weight: 500; | |
| 133 | padding: 0.375rem 0.75rem; | |
| 134 | border-radius: 8px; | |
| 135 | border: 1px solid var(--line); | |
| 136 | background: var(--surface); | |
| 137 | color: var(--fg); | |
| 138 | cursor: default; | |
| 139 | } | |
| 140 | button:hover, | |
| 141 | select:hover { | |
| 142 | border-color: #3a3a44; | |
| 143 | } | |
| Checking for updates in the desktop app answers in its settings window, with a restart beside a downloaded version. | 144 | .setting > .buttons { |
| 145 | flex-direction: row; | |
| 146 | flex: none; | |
| 147 | gap: 0.5rem; | |
| 148 | } | |
| 149 | button.primary { | |
| 150 | background: var(--accent); | |
| 151 | border-color: var(--accent); | |
| 152 | color: var(--accent-ink); | |
| 153 | } | |
| 154 | button.primary:hover { | |
| 155 | filter: brightness(1.06); | |
| 156 | } | |
| 157 | button[hidden] { | |
| 158 | display: none; | |
| 159 | } | |
| The desktop app has settings of its own and a menu, and it is for using g1t, not browsing it. | 160 | button:disabled { |
| 161 | opacity: 0.6; | |
| 162 | } | |
| 163 | button:focus-visible, | |
| 164 | select:focus-visible, | |
| 165 | input:focus-visible, | |
| 166 | a:focus-visible { | |
| 167 | outline: 2px solid var(--accent); | |
| 168 | outline-offset: 2px; | |
| 169 | } | |
| 170 | a { | |
| 171 | color: var(--muted); | |
| 172 | text-decoration: underline; | |
| 173 | text-underline-offset: 3px; | |
| 174 | } | |
| 175 | a:hover { | |
| 176 | color: var(--fg); | |
| 177 | } | |
| 178 | .error { | |
| 179 | color: var(--error); | |
| 180 | font-size: 0.875rem; | |
| 181 | margin-bottom: 1rem; | |
| 182 | } | |
| 183 | .foot { | |
| 184 | text-align: center; | |
| 185 | } |