Skip to content
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

Change Background to Transparent or we can call it DarkMode. #144

Open
michalss opened this issue Mar 20, 2024 · 1 comment
Open

Change Background to Transparent or we can call it DarkMode. #144

michalss opened this issue Mar 20, 2024 · 1 comment

Comments

@michalss
Copy link

michalss commented Mar 20, 2024

Hi,

I would like to use this in my project, however i need to have all components with transparent color to fit it into my color scheme. How can i do it please ?

image

@michalss michalss changed the title Change Bacgrloud to Transprent or we can call it DarkMode? Change Background to Transparent or we can call it DarkMode? Mar 20, 2024
@michalss michalss changed the title Change Background to Transparent or we can call it DarkMode? Change Background to Transparent or we can call it DarkMode. Mar 20, 2024
@whistyun
Copy link
Owner

Do you use a style other than SimpleTheme, FluentTheme or AvaloniaFluent?
Markdown.Avalonia will use a style that supports Dark if any of the above three styles are used.
On the other hand, if not used, use a style that supports only Light.

If you want to use your own dark theme, you need to set the style from scratch.
To do so, use the MarkdownScrollViewer.MarkdownStyle property.

<md:MarkdownScrollViewer>
  <md:MarkdownScrollViewer.MarkdownStyle>
    <StyleInclude Source="/Styles/MarkdownStyle.axaml"/>
  </md:MarkdownScrollViewer.MarkdownStyle>   
</md:MarkdownScrollViewer>

MarkdownStyleStandard.axaml may be a reference for available selectors and properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants