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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user