public static void DrawIconTitle(Styles.StyleName iconStyleName, string mainTitle, string subTitle, ColorName colorName) { GUILayout.BeginHorizontal(); { Icon.Draw(Styles.GetStyle(iconStyleName), Bar.Height(Size.XL), Bar.Height(Size.XL), colorName); GUILayout.Space(Properties.Space(4)); GUILayout.BeginVertical(GUILayout.Height(Bar.Height(Size.XL))); { GUILayout.Space(-Properties.Space(2)); Label.Draw(mainTitle, Size.XL, colorName, Bar.Height(Size.M)); GUILayout.Space(Properties.Space()); Divider.Draw(Divider.Type.One, colorName); GUI.color = GUI.color.WithAlpha(0.8f); Label.Draw(subTitle, Size.S, colorName, Bar.Height(Size.M)); GUI.color = GUI.color.WithAlpha(1f); } GUILayout.EndVertical(); } GUILayout.EndHorizontal(); }
private void DrawAboutProduct(Styles.StyleName iconStyleName, string productName, string subtitle, string about, ColorName colorName) { DGUI.WindowUtils.DrawIconTitle(iconStyleName, productName, subtitle, colorName); DrawDynamicViewVerticalSpace(0.5f); GUILayout.BeginHorizontal(); { GUILayout.Space(DGUI.Bar.Height(Size.XL) + DGUI.Properties.Space(4)); GUILayout.BeginVertical(); { GUI.color = DGUI.Colors.TextColor(colorName); DGUI.Colors.SetDisabledGUIColorAlpha(); EditorGUILayout.LabelField(about, new GUIStyle(DGUI.Label.Style()) { wordWrap = true }); DGUI.Colors.SetNormalGUIColorAlpha(); GUI.color = InitialGUIColor; } GUILayout.EndVertical(); } GUILayout.EndHorizontal(); }