-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Theming of selected context ribbon tab #578
Comments
The group's foreground color is used. Have a look at https://github.com/fluentribbon/Fluent.Ribbon/blob/develop/Fluent.Ribbon/Themes/Controls/RibbonTabItem.xaml I guess there should be a dedicated property for that case on group. Something like SelectedTabForeground. Would that help? |
Actions i will take to solve this:
|
And i'll add SelectedRibbonTabItemForeground to the group. |
any plans on when version 7 will be released? or on publishing the dev branch to nuget as a prerelease? :) |
@stylefish Will publish a prerelease to nuget during the weekend, at least i hope so. But did you know that you can grab a prerelease from the appveyor feed at https://ci.appveyor.com/nuget/fluent-ribbon ? |
uh nice! looking forward to the nuget prerelease. |
okay, sorry for the late reply, haven't found the time to test your changes until now. my desired behavior is: in addition, when i select a context tab and leave the tab and the group with the mouse the foreground color changes to the background color: mouse withing context tab or group container: i'm using the attached Accent "BlueAccent" and Theme "Light". my used theme: Theme.zip |
Wil have a look at this on saturday. |
reopening this so i don't forget to have a look at it. |
You currently can't overwrite these two brushes by only using theme resources but i got an idea on how to make this possible while still maintaining the current way it works. Currently, for the first case, the mouse over foreground brush being used differs between the light and dark theme. Using a resource here wasn't possible because the highlight brush being used for light is not really visible on the dark theme. Currently, for the second case, the first case also partially applies for this but in addition to that |
@stylefish Could you have a look at the latest changes? Instructions are in the changelog. Feel free to ask any questions and give feedback on the features and changelog. |
Hey!Thanks for your feedback, will have a look next week, currently on a festival ;) Thank you!
|
Just add your new style files and i will have a look at whats wrong with your styles or with the lib ;-) |
here you go! thank you! :) |
btw sth i noticed in your recent change:
you're checking the current theme and are setting the corresponding colors, but in my case i have a completely different theme, so this wont work, because my theme has another name. |
Ah, then that's the problem.
I don't get what you mean with that. Which variables would that be? |
i thought maybe you could remove the trigger in the view, and just use maybe thats a chance to define what exactly an Accent ist and what a Theme is. while i experimented with the office themes i thought "what if i could just create a theme with all colors (like backstage menu button etc) in it". after that you may apply an accent to that theme to change the base values. in that case you wouldnt have to create "Dark" and "Light" properties that break advanced custom themes, just an idea but i dont know if thats possible or if the work amount is justified etc... |
Basically the theme defines some base colors and the accents build on top of that. It would require some work but it would solve all problems as there would be no dependency between two resource files like it's now the case. |
sounds good to me, if you can define a "work package" or sth i can do easily without understanding the complete source, i'm happy to help. :) i think i got some time somewhere next week! |
@stylefish The separation between AppTheme and Accent is gone and only Theme is left. Everything is now contained in single files named "Dark.Blue" for example. |
Fluent.Ribbon.Brushes.RibbonTabItem.MouseOver.Selected.Foreground would be my favorite here. It's already on nuget since saturday. ;-) |
@stylefish Brush is added |
@batzen nice! it works! but for contextual tabs i haven't seen anything to set it... so there is the "black" foreground when you hover it or the white when its selected, like the above screenshots but with the contextual tab group. i used: |
@stylefish Brush is added |
@batzen, nice. trying it out in a few secs. if you're at it right now, a |
@stylefish There you go |
nice, my themes look like this now: thats as close as i wanted to get to the office 2016 colorful theme and "gray" looks good too ;) looking forward to version 7 release! :) |
Would be nice if you could share those. Maybe i can include them in the library then. |
of course, here they are. or should i create a PR to integrate them? |
If you like to try to integrate go ahead. |
Now that your themes are included in the library, i consider this issue resolved. |
yes, resolved! great! thanks for your support and the integration! :) |
Is it possible to change the color of the quick access menu arrow ? I'd like it to be white. |
@DenZuck that's currently not possible as it's a hard coded path to a png. Could you create a new issue for this? |
Hey,
first of all: thanks for this awesome component :)
i'm trying to create a custom theme with the new ThemeManager.
My Question is: How do i change the ForeColor of a selected ContextTabItem?
the default tab looks ok:
but the contextual tab doesnt change the fore color like the normal tab:
as far as i can tell both tabs should use the same colors for selected etc, right?
if you could point me in the right direction, that would be really nice :)
thanks a lot
greetings
Environment
The text was updated successfully, but these errors were encountered: