Page 2 of 4

Re: Mini/MicroMap

Posted: 18.08.2024 20:03
by sl23
This is with my own theme.
sshot-001.png
1. Look at the Find/Replace bar at the bottom. I typed in "sAllText" and clicked find next. All highlighted words appear in the main editor window with a dark yellow/gold/olive sort of colour border. Hard to see and can't change.
Now check the MicroMap and see the same colour is in there too showing all instances of the word throughout. Again, hard to see and unable to find where it is to edit it.
2. The currently selected word however, is TextHighlight. This I found in the settings-theme-ui and changed to that blue colour as shown in the MicroMap.

If the "Currently Selected Word" can be edited in the theme-ui config, shouldn't the "Find Highlight"?

I can find nothing with a similar colour in the theme-ui file, or in the lexer's colour settings. Maybe I did it in the past, but I would like to change it and cannot find where it is! :oops:

PS. Unable to repeat that issue with the crash now! Good news i suppose.

Re: Mini/MicroMap

Posted: 18.08.2024 20:08
by sl23
If you aren't liking the idea of adding the Tooltip to the MicroMap, would you be willing to add the funcionality of the MicroMap to the MiniMap? Least that way we wouldn't need to use both. :)

Re: Mini/MicroMap

Posted: 18.08.2024 20:12
by main Alexey
1. Investigating how to change the color
2. 'would you be willing to add the funcionality of the MicroMap to the MiniMap?' - no because micromap shows file in one rectangle (not scrollable) while minimap shows scrollable area. for huge count of lines MICROmap cannot work fast. minimap can.

Re: Mini/MicroMap

Posted: 18.08.2024 20:15
by main Alexey
AFAIR, that color is configurable via SYNTAX theme, item 'SeparLine'.

Re: Mini/MicroMap

Posted: 18.08.2024 20:15
by main Alexey
wiki documents it:

Toggle-button "Hi"
Highlight all matches for the current search options. Matches are highlighted in the current editor, with the rounded borders, using the color of "SeparLine" syntax theme item.

Re: Mini/MicroMap

Posted: 18.08.2024 20:23
by sl23
Aw ok, such a shame. Hope you think about adding tooltips to MicroMap sometime ;)

Yes that's it! Sorry, didn't realise it was that settign!
That doesn't exist in the lexer theme for Rainmeter. I am not a programmer, so I'm not really sure how to add that in. Can I copy from another lexer theme?

Re: Mini/MicroMap

Posted: 18.08.2024 20:27
by main Alexey
the syntax theme is NOT for Rainmeter - Cud's themes are for all lexers. so call the dialog 'Options / themes / settings-theme-syntax' and adjust the item 'SeparLine'. dlg will save it to file.

Re: Mini/MicroMap

Posted: 18.08.2024 20:35
by sl23
Sorry, I meant the Rianmeter lexer for CT.
I opened that menu option and it says:
Syntax Themes are turned off by option "ui_lexer_themes":false so the following dialog will have no effect. To customise styles, use "Lexer properties dialog.
If I turn that on, will it affect my current theme?

Re: Mini/MicroMap

Posted: 18.08.2024 20:40
by main Alexey
Ok, in this case open the syntax-theme file:
data/themes/*.cuda-theme-syntax
and edit there "SeparLine" block. It helps? it must be checked, not sure color will be applied with "ui_lexer_themes":false.
If I turn that on, will it affect my current theme?
yes it will.

Re: Mini/MicroMap

Posted: 18.08.2024 20:49
by sl23
I just tried it out on a backup copy of CT, definitely don't want that.

I left that setting off as I didn't understand the different ways of setting highlights. Sorry if my terminology is incorrect.
With this set to false, I found things worked how I wanted.

I also changed the setting before I did that trial on the backup. It had no effect. I assume that's the same as editing that file you mentioned?

What's the difference? I don't understand the purpose of ui_lexer_themes. Is that like a global way of defining lexers or something?