Jonatan Heyman
249a6bbe11
Use CSS media query for dark mode specific CSS
2023-01-15 12:06:17 +01:00
Jonatan Heyman
2f842612fb
Read dark/light mode from system, automatically listen for changes, and add button for toggling the mode to the status bar
2023-01-15 11:59:17 +01:00
Jonatan Heyman
7595d3fc86
Add ability to toggle dark/light theme
2023-01-15 02:37:12 +01:00
Jonatan Heyman
c80d5682d1
Tweak background color
2023-01-15 01:25:17 +01:00
Jonatan Heyman
672052dd7b
Minor CSS tweaks
2023-01-14 23:40:28 +01:00
Jonatan Heyman
2b3a7817c8
Tweak colors of dark theme
2023-01-14 23:33:07 +01:00
Jonatan Heyman
856a9b16fd
Set theme as a data property in App component
2023-01-14 23:32:53 +01:00
Jonatan Heyman
db9ed4e1db
Move CSS related to blocks from styles.css into theme(s)
2023-01-14 20:04:30 +01:00
Jonatan Heyman
6dee4f81f2
Integrate Editor into Vue app
...
Add status bar that shows the current line number, column and block language
2023-01-14 19:51:24 +01:00
Jonatan Heyman
51e89ad55c
Set padding-top on .cm-content class instead of using .block-start element for the padding. This fixes an issue with being able to scroll the editor when there is only a single line in the document.
...
Use 1px border for line between blocks. This way we can make sure blocks always overlap slightly, and we don't have to care about fractional pixel rounding errors.
2023-01-14 15:04:53 +01:00
Jonatan Heyman
52f1ac71da
Optimize the Lezer external tokenizer for block content
2023-01-14 13:08:24 +01:00
Jonatan Heyman
f20c09ce19
Handle the fact that the syntax tree is being parsed in a separate thread, which can lead to broken UI on slow environments
2023-01-13 15:27:26 +01:00
Jonatan Heyman
8867937567
Use ensureSyntaxTree to not get visually broken blocks when syntax tree parsing is slow.
...
Update @codemirror/language to latest version.
Force a #build in order to get a Mac x86 verion built which is slower on rosetta to hopefully check that the problem is fixed.
2023-01-13 14:39:35 +01:00
Jonatan Heyman
9fb543fed3
Move contents of heynote-electron subdirectory into git repo root
2023-01-13 13:21:34 +01:00