-
Notifications
You must be signed in to change notification settings - Fork 790
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
new subtitle text colors #96
Conversation
Oh thanks man |
Can we add an option for custom colors? |
I can try, but the problem is that the css for the colors is generated when building. So it wouldn't be simple. |
Added 😘 |
@@ -214,7 +214,7 @@ export function CaptionSetting(props: { | |||
); | |||
} | |||
|
|||
export const colors = ["#ffffff", "#b0b0b0", "#80b1fa", "#e2e535"]; | |||
export const colors = ["#ffffff", "#80b1fa", "#e2e535", "#10B239FF"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of these new colors
const setOverrideCasing = useSubtitleStore((s) => s.setOverrideCasing); | ||
const setDelay = useSubtitleStore((s) => s.setDelay); | ||
const updateStyling = useSubtitleStore((s) => s.updateStyling); | ||
const subtitleStore = useSubtitleStore(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there was a reason we didn't do this earlier and called the function every time
/> | ||
))} | ||
{/* Add Color Picker */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using the default browser color picker we should use a lib like react-colorful or something
} | ||
color={v} | ||
active={props.styling.color === v} | ||
key={v} | ||
/> | ||
))} | ||
{/* Add Color Picker */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to make the color picker a component that can be used anywhere
Also the custom color button looks ugly |
This pull request resolves #93
Added custom color picker for caption color
.pasithea
(we require this for the contributor role)