benruehl / adonis-ui

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

Are the Layer4BackgroundBrush and Layer4BorderColor attributes correct linked to the layers? #117

Closed McTopaz closed 4 years ago

McTopaz commented 4 years ago

Describe the bug I'm trying to learn how to create my own themes for Adonis. I'm evaluating Adonis for my company if we can use it two switch between dark and light themes with custom colors. I have played around with the colors and see what result I got. When I change the colors of the Layer4BackgroundColor and Layer4BorderColor parameters and tries this on nested GroupBoxes I don't get the result I think is correct. Note: It possible that the result is correct and I have no clue what I'm doing >_< :P ;)

To Reproduce

  1. Create a WPF application.
  2. Install the Adonis NuGet.
  3. My App.xaml and MainWindow.xaml and MainWindows.xaml.cs looks like the XAML-code bellow.
  4. My Light.xaml is attached at the bottom. Please change the file extension from .txt to .xaml.
  5. Add the Light.xaml file to the WPF-project and set the Build Action to Page.
  6. Alter the MainWindow's constructor with the correct path to the Light.xaml.
  7. Build and run the application. It should work directly.
  8. Please look at the attached screenshot.

Expected behavior I have changed these parameters.

(I have added a five level deep nested Groupboxes. As Adonis don't support more than four layers, I'm OK that the fifth layer "inherits" the layer 4 colors.)

Please look at the screenshot.

Screenshots image

App.xaml ` <Application x:Class="Main.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Main" xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI" StartupUri="MainWindow.xaml">

` **MainWindow.xaml**