feat(config): reorganize settings window and move annotation colors to subtitleStyle

- Reorganize Configuration window into Appearance, Behavior, Anki, Input, and Integration sections
- Add AnkiConnect-backed deck, note-type, and field pickers in the Anki section
- Add click-to-learn keybinding controls
- Move known-word and N+1 highlight colors to subtitleStyle.knownWordColor / subtitleStyle.nPlusOneColor; legacy ankiConnect.knownWords.color and ankiConnect.nPlusOne.nPlusOne keys still accepted with deprecation warnings
- Add deckNames, modelNames, modelFieldNames, and fieldNamesForDeck methods to AnkiConnectClient
- Mark discordPresence.presenceStyle as an enum in the config registry
This commit is contained in:
2026-05-17 02:10:16 -07:00
parent 799cce6991
commit 0298a066ad
44 changed files with 2152 additions and 321 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import type {
PrimarySubMode,
SecondarySubMode,
SubtitleData,
SubtitleStyleConfig,
SubtitleRendererStyleConfig,
} from '../types';
import type { RendererContext } from './context';
@@ -635,7 +635,7 @@ export function createSubtitleRenderer(ctx: RendererContext) {
document.documentElement.style.setProperty('--subtitle-font-size', `${clampedSize}px`);
}
function applySubtitleStyle(style: SubtitleStyleConfig | null): void {
function applySubtitleStyle(style: SubtitleRendererStyleConfig | null): void {
if (!style) return;
const styleDeclarations = style as Record<string, unknown>;