diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 16:09:04 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 16:18:20 +0100 |
| commit | eb481b4917140e7930a3bafa2ef01852d5fd105f (patch) | |
| tree | 4444c91115a4d3dd6ce0544a85193e64baa0c448 /src/GraphicObjects/Window.cs | |
| parent | ef49ffc63e4f99d0f716b70c600315d41137e506 (diff) | |
file dialog improvments, window title colors property in window class
Diffstat (limited to 'src/GraphicObjects/Window.cs')
| -rw-r--r-- | src/GraphicObjects/Window.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs index 5025b3fb..cb9498ff 100644 --- a/src/GraphicObjects/Window.cs +++ b/src/GraphicObjects/Window.cs @@ -51,6 +51,8 @@ namespace Crow bool _movable; protected bool hoverBorder = false; bool alwaysOnTop = false; + Fill titleBarBackground = Color.UnitedNationsBlue; + Fill titleBarForeground = Color.White; Rectangle savedBounds; bool _minimized = false; @@ -91,6 +93,34 @@ namespace Crow NotifyValueChanged ("Icon", _icon); } } + /// <summary> + /// Background of the title bar if any. + /// </summary> + [XmlAttributeAttribute][DefaultValue("vgradient|0:Onyx|1:UnitedNationsBlue")] + public virtual Fill TitleBarBackground { + get { return titleBarBackground; } + set { + if (titleBarBackground == value) + return; + titleBarBackground = value; + NotifyValueChanged ("TitleBarBackground", titleBarBackground); + RegisterForRedraw (); + } + } + /// <summary> + /// Foreground of the title bar, usualy used for the window caption color. + /// </summary> + [XmlAttributeAttribute][DefaultValue("White")] + public virtual Fill TitleBarForeground { + get { return titleBarForeground; } + set { + if (titleBarForeground == value) + return; + titleBarForeground = value; + NotifyValueChanged ("TitleBarForeground", titleBarForeground); + RegisterForRedraw (); + } + } [XmlAttributeAttribute][DefaultValue(true)] public bool Resizable { get { |