Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom subtitle styling #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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