Skip to content

Custom subtitle styling#78

Open
OliverSpeak wants to merge 1 commit intoanimebook:masterfrom
OliverSpeak:custom-style
Open

Custom subtitle styling#78
OliverSpeak wants to merge 1 commit intoanimebook:masterfrom
OliverSpeak:custom-style

Conversation

@OliverSpeak
Copy link

Simple code that adds a setting in the Appearance tab to apply custom CSS to subtitles.
Changes are saved and applied instantly.
Doesn't seem to be any conflict with pre-existing styles.

The only caveat I've found is the Animebook Anki Export extension will trigger if I press the E key while focusing in the text box. This issue doesn't seem to happen with the other shortcuts.
A very simple workaround for this has been applied in frontend.js

Example:
example

@OliverSpeak
Copy link
Author

Addresses this feature request #65

@soamsy
Copy link
Member

soamsy commented Mar 9, 2023

Nice! I tried it out a little, and interesting enough, if you put garbage in the textarea it doesn't actually show up in the inline style attribute. I assume that's Vue being smart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants