Convert query capture indices to style ids
* Introduce a Theme struct as a new part of the app's settings * Store on each Language a ThemeMap, which converts the capture ids from that language's highlight query into StyleIds, which identify styles in the current Theme. * Update `highlighted_chunks` methods to provide StyleIds instead of capture ids.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[ui]
|
||||
background = 0xffffff
|
||||
line_numbers = 0x237791
|
||||
text = 0x0d0d0d
|
||||
|
||||
[syntax]
|
||||
keyword = 0xaf00db
|
||||
function = 0x795e26
|
||||
string = 0xa31515
|
||||
type = 0x267599
|
||||
number = 0x0d885b
|
||||
comment = 0x048204
|
||||
property = 0x001080
|
||||
Reference in New Issue
Block a user