diff --git a/comp/src/gb.form/.src/Button/SwitchButton.class b/comp/src/gb.form/.src/Button/SwitchButton.class index 253130537..133383cf7 100644 --- a/comp/src/gb.form/.src/Button/SwitchButton.class +++ b/comp/src/gb.form/.src/Button/SwitchButton.class @@ -77,7 +77,7 @@ Public Sub DrawingArea_Draw() iCol = Color.Merge(Color.Merge(Color.TextForeground, Color.SelectedBackground, $fValue), Color.Background) iCol = Color.SetHSV(iCol, Color[Color.SelectedBackground].Hue) - If iFlag And Style.Disabled Then iCol = Color.Desaturate(iCol) + If iFlag And Style.Disabled Then iCol = Color.Merge(Color.Background, Color.Desaturate(iCol)) DS = Desktop.Scale Paint.Rectangle(DS, (Paint.H - DS) / 2, Paint.W - DS * 2, DS, DS) @@ -92,7 +92,7 @@ Public Sub DrawingArea_Draw() Paint.Fill() iCol = Color.Merge(Color.ButtonBackground, Color.SelectedBackground, $fValue) - If iFlag And Style.Disabled Then iCol = Color.Desaturate(iCol) + If iFlag And Style.Disabled Then iCol = Color.Merge(Color.Background, Color.Desaturate(iCol)) F = Max(1, DS \ 4) Paint.Ellipse(X + F, Y + F, DS * 3 - F * 2, DS * 3 - F * 2)