1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

themes: more detailed WCAG breakdowns in browser

This commit is contained in:
bbedward
2026-07-20 20:21:00 -04:00
parent 5de0339506
commit fa6c36ad57
2 changed files with 144 additions and 21 deletions
+15 -7
View File
@@ -110,14 +110,22 @@ type ThemeWCAGGroup struct {
WorstPair []string `json:"worstPair,omitempty"`
}
type ThemeWCAGBreakdown struct {
Name string `json:"name"`
Mode string `json:"mode"`
Level string `json:"level"`
BodyLevel string `json:"bodyLevel"`
}
type ThemeWCAGMode struct {
Level string `json:"level"`
MinRatio float64 `json:"minRatio"`
WorstPair []string `json:"worstPair,omitempty"`
Body *ThemeWCAGGroup `json:"body,omitempty"`
Accent *ThemeWCAGGroup `json:"accent,omitempty"`
NonText *ThemeWCAGGroup `json:"nonText,omitempty"`
Variants map[string]string `json:"variants,omitempty"`
Level string `json:"level"`
MinRatio float64 `json:"minRatio"`
WorstPair []string `json:"worstPair,omitempty"`
Body *ThemeWCAGGroup `json:"body,omitempty"`
Accent *ThemeWCAGGroup `json:"accent,omitempty"`
NonText *ThemeWCAGGroup `json:"nonText,omitempty"`
Variants map[string]string `json:"variants,omitempty"`
Breakdown []ThemeWCAGBreakdown `json:"breakdown,omitempty"`
}
type ThemeWCAG struct {