Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A fix for the full background of all the themes that was in the way, by removing all default theme backgrounds and replacing it by the semi-transparant black background
rgba(0,0,0,0.7)
that is not full editor size butfit-content
but only where the text is.I included some extra themes that I think look nice: Andromeda, Bespin, Console Dark, Xcode Dark, Solarized Dark, Monakai, Github Dark (all installed from: https://uiwjs.github.io/react-codemirror/#/theme/home). Themes are installed with
themeInit({ settings: { background: none }});
to make sure they also have an empty background for Hydra.I've made the fonts a bit better visible how it was in previous Flok. Making the default font-weight 600.
I normalized the font sizes in the
@font-face
withsize-adjust:
so there's less differences in font size when you change between them.I've added the One Dark theme back in. (used this one: https://github.com/codemirror/theme-one-dark/tree/main)
I added a preview of the changes when you hover over the Font or Theme with
onMouseEnter => {}
. So you can see in the background already what it looks like before you click.on...
event to use for that, I triedonKeyDown
andonKeyUp
but that doesn't work.I included some extra fonts from Google Fonts: Fira Code, Ubuntu Mono, Roboto Mono, Syne Mono, VT323 (from https://fonts.google.com/, converted to woff and woff2 with: https://transfonter.org/)
I didn't put word-wrap on by default yet, because it seems there is still a bit strange behaviour when the editor is zoomed in further then 100%. Words/characters randomly wrap when you move with the cursor through the code...