MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

PrimaryBody and SecondaryBody colors for theme

Abierto
#1,757 7 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

bug
Lenguaje dominante
C#
Estrellas
16.3k
Forks
3.5k
Merge medio
1 d 22 h
PR fusionados (30 d)
8

Descripción

For my project I am currently writing a style for RadioButton that is styled as a ChoiceChip (https://material.io/components/chips#choice-chips)
Currently I have the following result:
![image](https://user-images.githubusercontent.com/7225673/79998566-2142d400-84bb-11ea-847d-dd09c1540fbe.png)

As you can see the light theme is nice, but unfortunately the foreground color of the dark theme does not have enough contrast.
The problem is that for light theme I need the foreground to be PrimaryHueDarkBrush, but for the dark theme it must be PrimaryHueLightBrush. (Same for Secondary)
I currently think the best way to achieve this is by introducing a PrimaryBody and SecondaryBody color to the theme. The naming because it reacts in a similar way as currently the MaterialDesignBody color does.

I am willing to look into creating a PR with the necessary changes if you also see this as a good solution. Otherwise I hope you can come up with a better solution to fix this issue.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza revisando el comportamiento existente de los colores del tema para PrimaryHueDarkBrush, PrimaryHueLightBrush, los colores secundarios y MaterialDesignBody. Traza cómo un RadioButton con estilo ChoiceChip selecciona los colores de primer plano en los temas claro y oscuro, y verifica después que el comportamiento propuesto de PrimaryBody y SecondaryBody proporcione suficiente contraste en ambos temas.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
design
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.