Is there a way to turn off the opacity in the new Fluent theme?
2 Answers, 1 is accepted
0
Martin
Telerik team
answered on 19 Jan 2018, 09:48 AM
Hello,
Depending on which opacity you are referring. There is opacity to some of the brushes as well as opacity on the text of the inputs. Each of these can be controlled via properties in the FluentPalette.Palette static class.
You can use the following method to overlay any color on top of a background color to receive an opaque variation of it:
public static Color RgbFromArgbAndBackgroundColor(Color targetColor, Color backgroundColor)
The ones that you might need to change as well are PrimaryColor, MouseOverColor, PressedColor and BasicColor (although there is a variation of is - BasicSolidColor). There is also FluentPalette.Palette.InputOpacity, which is responsible for the normal state of text in the inputs as is defaulting to 0.6.
If you are referring to the opacity of Windows and popups (if you do not have the IsAcrylic effect available on the current machine or simply you would like to remove it), you can set in the static constructor of the MainWindow:
ThemeEffectsHelper.IsAcrylicEnabled = false;
I hope that any of these would be helpful to you in customizing the theme to fit your needs. If you have any other questions, please do not hesitate to contact us further.
Regards,
Martin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.