From a15044233ecdcc0ed18cd5a40952e4ba0d4811e9 Mon Sep 17 00:00:00 2001 From: maj00r Date: Sat, 22 Aug 2026 23:16:27 +0200 Subject: [PATCH] Add window icon, make the title bar draggable and drop the full-screen caption button Use the Starter icon for the window and the executable; the whole caption strip drags the window. Extending the client area makes Avalonia 12 add an extra full-screen toggle to the window chrome (which lives in its own host, so it is not reachable from the window's visual tree); it is hidden globally in App.axaml via its WindowDecorationProperties.ElementRole. Standard minimize / maximize / close are kept. --- StarterNG/App.axaml | 10 ++++++++++ StarterNG/Assets/starter.ico | Bin 0 -> 9662 bytes StarterNG/MainWindow.axaml | 36 +++++++++++++++++------------------ StarterNG/StarterNG.csproj | 3 +++ 4 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 StarterNG/Assets/starter.ico diff --git a/StarterNG/App.axaml b/StarterNG/App.axaml index a347f53..8105cd8 100644 --- a/StarterNG/App.axaml +++ b/StarterNG/App.axaml @@ -1,6 +1,7 @@ @@ -10,6 +11,15 @@ + + + diff --git a/StarterNG/Assets/starter.ico b/StarterNG/Assets/starter.ico new file mode 100644 index 0000000000000000000000000000000000000000..2008b768b8341fa44e9c0b0ebf92bc20c207c75e GIT binary patch literal 9662 zcmeHMU1%It6uz^Y&1Unn6OtOKg|4kFwzNV;MMR-An@x7Nsg{=5Hl(yqg3{ufLhJ6# zZklw9C7>0m_$CPIxFS*lR)o-pA_Wy6`le)CNTin1wOWle+3`C`?z$w|oio!}j4%_v zoXNf4Ip@3Q-nsJ=Ar$=V*dg%yVe!#sA-aSRTL3hPqX4yghgSiw0$v4HTLpH#A*LMS zGW;$8BR~RJ!yOyA>wp*gw9s3y(>BR zxi4`R&aa*yP;d`@o1vZdlZzB?=CbVar~kw<=(#0^@qWAbslzSJ33=p@Nd_6)Dt(3AGDYXt7CM5grxsgGk{c_*nPGA$>fY2`2OI56&y_n(fa zwc^M1&~u166-^7118DyiJo;4T=;$Brh$6-{?iir$8*o>=CJvl=^jXYnk)s=&In3$1 z1Gz`q90{**dj3?`dT9EJI|hvRN34-ZMF;^s4*=5~?ePD7cUCR$?Uiwyo)6?U`caP& z)OVIS4w{GZ{tDe`j&^YF_UgfyQ=L|Ry;|@Xa&Y&IT{0eg#u@tO`t;CV=~FL@y&%V& zgHuuiQ~w3YucyU+-v<4^Fvf6N>R{?WDf#ub(Ei!~T>mF^(C_M=Q)>>P{R2Dt!5wGt z`)lQNvkzKMGW6J8|NGt4SSuE^ziCH5?nz?|{@38F#kH<75e8oY{D5i$+rga#te$y~ z$QmTG;m4qfo*}J#O5kzvE8;Z+q^D#PRyuAVUc1y!wpRsI|K&L!YDK>yklHuD8-Vb8A_!cj8sRtAJO5Ra60U{xI@fD@0^Q2qP~ + standard minimise / maximise / close buttons stay in the top-right corner. + Extending the client area also makes Avalonia 12 add an extra full-screen caption + button; it is hidden in App.axaml via its WindowDecorationProperties.ElementRole. --> @@ -27,27 +30,24 @@ BorderThickness="0,0,0,1"> - - - - - + + + - - - + diff --git a/StarterNG/StarterNG.csproj b/StarterNG/StarterNG.csproj index 113db1b..0b0050e 100644 --- a/StarterNG/StarterNG.csproj +++ b/StarterNG/StarterNG.csproj @@ -8,6 +8,7 @@ enable true app.manifest + Assets\starter.ico true 1.2.0.4 1.2.0.4 @@ -48,6 +49,8 @@ + +