-
Notifications
You must be signed in to change notification settings - Fork 12
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
Use main window theme #16
Comments
Can you provide more information on the theme you are using? AFAIK, UniDock templates/theming is based on FluentTheme. If you have a custom theme, you might to use Styles or roll your own ControlThemes in order to make them fit in your UI. |
SimpleTheme, default dark colors (variant) https://docs.avaloniaui.net/docs/basics/user-interface/styling/themes/simple |
I agree it would be preferred to have both themes (Simple and Fluent) honour the default brushes to keep look consistent. In the meantime, I used a combination F12 debugger to track elements and these files to find style selectors to override
This may help with a starting point for theming using
|
@cirrusone , that's what was talking about! It shuold use the default pallete. And when i change the pallet, the dock applies it. while it's not fixed in the default code, i will use your snippet. It works. |
@cirrusone , will these scehem only work on Simple? I'm trying also on Fluent but i only get nulls |
Sorry - too tired now - will take a look on Sunday. |
@brmassa - you may need to change the DynamicResource names between FluentTheme and SimpleTheme. See the Avalonia accents for each in source https://github.com/AvaloniaUI/Avalonia/tree/master/src/Avalonia.Themes.Simple/Accents https://github.com/AvaloniaUI/Avalonia/tree/master/src/Avalonia.Themes.Fluent/Accents Also, this project is a good example for switching themes at runtime https://github.com/AvaloniaUI/Citrus.Avalonia |
Hey @npolyak any update on this? |
sorry, some colors were hardcoded, but you can take a look DockStyles.axaml file and modify the colors yourself (there are not many places) I have a full time job and also trying to work on Avalonia book, so might not have time at this point. |
Hello,
started to update my previous code to Avalonia 11 and Unidock.
however, when using a different theme than the white Avalonia, Unidock do not respect it and the result is a mess. Could it respect the app/main windows color scheme?
as a secondary/temporary solution: how to overwrite the default colors?
regards
Bruno Massa
The text was updated successfully, but these errors were encountered: