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

DataGrid Light theme selected and mouse over background have wrong opacity #299

Closed
WilliamForsdal opened this issue Feb 16, 2024 · 0 comments · Fixed by #317
Closed

DataGrid Light theme selected and mouse over background have wrong opacity #299

WilliamForsdal opened this issue Feb 16, 2024 · 0 comments · Fixed by #317
Assignees

Comments

@WilliamForsdal
Copy link

Hey,

When using Light theme, the DataGridRow background when selected or selected+mouse over is not transparent, so if the row background is styled to something other than white it's clear the color is not transparent.
It seems the opacity is missing from the resources in the Light theme, since they are specified in the dark theme.

I tried specifying the opacity in the following resources:

<SolidColorBrush x:Key="DataGridRowSelectedBackground" Color="#EAF5FF" Opacity="0.2" />
<SolidColorBrush x:Key="DataGridRowSelectedPointeroverBackground" Color="#CBE7FE"  Opacity="0.3" />

in the file src/Semi.Avalonia.DataGrid/Light.axaml

That fixed my issue.

Hope that helps!

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

Successfully merging a pull request may close this issue.

2 participants