|
1172 | 1172 |
|
1173 | 1173 | <!-- Help --> |
1174 | 1174 | <div class="toolbar-group"> |
| 1175 | + <button |
| 1176 | + class="toolbar-btn" |
| 1177 | + class:active={showPinnedPreviews} |
| 1178 | + onclick={() => pinnedPreviewsStore.toggle()} |
| 1179 | + use:tooltip={{ text: "Pin Previews", shortcut: "P" }} |
| 1180 | + aria-label="Pin Previews" |
| 1181 | + > |
| 1182 | + <Icon name={showPinnedPreviews ? "pin-filled" : "pin"} size={16} /> |
| 1183 | + </button> |
| 1184 | + <button |
| 1185 | + class="toolbar-btn" |
| 1186 | + bind:this={themeToggleBtn} |
| 1187 | + onclick={(e) => toggleThemeWithTransition(e)} |
| 1188 | + use:tooltip={{ text: currentTheme === 'dark' ? 'Light mode' : 'Dark mode', shortcut: "T" }} |
| 1189 | + aria-label="Toggle theme" |
| 1190 | + > |
| 1191 | + <Icon name={currentTheme === 'dark' ? 'sun' : 'moon'} size={16} /> |
| 1192 | + </button> |
1175 | 1193 | <button class="toolbar-btn" onclick={() => showKeyboardShortcuts = true} use:tooltip={{ text: "Shortcuts", shortcut: "?" }} aria-label="Keyboard shortcuts"> |
1176 | 1194 | <Icon name="keyboard" size={16} /> |
1177 | 1195 | </button> |
|
1263 | 1281 | </button> |
1264 | 1282 | </div> |
1265 | 1283 |
|
1266 | | - <!-- UI preferences --> |
1267 | | - <div class="toggle-group"> |
1268 | | - <button |
1269 | | - class="toggle-btn" |
1270 | | - class:active={showPinnedPreviews} |
1271 | | - onclick={() => pinnedPreviewsStore.toggle()} |
1272 | | - use:tooltip={{ text: "Pin Previews", shortcut: "P", position: "right" }} |
1273 | | - aria-label="Pin Previews" |
1274 | | - > |
1275 | | - <Icon name={showPinnedPreviews ? "pin-filled" : "pin"} size={18} /> |
1276 | | - </button> |
1277 | | - <button |
1278 | | - class="toggle-btn" |
1279 | | - bind:this={themeToggleBtn} |
1280 | | - onclick={(e) => toggleThemeWithTransition(e)} |
1281 | | - use:tooltip={{ text: currentTheme === 'dark' ? 'Light mode' : 'Dark mode', shortcut: "T", position: "right" }} |
1282 | | - aria-label="Toggle theme" |
1283 | | - > |
1284 | | - <Icon name={currentTheme === 'dark' ? 'sun' : 'moon'} size={18} /> |
1285 | | - </button> |
1286 | | - </div> |
1287 | 1284 | </div> |
1288 | 1285 |
|
1289 | 1286 | <!-- Simulation Settings Panel (floating right) --> |
|
0 commit comments