接口开始5%

This commit is contained in:
rain
2026-07-22 17:31:33 +08:00
parent eced3d1e6e
commit 9b0ad62df4
426 changed files with 20111 additions and 28472 deletions
+15 -5
View File
@@ -25,9 +25,12 @@ $requiredFiles = @(
'pages/family/f02-publish-feed.vue',
'pages/profile/m01-profile-home.vue',
'pages/notification/n01-message-center.vue',
'static/icons/tab-genealogy.png',
'static/icons/tab-family.png',
'static/icons/tab-profile.png'
'static/assets/foundation/transparent/tab-genealogy.png',
'static/assets/foundation/transparent/tab-genealogy-active.png',
'static/assets/foundation/transparent/tab-family.png',
'static/assets/foundation/transparent/tab-family-active.png',
'static/assets/foundation/transparent/tab-profile.png',
'static/assets/foundation/transparent/tab-profile-active.png'
)
$missing = $requiredFiles | Where-Object { -not (Test-Path (Join-Path $root $_)) }
@@ -68,8 +71,15 @@ foreach ($token in @('$brand-red:', '$ink:', '$paper:', '$gold:')) {
}
Add-Type -AssemblyName System.Drawing
foreach ($icon in @('tab-genealogy.png', 'tab-family.png', 'tab-profile.png')) {
$bitmap = [System.Drawing.Bitmap]::new((Join-Path $root "static/icons/$icon"))
foreach ($icon in @(
'tab-genealogy.png',
'tab-genealogy-active.png',
'tab-family.png',
'tab-family-active.png',
'tab-profile.png',
'tab-profile-active.png'
)) {
$bitmap = [System.Drawing.Bitmap]::new((Join-Path $root "static/assets/foundation/transparent/$icon"))
try {
if (-not [System.Drawing.Image]::IsAlphaPixelFormat($bitmap.PixelFormat)) {
throw "Icon must keep an alpha channel: $icon"