public void SetEnableLevel(EnableLevel enabledLevel) { disableOverlay.BackgroundColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryAccentColor, 160); switch (enabledLevel) { case EnableLevel.Disabled: disableOverlay.Margin = new BorderDouble(0); disableOverlay.Visible = true; break; case EnableLevel.ConfigOnly: disableOverlay.Margin = new BorderDouble(10, 10, 10, 15); disableOverlay.Visible = true; break; case EnableLevel.Enabled: disableOverlay.Visible = false; break; } }
public void SetEnableLevel(EnableLevel enabledLevel) { disableOverlay.BackgroundColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryAccentColor, 160); switch (enabledLevel) { case EnableLevel.Disabled: disableOverlay.Margin = new BorderDouble(0); disableOverlay.Visible = true; break; case EnableLevel.ConfigOnly: disableOverlay.Margin = new BorderDouble(10, 10, 10, 15); disableOverlay.Visible = true; break; case EnableLevel.Enabled: disableOverlay.Visible = false; break; } }
public void SetEnableLevel(EnableLevel enabledLevel) { disableOverlay.BackgroundColor = new RGBA_Bytes(ActiveTheme.Instance.TertiaryBackgroundColor, 160); switch (enabledLevel) { case EnableLevel.Disabled: disableOverlay.Margin = new BorderDouble(0); disableOverlay.Visible = true; break; case EnableLevel.ConfigOnly: disableOverlay.Margin = new BorderDouble(0, 0, 0, 26) * TextWidget.GlobalPointSizeScaleRatio; ; disableOverlay.Visible = true; break; case EnableLevel.Enabled: disableOverlay.Visible = false; break; } }
public void SetEnableLevel(EnableLevel enabledLevel) { disableOverlay.BackgroundColor = new RGBA_Bytes(ActiveTheme.Instance.TertiaryBackgroundColor, 160); switch (enabledLevel) { case EnableLevel.Disabled: disableOverlay.Margin = new BorderDouble(0); disableOverlay.Visible = true; break; case EnableLevel.ConfigOnly: disableOverlay.Margin = new BorderDouble(0, 0, 0, 26) * TextWidget.GlobalPointSizeScaleRatio;; disableOverlay.Visible = true; break; case EnableLevel.Enabled: disableOverlay.Visible = false; break; } }