Add styles for `TitleBar` to support close/maximize buttons when ExtendClientAreaToDecorationsHint=True
Avalonia Version: 11.0.0-rc1.1 Material.Avalonia Package Version: 3.0.0-avalonia11-preview4.179-nightly
Project window when using Simple Style:
Project window when using Material Theme with style: <themes:MaterialTheme BaseTheme="Dark" PrimaryColor="Grey" SecondaryColor="Indigo" />
Hello, @lxymahatma
Seems like this will caused by the fact what we missing styles for TitleBar. I'll try to implement it, but i can't guarantee what it will be fast. For now you can use FluentTheme for this.
Your App.axaml should be look like this:
<Application.Styles>
<FluentTheme/>
<themes:MaterialTheme PrimaryColor="Purple" SecondaryColor="Indigo" />
...
So, it will use most of the styles from MaterialTheme, but missing styles should be pulled from FluentTheme and TitleBar should be shown.
Hello, @lxymahatma
Seems like this will caused by the fact what we missing styles for
TitleBar. I'll try to implement it, but i can't guarantee what it will be fast. For now you can use FluentTheme for this. YourApp.axamlshould be look like this:<Application.Styles> <FluentTheme/> <themes:MaterialTheme PrimaryColor="Purple" SecondaryColor="Indigo" /> ...So, it will use most of the styles from MaterialTheme, but missing styles should be pulled from FluentTheme and TitleBar should be shown.
ok thank you for ur reply 👍i'll do that for now