You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a WPF application.
Install the Adonis NuGet.
My App.xaml and MainWindow.xaml and MainWindows.xaml.cs looks like the XAML-code bellow.
My Light.xaml is attached at the bottom. Please change the file extension from .txt to .xaml.
Add the Light.xaml file to the WPF-project and set the Build Action to Page.
Alter the MainWindow's constructor with the correct path to the Light.xaml.
Build and run the application. It should work directly.
Please look at the attached screenshot.
Expected behavior
I have changed these parameters.
Layer0BorderColor = 777777 // Gray.
Layer1BackgroundColor = 00ff00 // Green
Layer1BorderColor = 007700 // Dark green
Layer2BackgroundColor = 0000ff // Blue
Layer2BorderColor = 000077 // Dark blue
Layer3BackgroundColor = ffff00 // Yellow
Layer3BorderColor = ff00ff // Purple
Layer4BackgroundColor = 00ffff // Turquoise
Layer4BorderColor = ff0000 // Red
(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.)
Why is the level 4 groupbox background colored green when it should be turquoise? Layer4BackgroundColor = #00ffff. The GB3 button does have the turquoise color.
Why is the level 4 groupbox header bar colored green when it should be red? Layer4Bordercolor = #ff0000.
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
var uri = new Uri("pack://application:,,,/Light.xaml", UriKind.Absolute);
ResourceLocator.SetColorScheme(Application.Current.Resources, uri);
}
}
Good spot.
I checked your setup and can confirm that group boxes on layer 4 do not use the layer 4 colors correctly.
A fix is on the way.
Besides that, I would be interested in your reasons for and against using the library. Getting feedback is important to improve but sometimes hard to get on this platform.
I would be pleased to give you feedback regarding my company using your library.
But I'm not sure if this issue/thread is the correct forum for it.
How would you like to receive the feedback?
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
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
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"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/AdonisUI;component/ColorSchemes/Light.xaml" /> <ResourceDictionary Source="pack://application:,,,/AdonisUI.ClassicTheme;component/Resources.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application>
MainWindow.xaml
MainWindow.xaml.cs
Light.txt
The text was updated successfully, but these errors were encountered: