Initializes a new instance of the class. The text.
(string text)
| 37 | /// </summary> |
| 38 | /// <param name="text">The text.</param> |
| 39 | public MainMenuButton(string text) |
| 40 | : base(0, 0, 32, 16) |
| 41 | { |
| 42 | Text = text; |
| 43 | |
| 44 | var style = Style.Current; |
| 45 | if (!Utilities.Utils.UseCustomWindowDecorations()) |
| 46 | { |
| 47 | BackgroundColorMouseOver = style.BackgroundHighlighted; |
| 48 | BackgroundColorMouseOverOpened = style.Background; |
| 49 | } |
| 50 | else |
| 51 | { |
| 52 | BackgroundColorMouseOver = BackgroundColorMouseOverOpened = style.LightBackground * 1.3f; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /// <inheritdoc /> |
| 57 | public override void Draw() |
nothing calls this directly
no test coverage detected