修改未完成

This commit is contained in:
rain
2026-07-13 17:31:05 +08:00
parent 965fff1621
commit 355f47976a
95 changed files with 1112 additions and 721 deletions
+11 -11
View File
@@ -4,16 +4,16 @@ $root = Split-Path -Parent $PSScriptRoot
Add-Type -AssemblyName System.Drawing
$backgrounds = @(
'static/assets/backgrounds/auth-ancestral-header-v1.png',
'static/assets/backgrounds/auth-rice-paper-v1.jpg',
'static/assets/backgrounds/auth-ink-scenery-v1.png'
'static/assets/foundation/opaque/auth-header.png',
'static/assets/foundation/opaque/auth-page-paper.jpg',
'static/assets/foundation/transparent/auth-ink-scenery.png'
)
$icons = @(
'static/assets/icons/auth/login-outline-v1.png',
'static/assets/icons/auth/wechat-licensed-v1.png',
'static/assets/icons/auth/auth-button-corner-v1.png',
'static/assets/icons/auth/auth-divider-knot-v1.png',
'static/assets/icons/auth/auth-title-cloud-v1.png'
'static/assets/foundation/transparent/auth-login-outline.png',
'static/assets/foundation/transparent/auth-wechat.png',
'static/assets/foundation/transparent/auth-button-corner.png',
'static/assets/foundation/transparent/auth-divider-knot.png',
'static/assets/foundation/transparent/auth-title-cloud.png'
)
foreach ($asset in $backgrounds + $icons) {
@@ -41,9 +41,9 @@ foreach ($asset in $icons) {
$bitmap.Dispose()
$expectedSize = switch ($asset) {
'static/assets/icons/auth/auth-button-corner-v1.png' { @(160, 160) }
'static/assets/icons/auth/auth-divider-knot-v1.png' { @(160, 96) }
'static/assets/icons/auth/auth-title-cloud-v1.png' { @(200, 120) }
'static/assets/foundation/transparent/auth-button-corner.png' { @(160, 160) }
'static/assets/foundation/transparent/auth-divider-knot.png' { @(160, 96) }
'static/assets/foundation/transparent/auth-title-cloud.png' { @(200, 120) }
default { @(96, 96) }
}
if ($width -ne $expectedSize[0] -or $height -ne $expectedSize[1]) { throw "$asset must be $($expectedSize[0]) x $($expectedSize[1])px." }