Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
MenuBarTheme.cs
1using System.Drawing;
2
4
8public sealed record MenuBarTheme
9{
11 public static MenuBarTheme Default { get; } = new();
12
16 public Color BarBackgroundColor { get; init; } = Color.FromArgb(255, 44, 44, 52);
20 public Color BarBorderColor { get; init; } = Color.FromArgb(255, 92, 92, 104);
21
25 public Color HeaderNormalColor { get; init; } = Color.Transparent;
29 public Color HeaderHoverColor { get; init; } = Color.FromArgb(255, 68, 68, 80);
33 public Color HeaderPressedColor { get; init; } = Color.FromArgb(255, 52, 52, 62);
37 public Color HeaderOpenColor { get; init; } = Color.FromArgb(255, 76, 76, 90);
38
42 public Color DropDownBackgroundColor { get; init; } = Color.FromArgb(250, 40, 40, 48);
46 public Color DropDownBorderColor { get; init; } = Color.FromArgb(255, 116, 116, 132);
47
51 public Color ItemNormalColor { get; init; } = Color.Transparent;
55 public Color ItemHoverColor { get; init; } = Color.FromArgb(255, 72, 72, 88);
59 public Color ItemPressedColor { get; init; } = Color.FromArgb(255, 54, 54, 66);
60
64 public Color TextColor { get; init; } = Color.White;
68 public Color DisabledTextColor { get; init; } = Color.FromArgb(255, 138, 138, 148);
72 public Color ShortcutTextColor { get; init; } = Color.FromArgb(255, 194, 194, 204);
76 public Color SeparatorColor { get; init; } = Color.FromArgb(255, 92, 92, 104);
77
81 public int MinimumHeaderWidth { get; init; } = 48;
85 public int HeaderHorizontalPadding { get; init; } = 14;
89 public float EstimatedGlyphWidth { get; init; } = 8.5f;
90
94 public int DefaultDropDownWidth { get; init; } = 220;
98 public int MinimumDropDownWidth { get; init; } = 140;
102 public int DropDownHorizontalPadding { get; init; } = 5;
106 public int DropDownVerticalPadding { get; init; } = 5;
107
111 public int ItemHeight { get; init; } = 28;
115 public int ItemHorizontalPadding { get; init; } = 10;
119 public int ShortcutGap { get; init; } = 24;
121 public int MarkerColumnWidth { get; init; } = 24;
123 public int IconSize { get; init; } = 18;
125 public int IconGap { get; init; } = 6;
127 public int SubMenuArrowWidth { get; init; } = 20;
129 public int SubMenuGap { get; init; } = 0;
131 public int IndicatorSize { get; init; } = 14;
133 public float IndicatorStrokeWidth { get; init; } = 1.8f;
135 public Color IndicatorColor { get; init; } = Color.White;
136
140 public int SeparatorHeight { get; init; } = 9;
141
145 public float FontSize { get; init; } = 15f;
149 public float MinimumFontSize { get; init; } = 10f;
153 public float BorderWidth { get; init; } = 1f;
157 public float CornerRadius { get; init; } = 3f;
158}
record MenuBarTheme
Defines the dimensions and colors used by menu bar widgets.