Closed djonasdev closed 2 years ago
Hello, @dojo90
As far as I understand, you have 2 problems:
As for TextBox problem: I think what you need manually set TextBlock.Foreground
propety.
Perhaps I misunderstood the questions, if so, please clarify them.
Thank you for your feedback. I will adapt my application accordingly.
However, you write that the accent color would be used for buttons. Apart from the toggle button, I have not yet been able to find any other implementation. If I understand the following page correctly (https://material.angular.io/components/button/overview), I have to explicitly define a button as in accent color. Hover and click event will not use the accent color.
Apart from the toggle button, I have not yet been able to find any other implementation.
You can use Accent
class:
<Button Classes="Accent" />
Also you can open our demo project to look out for all available controls
I think you answered my question or it cleared itself up.
First of all, I would like to say that my HaprotecCorporateDesignTheme
class works so far, in case someone else needs custom colors.
My problem why I (wrongly) opened the issue at all:
The dark background color (in dark mode) and my primary color of the company are almost identical. As a result, I asked myself why the bright accent color is not displayed:
primary
dark mode background
dialog preview
Now that I have solved the problem by manually overwriting the background color of the pop-up windows, it now looks appropriately responsive!
also added accent to the DialogButtons
I am not sure if this is the right way in material design, but if the dark background of the dark mode and the primary color are almost the same, how should you deal with this?
I am not sure if this is the right way in material design, but if the dark background of the dark mode and the primary color are almost the same, how should you deal with this?
As i know material design isn't supposed to use primary/secondary colors which almost the same as background color. I can't explain it in another way.
I think the problem has nothing to do with the Material.Avalonia
and I have to solve the problem myself. Thanks for your help 👍
I'm currently trying to adapt the
MaterialDesign
to the corporate design of our company:For this purpose I created the
HaprotecCorporateDesignTheme
class to specifically adjust the colors.In both dark and light mode, I miss the accent color and a uniform font color:
TextBox
has a white foreground, but when my virtual keyboard opens, the foreground is still white while the backround of the TextBox is als light.ToggleButton
(you can see in the preview. The purple background on the text blocks is not relevant)Thanks in advance!
HaprotecCorporateDesignTheme
App.axaml