Jump to content
Sign in to follow this  
Rickard Johansson

Inactive selection color in code explorer

Recommended Posts

Using v15.1.18 and dark VCL styles the auto located method in code explorer is barely visible (first screenshot). The selection color and background color are almost the same.

 

The Delphi IDE color is blue and clearly visible (screenshot 2). Can this be changes? What color does mmx use as an inactive selection color?

 

 

mmx_ce.png

projects.png

Share this post


Link to post
1 hour ago, Rickard Johansson said:

What color does mmx use as an inactive selection color?

Short answer: It doesn't use any color. The colors are intrinsic to a the selected IDE theme and not part of MMX.

 

The difference you see in the selected colors are caused by comparing different controls. MMX uses a derived TListView for the members and TTreeView for the content, while the IDE uses a special VirtualTree version. Each have separate colors inside a theme.

I'm not aware that TTreeView or TListView are used elsewhere in the IDE, which may explain why nobody complained about these colors up to now.

Share this post


Link to post

If the member list is derived from TListView - does it use some OnAdvancedCustomDraw event (or similar)? Perhaps it would be possible to use a better theme color, than the default one.

Edited by Rickard Johansson

Share this post


Link to post

That would require to configure this color for all possible themes. The IDE comes with three, but works with any valid VCL style.

 

The better approach would be to select a VCL style that matches your preference. This would even work without fiddling around with the MMX sources :classic_cool:

 

Another approach would be to file a feature request to change the standard themes color to something more visible. The problem with that is, that it is hard to show with a vanilla IDE installation.

Share this post


Link to post

TListView uses the color clBtnFace from the vcl style to highlight the current (non-focused) row. Most dark styles use similar colors for the list background and btnFace. 

 

I guess I will have to live with it. Unless you someday find yourself having nothing better to do than solving this for us :classic_biggrin: 

Share this post


Link to post

I did some deeper investigation not concentrating on the colors itself and it turned out that HideSelection was True under some conditions. I fixed that in the latest beta. Can you please try and see if this helps a bit?

Share this post


Link to post

Installed v16.0.3 build 25 Pre-Release.

 

No, I'm, sad to say it doesn't make any difference at all 😞 When a member is selected - selection colors are use. When focus shifts to the editor - the btnface color from the current vcl style is used. So, no difference.

 

If I remember correctly - HideSelection disables any highlighting of the currently selected line when losing focus. We do see some...

 

Anyway, I'm glad you looked into it. Thank you 🙂

 

Share this post


Link to post

As I never use any dark theme myself I am thankfully not affected. Nevertheless, I would rather question the decision to make clBtnFace and clWindow looking quite similar in the dark theme, while they give a perfect contrast in the light theme.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×