From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 95BA285948 for ; Mon, 20 Dec 2021 16:38:44 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8886A1FA03 for ; Mon, 20 Dec 2021 16:38:44 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 4957A1F9F8 for ; Mon, 20 Dec 2021 16:38:42 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 1E2B24509C for ; Mon, 20 Dec 2021 16:38:42 +0100 (CET) From: Aaron Lauterer To: pve-devel@lists.proxmox.com Date: Mon, 20 Dec 2021 16:38:38 +0100 Message-Id: <20211220153839.537253-1-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.022 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH futter_frontend 1/2] fix android splash screen logo X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2021 15:38:44 -0000 The new splash screen that came with Android 12 has stricter rules regarding the size and form of the logo in the splash screen [0]. We do need to have a drawable that is a square with the logo / icon in the center. That means the current approach with the png image resulted in it being scaled to the full width and the circular mask cut if off. The result was a broken looking splash screen. I opted for the stacked variant of the logo and saved it as a vector drawable in the xml format that android wants. [0] https://developer.android.com/guide/topics/ui/splash-screen Signed-off-by: Aaron Lauterer --- .../main/res/drawable/proxmox_splash_logo.xml | 69 +++++++++++++++++++ .../app/src/main/res/values-night/styles.xml | 2 +- android/app/src/main/res/values/styles.xml | 2 +- 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 android/app/src/main/res/drawable/proxmox_splash_logo.x= ml diff --git a/android/app/src/main/res/drawable/proxmox_splash_logo.xml b/an= droid/app/src/main/res/drawable/proxmox_splash_logo.xml new file mode 100644 index 0000000..7bf4f6b --- /dev/null +++ b/android/app/src/main/res/drawable/proxmox_splash_logo.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app= /src/main/res/values-night/styles.xml index 9815690..624f304 100644 --- a/android/app/src/main/res/values-night/styles.xml +++ b/android/app/src/main/res/values-night/styles.xml @@ -9,7 +9,7 @@ =20 diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/m= ain/res/values/styles.xml index 9815690..624f304 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -9,7 +9,7 @@ =20 --=20 2.30.2