Page 3 of 4
Re: Mini/MicroMap
Posted: 18.08.2024 21:00
by main Alexey
What's the difference? I don't understand the purpose of ui_lexer_themes.
description for "ui_lexer_themes":
Allow to apply color-theme to lexer's styles.
So it allows to apply colors from mentioned dialog - to the lexer styles. e.g. Rainmeter styles.
option on: lexer styles are overwritten from current syntax theme.
option off: current syntax theme is not used (except maybe 'SeparLine' item).
Re: Mini/MicroMap
Posted: 18.08.2024 21:09
by sl23
I think this is where I am lost. I don't understand the difference between Lexer Styles and Syntax Theme. To me, they appear to do the same thing. But I think I was right, maybe, that the Syntax Theme is like a global Lexer Style? Meaning that all lexers will use that style?
I did try googling and searching the wiki, but I can't seem to find what I'm looking for.
So the end result is that I can't use this setting unless I turn Syntax Theme on?
Re: Mini/MicroMap
Posted: 18.08.2024 21:20
by main Alexey
I think this is where I am lost. I don't understand the difference between Lexer Styles and Syntax Theme.
2 layers of colors:
layer1, lexer styles. blocks in data/lexlib/*.lcf files.
layer2, syntax theme. in data/theme/* files.
layer2 overwrites layer1 if "ui_lexer_themes" on.
So the end result is that I can't use this setting unless I turn Syntax Theme on?
you still can use it.
edit by hands the data/themes/* syntax theme file. block 'SeparLine'.
i checked, and my custom color from there is used.
Re: Mini/MicroMap
Posted: 18.08.2024 21:24
by sl23
When you say "overwrites" do you mean it literally writes the code to the file, or do you mean "override" as in it takes priority?
I'll give it a go.
Re: Mini/MicroMap
Posted: 18.08.2024 21:28
by main Alexey
I mean "overrides" of course.
Re: Mini/MicroMap
Posted: 18.08.2024 21:29
by sl23
I'd already saved a different colour there years ago, it doesn't work for me.
I want a light colour that stands out:
"Lex_SeparLine": {
"Type": 3,
"Styles": "",
"CFont": "#000000",
"CBack": "#FF80FF",
"CBorder": "#FF80FF",
"Border": "0,0,0,0"
},
Is this correct?
Do I have to specify somewhere to use this file?
Ok, I thought you meant that, just thought best to check.
Re: Mini/MicroMap
Posted: 18.08.2024 21:31
by main Alexey
yes, it is correct. Did you also 'activate' that syntax theme via option
"ui_theme_syntax": "name_here",
in user.json?
Re: Mini/MicroMap
Posted: 18.08.2024 21:34
by sl23
No. Do I have to do it manually? What about the rest of that syntax theme though? It will override my current theme, will it not?
Re: Mini/MicroMap
Posted: 18.08.2024 21:35
by main Alexey
yes, do it manually.
write option to user.json.
the rest of the theme should not be used.
Re: Mini/MicroMap
Posted: 18.08.2024 21:39
by sl23
Superb, thank you, that's been annoying me for years! lol
Works perfectly, need to tone it down a bit though but it works. Thank you so much