-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Bug]: OverrideFocus
Designer settings do not work or Prevent Ribbon MouseOver Highlighting
#227
Comments
I'll have a look at it. |
So: Not an Enhancement, but a bug on |
Maybe a new bug report? Still, I need to fix the tab background colours for dark modes |
Those are defaults, |
Do you think this will make it into the next release? Anything I can do to help? |
Yes many colours to perform the "Rounded feel" of the track highlight, |
Somewhere in the code, the |
I could try to investigate. Any tips for where to start? |
The bug would likely be within the ribbon controls portion of the toolkit i.e. anything to do with the tab & palettes |
I'll look into it. Do you know which of the listed colors above apply to the highlight? RibbonTabHighlight? |
I've been digging around all day without success. I assumed there would be a MouseEnter event that could be tracked from method to method until the palette colors were applied, but it's a bit more complicated than that. |
Might be in the palette 'base' code |
Found it! There is a PathGradientBrush named highlightBrush in the RenderMementos.cs file. The comments explain it is for drawing the rounded highlight at bottom center. The colors used look to be fixed. It is referenced in a few classes such as RenderOffice365, but the code that modifies it is grayed out. It would be nice to set these colors, but would be fine if there was just an option to turn it off, which might be less work. |
Can you give me the path? Maybe a user defined colour is needed? |
Source/Krypton Components/Krypton.Toolkit/Rendering/RenderMementos.cs |
I'll check it out tomorrow |
Nice, let me know if I can do anything else |
Do you know which lines they are? |
487 in rendermementos |
@Smurf-IV Might need assistance prizing this apart |
Sure.. Thanks for the research 👍 |
The Fix works in All Themes apart from Office2k7 and Sparkle, where it is diminished but still highlights with white! |
To disable highlighting - Just change the Above designer elements to |
OverrideFocus
Designer settings do not work or Prevent Ribbon MouseOver Highlighting
Nice work! |
There is currently no way to prevent ribbon groups from drawing a rounded white highlight when the mouse is over. This is barely noticeable in a light theme, but looks harsh in a dark theme, and interferes with button tracking/checked colors.
The text was updated successfully, but these errors were encountered: