From 2b59cbf0f14387a76652a528313a1d9e9e56f25f Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Wed, 10 May 2023 07:43:40 -0500 Subject: [PATCH] Organize the style groups of UI controls --- Source/Engine/UI/GUI/Common/Button.cs | 78 +++++++++++----------- Source/Engine/UI/GUI/Common/CheckBox.cs | 20 +++--- Source/Engine/UI/GUI/Common/Dropdown.cs | 26 ++++---- Source/Engine/UI/GUI/Common/Image.cs | 6 +- Source/Engine/UI/GUI/Common/Label.cs | 14 ++-- Source/Engine/UI/GUI/Common/ProgressBar.cs | 6 +- Source/Engine/UI/GUI/Common/TextBox.cs | 12 ++-- Source/Engine/UI/GUI/Common/TextBoxBase.cs | 14 ++-- Source/Engine/UI/GUI/Control.cs | 2 +- Source/Engine/UI/GUI/Panels/DropPanel.cs | 70 +++++++++---------- 10 files changed, 125 insertions(+), 123 deletions(-) diff --git a/Source/Engine/UI/GUI/Common/Button.cs b/Source/Engine/UI/GUI/Common/Button.cs index 0e0d29615..41ea3a0d4 100644 --- a/Source/Engine/UI/GUI/Common/Button.cs +++ b/Source/Engine/UI/GUI/Common/Button.cs @@ -42,7 +42,7 @@ namespace FlaxEngine.GUI /// /// Gets or sets the font used to draw button text. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Text Style"), EditorOrder(2022), ExpandGroups] public FontReference Font { get => _font; @@ -52,14 +52,50 @@ namespace FlaxEngine.GUI /// /// Gets or sets the custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("Custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] + [EditorDisplay("Text Style"), EditorOrder(2021), Tooltip("Custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] public MaterialBase TextMaterial { get; set; } /// /// Gets or sets the color used to draw button text. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Text Style"), EditorOrder(2020)] public Color TextColor; + + /// + /// Gets or sets the brush used for background drawing. + /// + [EditorDisplay("Background Style"), EditorOrder(1999), Tooltip("The brush used for background drawing."), ExpandGroups] + public IBrush BackgroundBrush { get; set; } + + /// + /// Gets or sets the background color when button is highlighted. + /// + [EditorDisplay("Background Style"), EditorOrder(2001)] + public Color BackgroundColorHighlighted { get; set; } + + /// + /// Gets or sets the background color when button is selected. + /// + [EditorDisplay("Background Style"), EditorOrder(2002)] + public Color BackgroundColorSelected { get; set; } + + /// + /// Gets or sets the color of the border. + /// + [EditorDisplay("Border Style"), EditorOrder(2010), ExpandGroups] + public Color BorderColor { get; set; } + + /// + /// Gets or sets the border color when button is highlighted. + /// + [EditorDisplay("Border Style"), EditorOrder(2011)] + public Color BorderColorHighlighted { get; set; } + + /// + /// Gets or sets the border color when button is selected. + /// + [EditorDisplay("Border Style"), EditorOrder(2012)] + public Color BorderColorSelected { get; set; } /// /// Event fired when user clicks on the button. @@ -81,42 +117,6 @@ namespace FlaxEngine.GUI /// public event Action HoverEnd; - /// - /// Gets or sets the brush used for background drawing. - /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The brush used for background drawing.")] - public IBrush BackgroundBrush { get; set; } - - /// - /// Gets or sets the color of the border. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public Color BorderColor { get; set; } - - /// - /// Gets or sets the background color when button is selected. - /// - [EditorDisplay("Style"), EditorOrder(2010)] - public Color BackgroundColorSelected { get; set; } - - /// - /// Gets or sets the border color when button is selected. - /// - [EditorDisplay("Style"), EditorOrder(2020)] - public Color BorderColorSelected { get; set; } - - /// - /// Gets or sets the background color when button is highlighted. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public Color BackgroundColorHighlighted { get; set; } - - /// - /// Gets or sets the border color when button is highlighted. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public Color BorderColorHighlighted { get; set; } - /// /// Gets a value indicating whether this button is being pressed (by mouse or touch). /// diff --git a/Source/Engine/UI/GUI/Common/CheckBox.cs b/Source/Engine/UI/GUI/Common/CheckBox.cs index ab689bfc3..0f197422b 100644 --- a/Source/Engine/UI/GUI/Common/CheckBox.cs +++ b/Source/Engine/UI/GUI/Common/CheckBox.cs @@ -107,34 +107,34 @@ namespace FlaxEngine.GUI } } - /// - /// Gets or sets the color of the checkbox icon. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public Color ImageColor { get; set; } - /// /// Gets or sets the color of the border. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Border Style"), EditorOrder(2010), ExpandGroups] public Color BorderColor { get; set; } /// /// Gets or sets the border color when checkbox is hovered. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Border Style"), EditorOrder(2011)] public Color BorderColorHighlighted { get; set; } + + /// + /// Gets or sets the color of the checkbox icon. + /// + [EditorDisplay("Image Style"), EditorOrder(2020), ExpandGroups] + public Color ImageColor { get; set; } /// /// Gets or sets the image used to render checkbox checked state. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The image used to render checkbox checked state.")] + [EditorDisplay("Image Style"), EditorOrder(2021), Tooltip("The image used to render checkbox checked state.")] public IBrush CheckedImage { get; set; } /// /// Gets or sets the image used to render checkbox intermediate state. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The image used to render checkbox intermediate state.")] + [EditorDisplay("Image Style"), EditorOrder(2022), Tooltip("The image used to render checkbox intermediate state.")] public IBrush IntermediateImage { get; set; } /// diff --git a/Source/Engine/UI/GUI/Common/Dropdown.cs b/Source/Engine/UI/GUI/Common/Dropdown.cs index 80d4beb02..6ad962d6d 100644 --- a/Source/Engine/UI/GUI/Common/Dropdown.cs +++ b/Source/Engine/UI/GUI/Common/Dropdown.cs @@ -246,79 +246,79 @@ namespace FlaxEngine.GUI /// /// Gets or sets the font used to draw text. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Text Style"), EditorOrder(2021)] public FontReference Font { get; set; } /// /// Gets or sets the custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("Custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] + [EditorDisplay("Text Style"), EditorOrder(2022), Tooltip("Custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] public MaterialBase FontMaterial { get; set; } /// /// Gets or sets the color of the text. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Text Style"), EditorOrder(2020), ExpandGroups] public Color TextColor { get; set; } /// /// Gets or sets the color of the border. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Border Style"), EditorOrder(2010), ExpandGroups] public Color BorderColor { get; set; } /// /// Gets or sets the background color when dropdown popup is opened. /// - [EditorDisplay("Style"), EditorOrder(2010)] + [EditorDisplay("Background Style"), EditorOrder(2002)] public Color BackgroundColorSelected { get; set; } /// /// Gets or sets the border color when dropdown popup is opened. /// - [EditorDisplay("Style"), EditorOrder(2020)] + [EditorDisplay("Border Style"), EditorOrder(2012)] public Color BorderColorSelected { get; set; } /// /// Gets or sets the background color when dropdown is highlighted. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Background Style"), EditorOrder(2001), ExpandGroups] public Color BackgroundColorHighlighted { get; set; } /// /// Gets or sets the border color when dropdown is highlighted. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Border Style"), EditorOrder(2011)] public Color BorderColorHighlighted { get; set; } /// /// Gets or sets the image used to render dropdown drop arrow icon. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The image used to render dropdown drop arrow icon.")] + [EditorDisplay("Icon Style"), EditorOrder(2033), Tooltip("The image used to render dropdown drop arrow icon.")] public IBrush ArrowImage { get; set; } /// /// Gets or sets the color used to render dropdown drop arrow icon. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color used to render dropdown drop arrow icon.")] + [EditorDisplay("Icon Style"), EditorOrder(2030), Tooltip("The color used to render dropdown drop arrow icon."), ExpandGroups] public Color ArrowColor { get; set; } /// /// Gets or sets the color used to render dropdown drop arrow icon (menu is opened). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color used to render dropdown drop arrow icon (menu is opened).")] + [EditorDisplay("Icon Style"), EditorOrder(2032), Tooltip("The color used to render dropdown drop arrow icon (menu is opened).")] public Color ArrowColorSelected { get; set; } /// /// Gets or sets the color used to render dropdown drop arrow icon (menu is highlighted). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color used to render dropdown drop arrow icon (menu is highlighted).")] + [EditorDisplay("Icon Style"), EditorOrder(2031), Tooltip("The color used to render dropdown drop arrow icon (menu is highlighted).")] public Color ArrowColorHighlighted { get; set; } /// /// Gets or sets the image used to render dropdown checked item icon. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The image used to render dropdown checked item icon.")] + [EditorDisplay("Icon Style"), EditorOrder(2034), Tooltip("The image used to render dropdown checked item icon.")] public IBrush CheckedImage { get; set; } /// diff --git a/Source/Engine/UI/GUI/Common/Image.cs b/Source/Engine/UI/GUI/Common/Image.cs index 98113b00c..f911664f6 100644 --- a/Source/Engine/UI/GUI/Common/Image.cs +++ b/Source/Engine/UI/GUI/Common/Image.cs @@ -25,19 +25,19 @@ namespace FlaxEngine.GUI /// /// Gets or sets the color used to multiply the image pixels. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Image Style"), EditorOrder(2010), ExpandGroups] public Color Color { get; set; } = Color.White; /// /// Gets or sets the color used to multiply the image pixels when mouse is over the image. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Image Style"), EditorOrder(2011)] public Color MouseOverColor { get; set; } = Color.White; /// /// Gets or sets the color used to multiply the image pixels when control is disabled. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Image Style"), EditorOrder(2012)] public Color DisabledTint { get; set; } = Color.Gray; /// diff --git a/Source/Engine/UI/GUI/Common/Label.cs b/Source/Engine/UI/GUI/Common/Label.cs index b64764a40..2779dfdea 100644 --- a/Source/Engine/UI/GUI/Common/Label.cs +++ b/Source/Engine/UI/GUI/Common/Label.cs @@ -47,37 +47,37 @@ namespace FlaxEngine.GUI /// /// Gets or sets the color of the text. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the text.")] + [EditorDisplay("Text Style"), EditorOrder(2010), Tooltip("The color of the text."), ExpandGroups] public Color TextColor { get; set; } /// /// Gets or sets the color of the text when it is highlighted (mouse is over). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the text when it is highlighted (mouse is over).")] + [EditorDisplay("Text Style"), EditorOrder(2011), Tooltip("The color of the text when it is highlighted (mouse is over).")] public Color TextColorHighlighted { get; set; } /// /// Gets or sets the horizontal text alignment within the control bounds. /// - [EditorDisplay("Style"), EditorOrder(2010), Tooltip("The horizontal text alignment within the control bounds.")] + [EditorDisplay("Text Style"), EditorOrder(2020), Tooltip("The horizontal text alignment within the control bounds.")] public TextAlignment HorizontalAlignment { get; set; } = TextAlignment.Center; /// /// Gets or sets the vertical text alignment within the control bounds. /// - [EditorDisplay("Style"), EditorOrder(2020), Tooltip("The vertical text alignment within the control bounds.")] + [EditorDisplay("Text Style"), EditorOrder(2021), Tooltip("The vertical text alignment within the control bounds.")] public TextAlignment VerticalAlignment { get; set; } = TextAlignment.Center; /// /// Gets or sets the text wrapping within the control bounds. /// - [EditorDisplay("Style"), EditorOrder(2030), Tooltip("The text wrapping within the control bounds.")] + [EditorDisplay("Text Style"), EditorOrder(2022), Tooltip("The text wrapping within the control bounds.")] public TextWrapping Wrapping { get; set; } = TextWrapping.NoWrap; /// /// Gets or sets the font. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Text Style"), EditorOrder(2023)] public FontReference Font { get => _font; @@ -99,7 +99,7 @@ namespace FlaxEngine.GUI /// /// Gets or sets the custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Text Style"), EditorOrder(2024)] public MaterialBase Material { get; set; } /// diff --git a/Source/Engine/UI/GUI/Common/ProgressBar.cs b/Source/Engine/UI/GUI/Common/ProgressBar.cs index fa76d9d26..a742d3b43 100644 --- a/Source/Engine/UI/GUI/Common/ProgressBar.cs +++ b/Source/Engine/UI/GUI/Common/ProgressBar.cs @@ -99,19 +99,19 @@ namespace FlaxEngine.GUI /// /// Gets or sets the margin for the progress bar rectangle within the control bounds. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The margin for the progress bar rectangle within the control bounds.")] + [EditorDisplay("Bar Style"), EditorOrder(2011), Tooltip("The margin for the progress bar rectangle within the control bounds.")] public Margin BarMargin { get; set; } /// /// Gets or sets the color of the progress bar rectangle. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the progress bar rectangle.")] + [EditorDisplay("Bar Style"), EditorOrder(2010), Tooltip("The color of the progress bar rectangle."), ExpandGroups] public Color BarColor { get; set; } /// /// Gets or sets the brush used for progress bar drawing. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The brush used for progress bar drawing.")] + [EditorDisplay("Bar Style"), EditorOrder(2012), Tooltip("The brush used for progress bar drawing.")] public IBrush BarBrush { get; set; } /// diff --git a/Source/Engine/UI/GUI/Common/TextBox.cs b/Source/Engine/UI/GUI/Common/TextBox.cs index 00c381e01..5ec86a94e 100644 --- a/Source/Engine/UI/GUI/Common/TextBox.cs +++ b/Source/Engine/UI/GUI/Common/TextBox.cs @@ -27,7 +27,7 @@ namespace FlaxEngine.GUI /// /// Gets or sets the text wrapping within the control bounds. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The text wrapping within the control bounds.")] + [EditorDisplay("Text Style"), EditorOrder(2023), Tooltip("The text wrapping within the control bounds.")] public TextWrapping Wrapping { get => _layout.TextWrapping; @@ -37,31 +37,31 @@ namespace FlaxEngine.GUI /// /// Gets or sets the font. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorDisplay("Text Style"), EditorOrder(2024)] public FontReference Font { get; set; } /// /// Gets or sets the custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("Custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] + [EditorDisplay("Text Style"), EditorOrder(2025), Tooltip("Custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] public MaterialBase TextMaterial { get; set; } /// /// Gets or sets the color of the text. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the text.")] + [EditorDisplay("Text Style"), EditorOrder(2020), Tooltip("The color of the text."), ExpandGroups] public Color TextColor { get; set; } /// /// Gets or sets the color of the text. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the watermark text.")] + [EditorDisplay("Text Style"), EditorOrder(2021), Tooltip("The color of the watermark text.")] public Color WatermarkTextColor { get; set; } /// /// Gets or sets the color of the selection (Transparent if not used). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the selection (Transparent if not used).")] + [EditorDisplay("Text Style"), EditorOrder(2022), Tooltip("The color of the selection (Transparent if not used).")] public Color SelectionColor { get; set; } /// diff --git a/Source/Engine/UI/GUI/Common/TextBoxBase.cs b/Source/Engine/UI/GUI/Common/TextBoxBase.cs index fb130bf18..9619f98bd 100644 --- a/Source/Engine/UI/GUI/Common/TextBoxBase.cs +++ b/Source/Engine/UI/GUI/Common/TextBoxBase.cs @@ -243,42 +243,43 @@ namespace FlaxEngine.GUI /// /// Gets or sets a value indicating whether you can scroll the text in the text box (eg. with a mouse wheel). /// + [EditorOrder(41)] public bool IsMultilineScrollable { get; set; } = true; /// /// Gets or sets textbox background color when the control is selected (has focus). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The textbox background color when the control is selected (has focus).")] + [EditorDisplay("Background Style"), EditorOrder(2001), Tooltip("The textbox background color when the control is selected (has focus)."), ExpandGroups] public Color BackgroundSelectedColor { get; set; } /// /// Gets or sets the color of the caret (Transparent if not used). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the caret (Transparent if not used).")] + [EditorDisplay("Caret Style"), EditorOrder(2020), Tooltip("The color of the caret (Transparent if not used)."), ExpandGroups] public Color CaretColor { get; set; } /// /// Gets or sets the speed of the caret flashing animation. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The speed of the caret flashing animation.")] + [EditorDisplay("Caret Style"), EditorOrder(2021), Tooltip("The speed of the caret flashing animation.")] public float CaretFlashSpeed { get; set; } = 6.0f; /// /// Gets or sets the speed of the selection background flashing animation. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The speed of the selection background flashing animation.")] + [EditorDisplay("Background Style"), EditorOrder(2002), Tooltip("The speed of the selection background flashing animation.")] public float BackgroundSelectedFlashSpeed { get; set; } = 6.0f; /// /// Gets or sets the color of the border (Transparent if not used). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the border (Transparent if not used).")] + [EditorDisplay("Border Style"), EditorOrder(2010), Tooltip("The color of the border (Transparent if not used)."), ExpandGroups] public Color BorderColor { get; set; } /// /// Gets or sets the color of the border when control is focused (Transparent if not used). /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the border when control is focused (Transparent if not used)")] + [EditorDisplay("Border Style"), EditorOrder(2011), Tooltip("The color of the border when control is focused (Transparent if not used)")] public Color BorderSelectedColor { get; set; } /// @@ -409,6 +410,7 @@ namespace FlaxEngine.GUI /// /// Gets or sets the selection range. /// + [EditorOrder(50)] public TextRange SelectionRange { get => new TextRange(SelectionLeft, SelectionRight); diff --git a/Source/Engine/UI/GUI/Control.cs b/Source/Engine/UI/GUI/Control.cs index 427c1aa8f..49b7f65d3 100644 --- a/Source/Engine/UI/GUI/Control.cs +++ b/Source/Engine/UI/GUI/Control.cs @@ -166,7 +166,7 @@ namespace FlaxEngine.GUI /// /// Gets or sets control background color (transparent color (alpha=0) means no background rendering) /// - [ExpandGroups, EditorDisplay("Style"), EditorOrder(2000), Tooltip("The control background color. Use transparent color (alpha=0) to hide background.")] + [ExpandGroups, EditorDisplay("Background Style"), EditorOrder(2000), Tooltip("The control background color. Use transparent color (alpha=0) to hide background.")] public Color BackgroundColor { get => _backgroundColor; diff --git a/Source/Engine/UI/GUI/Panels/DropPanel.cs b/Source/Engine/UI/GUI/Panels/DropPanel.cs index 409209549..9662f61b9 100644 --- a/Source/Engine/UI/GUI/Panels/DropPanel.cs +++ b/Source/Engine/UI/GUI/Panels/DropPanel.cs @@ -94,49 +94,49 @@ namespace FlaxEngine.GUI } } } - - /// - /// Gets or sets the color used to draw header text. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public Color HeaderTextColor; - - /// - /// Gets or sets the color of the header. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public Color HeaderColor { get; set; } - - /// - /// Gets or sets the color of the header when mouse is over. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public Color HeaderColorMouseOver { get; set; } - - /// - /// Gets or sets the font used to render panel header text. - /// - [EditorDisplay("Style"), EditorOrder(2000)] - public FontReference HeaderTextFont { get; set; } - - /// - /// Gets or sets the custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. - /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("Custom material used to render the header text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] - public MaterialBase HeaderTextMaterial { get; set; } - + /// /// Gets or sets a value indicating whether enable drop down icon drawing. /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorOrder(1)] public bool EnableDropDownIcon { get; set; } /// /// Gets or sets a value indicating whether to enable containment line drawing, /// - [EditorDisplay("Style"), EditorOrder(2000)] + [EditorOrder(2)] public bool EnableContainmentLines { get; set; } = false; + /// + /// Gets or sets the color used to draw header text. + /// + [EditorDisplay("Header Style"), EditorOrder(2010), ExpandGroups] + public Color HeaderTextColor; + + /// + /// Gets or sets the color of the header. + /// + [EditorDisplay("Header Style"), EditorOrder(2011)] + public Color HeaderColor { get; set; } + + /// + /// Gets or sets the color of the header when mouse is over. + /// + [EditorDisplay("Header Style"), EditorOrder(2012)] + public Color HeaderColorMouseOver { get; set; } + + /// + /// Gets or sets the font used to render panel header text. + /// + [EditorDisplay("Header Text Style"), EditorOrder(2020), ExpandGroups] + public FontReference HeaderTextFont { get; set; } + + /// + /// Gets or sets the custom material used to render the text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data. + /// + [EditorDisplay("Header Text Style"), EditorOrder(2021), Tooltip("Custom material used to render the header text. It must has domain set to GUI and have a public texture parameter named Font used to sample font atlas texture with font characters data.")] + public MaterialBase HeaderTextMaterial { get; set; } + /// /// Occurs when mouse right-clicks over the header. /// @@ -192,13 +192,13 @@ namespace FlaxEngine.GUI /// /// Gets or sets the image used to render drop panel drop arrow icon when panel is opened. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The image used to render drop panel drop arrow icon when panel is opened.")] + [EditorDisplay("Icon Style"), EditorOrder(2030), Tooltip("The image used to render drop panel drop arrow icon when panel is opened."), ExpandGroups] public IBrush ArrowImageOpened { get; set; } /// /// Gets or sets the image used to render drop panel drop arrow icon when panel is closed. /// - [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The image used to render drop panel drop arrow icon when panel is closed.")] + [EditorDisplay("Icon Style"), EditorOrder(2031), Tooltip("The image used to render drop panel drop arrow icon when panel is closed.")] public IBrush ArrowImageClosed { get; set; } ///