* Initial commit * Updated how monotone buttons are styled * Removed unnecessary textures * Updated attributions * Addressing reviewer comments * Adjusted monotone checkbox styling
25 lines
600 B
C#
25 lines
600 B
C#
using Robust.Client.UserInterface.Controls;
|
|
|
|
namespace Content.Client.UserInterface.Controls;
|
|
|
|
/// <summary>
|
|
/// A check box intended for use with a monotone color palette
|
|
/// </summary>
|
|
public sealed class MonotoneCheckBox : CheckBox
|
|
{
|
|
public const string StyleClassMonotoneCheckBox = "monotoneCheckBox";
|
|
|
|
public MonotoneCheckBox()
|
|
{
|
|
TextureRect.AddStyleClass(StyleClassMonotoneCheckBox);
|
|
}
|
|
|
|
protected override void DrawModeChanged()
|
|
{
|
|
base.DrawModeChanged();
|
|
|
|
// Appearance modulations
|
|
Modulate = Disabled ? Color.Gray : Color.White;
|
|
}
|
|
}
|