You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to allow users to define a custom theme, similar to the excellent Dracula theme. This would allow me to, for example, slightly toggle the colors without modifying the source to create a Breeze-like theme for KDE.
Solution
I can imagine one of 2 solutions:
Use JSON to dictate color settings, which is then converted to CSS.
Allow users to directly modify CSS (more advanced).
If we're using a JSON file, it's probably a good idea to sanitize the input using the Javascript CSS.supports('color', color) (if supported by the current Electron version, I haven't used Electron). If the color is supported, you can write the property to the CSS file using a template.
Thank you for the feedback and the tips with the validation 😉 After changing the way we're setting the themes, I already had something like this planned, so deffly expect to see it in Kuro in an upcoming release 👍
There must be an option to clear the themes, I like light themes, after trying out some dark themes, I now have no way to revert my default light theme.
Feature
It would be nice to allow users to define a custom theme, similar to the excellent Dracula theme. This would allow me to, for example, slightly toggle the colors without modifying the source to create a Breeze-like theme for KDE.
Solution
I can imagine one of 2 solutions:
JSON
CSS (Identical to the Dracula Theme)
Validation
If we're using a JSON file, it's probably a good idea to sanitize the input using the Javascript
CSS.supports('color', color)
(if supported by the current Electron version, I haven't used Electron). If the color is supported, you can write the property to the CSS file using a template.This prevents anything weird like:
Logic
The logic (in valid Javacript) could be:
The text was updated successfully, but these errors were encountered: