Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"private member" comes with wrong foreground color #292

Closed
HeinzKessler opened this issue Aug 6, 2023 · 4 comments
Closed

"private member" comes with wrong foreground color #292

HeinzKessler opened this issue Aug 6, 2023 · 4 comments
Assignees
Labels
Highlight Syntax highlight question

Comments

@HeinzKessler
Copy link

In my understanding, format settings add up from the lowest row in the list to the highest, so that every row modifies the format settings of the rows below it, see screenshot.
But wherever there is a "private member" attribute somewhere in the list, this fixes the foreground color to grey, regardless of the foreground color settings of the rows above.
In my case, "Method" should set the foreground color to dark orange, but "private member" below inhibits this and makes the foreground color stay grey. This also applies to private properties, fields etc. instead of methods.
Sometimes I manage to make it work correctly, but I can't tell how, and only until the next start of VS.
Note: The opacity of 12 for "private member" shall dim al subsequent colors if it's a private method, property etc.
Interestingly this bug only applies to the foreground color, not the background color.

Codist2023-08-06_11-13-25
CodistStyles.zip

I am using version 7.7. Beta

@wmjordan
Copy link
Owner

wmjordan commented Aug 7, 2023

Do not set foreground color for the private member. It has higher precedence over method, field, property etc., so it can override your specific style on those elements.
There is opacity for background, just below the foreground opacity. If you want to dim the background, you should specify value for background opacity.

@wmjordan
Copy link
Owner

wmjordan commented Aug 7, 2023

I altered the precedence of private member and sealed member. Now they have lower precedence.
Please try the new beta.

@HeinzKessler
Copy link
Author

HeinzKessler commented Aug 7, 2023 via email

@wmjordan
Copy link
Owner

wmjordan commented Aug 8, 2023

If I click on “All Languages” in the menu on the left, VS freezes for about a minute, and then crashes.
Shall I open a new issue for that?

Yes, please.

And please take a look at the Windows Event Viewer and find out corresponding entry there, where a stack trace is logged.
The stack trace can be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Highlight Syntax highlight question
Projects
None yet
Development

No branches or pull requests

2 participants