mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-06-09 10:06:46 +02:00
Correctly Scope Button Pseudoclass Generation (#43908)
Correctly scope button pseudoclass generation I was fighting in RT for a while trying to figure out why random controls with new PseudoClasses would turn into black, but it turns out THESE RULES broke it all...
This commit is contained in:
@@ -103,10 +103,19 @@ public sealed class ButtonSheetlet<T> : Sheetlet<T> where T : PalettedStylesheet
|
||||
string? styleclass)
|
||||
{
|
||||
rules.AddRange([
|
||||
E().MaybeClass(styleclass).PseudoNormal().Prop(Control.StylePropertyModulateSelf, palette.Element),
|
||||
E().MaybeClass(styleclass).PseudoHovered().Prop(Control.StylePropertyModulateSelf, palette.HoveredElement),
|
||||
E().MaybeClass(styleclass).PseudoPressed().Prop(Control.StylePropertyModulateSelf, palette.PressedElement),
|
||||
E()
|
||||
CButton()
|
||||
.MaybeClass(styleclass)
|
||||
.PseudoNormal()
|
||||
.Prop(Control.StylePropertyModulateSelf, palette.Element),
|
||||
CButton()
|
||||
.MaybeClass(styleclass)
|
||||
.PseudoHovered()
|
||||
.Prop(Control.StylePropertyModulateSelf, palette.HoveredElement),
|
||||
CButton()
|
||||
.MaybeClass(styleclass)
|
||||
.PseudoPressed()
|
||||
.Prop(Control.StylePropertyModulateSelf, palette.PressedElement),
|
||||
CButton()
|
||||
.MaybeClass(styleclass)
|
||||
.PseudoDisabled()
|
||||
.Prop(Control.StylePropertyModulateSelf, palette.DisabledElement),
|
||||
|
||||
Reference in New Issue
Block a user