private static void InitDearImGuiSkin() { dearImGuiSkinRules = new ImGui.Style.CustomSkin(); var button = dearImGuiSkinRules[GUIControlName.Button]; button.Border = (1, 1, 1, 1); button.Padding = (5, 5, 5, 5); button.SetBorderColor(new Color(0.70f, 0.70f, 0.70f, 0.65f)); button.SetBackgroundColor(new Color(0.67f, 0.40f, 0.40f, 0.60f), GUIState.Normal); button.SetBackgroundColor(new Color(0.67f, 0.40f, 0.40f, 1.00f), GUIState.Hover); button.SetBackgroundColor(new Color(0.80f, 0.50f, 0.50f, 1.00f), GUIState.Active); }
private static void InitWin10Skin() { win10SkinRules = new ImGui.Style.CustomSkin(); var button = win10SkinRules[GUIControlName.Button]; button.Border = (2, 2, 2, 2); button.Padding = (5, 5, 5, 5); button.SetBorderColor(Color.Rgb(204), GUIState.Normal); button.SetBorderColor(Color.Rgb(122), GUIState.Hover); button.SetBorderColor(Color.Rgb(153), GUIState.Active); button.SetBackgroundColor(Color.Rgb(225), GUIState.Normal); button.SetBackgroundColor(Color.Rgb(225), GUIState.Hover); button.SetBackgroundColor(Color.Rgb(153), GUIState.Active); }