Windows 0.2.22 clean UI-maintenance source delta; no private history or other platform changes
This commit is contained in:
@@ -155,6 +155,7 @@ internal sealed class ScenicPanel : Panel
|
||||
internal bool ComposeChildren { get; set; }
|
||||
internal bool FooterArtwork { get; set; }
|
||||
internal bool LoginArtwork { get; set; }
|
||||
internal bool ParentArtwork { get; set; }
|
||||
protected override CreateParams CreateParams
|
||||
{
|
||||
get
|
||||
@@ -167,6 +168,14 @@ internal sealed class ScenicPanel : Panel
|
||||
internal ScenicPanel() { DoubleBuffered = true; ResizeRedraw = true; BackColor = Brand.Surface; }
|
||||
protected override void OnPaintBackground(PaintEventArgs e)
|
||||
{
|
||||
if (ParentArtwork && Parent is { } parent)
|
||||
{
|
||||
var state = e.Graphics.Save();
|
||||
e.Graphics.TranslateTransform(-Left, -Top);
|
||||
InvokePaintBackground(parent, new PaintEventArgs(e.Graphics, parent.ClientRectangle));
|
||||
e.Graphics.Restore(state);
|
||||
return;
|
||||
}
|
||||
if (!LoginArtwork)
|
||||
{
|
||||
ScenicTheme.Backdrop(e.Graphics, ClientSize, DeviceDpi, footer: FooterArtwork);
|
||||
|
||||
Reference in New Issue
Block a user