mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-28 16:49:50 -07:00
Anki maturity-based known-word highlighting (#172)
This commit is contained in:
@@ -403,6 +403,7 @@ export function buildSessionHelpSections(input: {
|
||||
markWatchedKey?: string | null;
|
||||
subtitleSidebarToggleKey?: string | null;
|
||||
subtitleStyle: SessionHelpSubtitleStyle | null | undefined;
|
||||
knownWordMaturityEnabled?: boolean;
|
||||
}): SessionHelpSection[] {
|
||||
const sessionBindings = input.sessionBindings.filter((binding) => {
|
||||
if (binding.actionType !== 'session-action') return true;
|
||||
@@ -420,7 +421,9 @@ export function buildSessionHelpSections(input: {
|
||||
subtitleSidebarToggleKey: input.subtitleSidebarToggleKey,
|
||||
}),
|
||||
...buildFixedOverlaySections(),
|
||||
buildColorSection(input.subtitleStyle ?? {}),
|
||||
buildColorSection(input.subtitleStyle ?? {}, {
|
||||
knownWordMaturityEnabled: input.knownWordMaturityEnabled,
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user