-
I'm using a metro context menu strip. I'd like to change the forecolor for the text. The control seems to ignore any color value I use. How do you change the forecolor so that it is not gray? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
You can customize Metro components the way you want using StyleManager. https://github.com/Taiizor/ReaLTaiizor/blob/develop/src/ReaLTaiizor/Resources/Metro/Metro%20Theme.xml How to use this theme file is shown in the example below. Or you can do it by typing the path to the theme file. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I'll look into that. |
Beta Was this translation helpful? Give feedback.
-
I finally got around to testing this. I can now add a style manager to my form. However, the changes that I made to the theme file do not seem to be reflected in the form, or, the context menu. For example, I wrote the following to use my theme in the Load of the form:
I set the style manager field for the Metro Context menu strip to the style manager I dragged onto the form. I changed the menu fore color to
The text did not change. What am I missing? |
Beta Was this translation helpful? Give feedback.
-
I've made some progress in resolving this. Most of my problems are due to a lack of understanding of what each item in the theme file affects. By trial and error, I was able to learn what values affected the colors I wanted to change. Additionally, I found that I had to change the 'RenderMode' for the context menu to "System". I don't know if this is correct, but, it provides what I need. You can mark this as resolved. |
Beta Was this translation helpful? Give feedback.
You can customize Metro components the way you want using StyleManager.
Customizable sample theme file is below.
https://github.com/Taiizor/ReaLTaiizor/blob/develop/src/ReaLTaiizor/Resources/Metro/Metro%20Theme.xml
https://github.com/Taiizor/ReaLTaiizor/blob/develop/src/ReaLTaiizor/Resources/Metro/Metro%20Theme.xml#L197
How to use this theme file is shown in the example below.
ReaLTaiizor/demo/ReaLTaiizor.UI/ReaLTaiizor.UI/Form19.cs
Line 55 in e34f1fd
Or you can do it by typing the path to the theme file.
metroStyleManager1.CustomTheme = @"C:\Custom Theme.xml";