mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix(account-selection): use font color as color for labels (#6518)
fix(account-selection): #5505 use font color as color for labels
This commit is contained in:
parent
5d2295aef4
commit
345af3b6c7
@ -207,6 +207,7 @@ func (m *Styling) writeFile(policy *iam_model.LabelPolicyView) (io.Reader, int64
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if policy.FontColor != "" {
|
if policy.FontColor != "" {
|
||||||
|
cssContent += fmt.Sprintf("--zitadel-color-label: %s;", policy.FontColor)
|
||||||
palette := m.generateColorPaletteRGBA255(policy.FontColor)
|
palette := m.generateColorPaletteRGBA255(policy.FontColor)
|
||||||
for i, color := range palette {
|
for i, color := range palette {
|
||||||
cssContent += fmt.Sprintf("--zitadel-color-text-%v: %s;", i, color)
|
cssContent += fmt.Sprintf("--zitadel-color-text-%v: %s;", i, color)
|
||||||
@ -242,6 +243,7 @@ func (m *Styling) writeFile(policy *iam_model.LabelPolicyView) (io.Reader, int64
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if policy.FontColorDark != "" {
|
if policy.FontColorDark != "" {
|
||||||
|
cssContent += fmt.Sprintf("--zitadel-color-label: %s;", policy.FontColorDark)
|
||||||
palette := m.generateColorPaletteRGBA255(policy.FontColorDark)
|
palette := m.generateColorPaletteRGBA255(policy.FontColorDark)
|
||||||
for i, color := range palette {
|
for i, color := range palette {
|
||||||
cssContent += fmt.Sprintf("--zitadel-color-text-%v: %s;", i, color)
|
cssContent += fmt.Sprintf("--zitadel-color-text-%v: %s;", i, color)
|
||||||
|
Loading…
Reference in New Issue
Block a user