Material.Avalonia icon indicating copy to clipboard operation
Material.Avalonia copied to clipboard

Add styles for `TitleBar` to support close/maximize buttons when ExtendClientAreaToDecorationsHint=True

Open lxymahatma opened this issue 2 years ago • 2 comments

Avalonia Version: 11.0.0-rc1.1 Material.Avalonia Package Version: 3.0.0-avalonia11-preview4.179-nightly

Project window when using Simple Style: image

Project window when using Material Theme with style: <themes:MaterialTheme BaseTheme="Dark" PrimaryColor="Grey" SecondaryColor="Indigo" /> image

lxymahatma avatar Jun 07 '23 11:06 lxymahatma

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.

SKProCH avatar Jun 12 '23 15:06 SKProCH

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.

ok thank you for ur reply 👍i'll do that for now

lxymahatma avatar Jun 12 '23 15:06 lxymahatma