Windows 0.2.22 clean UI-maintenance source delta; no private history or other platform changes

This commit is contained in:
2026-10-13 04:32:04 +00:00
parent 901f27baf5
commit 3ccaea3d52
19 changed files with 393 additions and 74 deletions
+9
View File
@@ -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);