benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.7k stars 143 forks source link

Can I somehow set to ignore control when I change ColorScheme? #154

Closed ZhmerenkaSolution closed 2 years ago

ZhmerenkaSolution commented 3 years ago

I have <WindowsFormsHost><wf:DataGridView. Adonis dark theme pretty badly changes font here:

  1. Light color scheme 1
  2. Dark color scheme 2

Can I somehow disable colorScheme changing only for DataGridView? Or maybe manually set ColorScheme parameters for DataGridView?

benruehl commented 2 years ago

You could create a style for your DataGrid and set foreground or background colors as you like.

Alternatively, if you don't want to have Adonis UI's default style for DataGrids in general, you need to replace the following line in your App.xaml:

<ResourceDictionary Source="pack://application:,,,/AdonisUI.ClassicTheme;component/Resources.xaml"/>

... with your own resource dictionary. Just copy Adonis UI's resource file and remove all styles you don't like. This has the disadvantage that future updates are not applied automatically to your file, of course.