Skip to content

Commit

Permalink
Merge pull request #571 from meetqy/567-bug-pwa-ios-app-logo-显示太小
Browse files Browse the repository at this point in the history
👌 IMPROVE: PWA 应用
  • Loading branch information
meetqy authored Dec 13, 2023
2 parents 6e18b5c + 5612c05 commit 29ca022
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions icons/create_icon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ convert './icon_512x512@2x.png' \
\( +clone -resize x32 -write './icon_32x32.png' +delete \) \
\( +clone -resize x64 -write './icon_32x32@2x.png' +delete \) \
\( +clone -resize x128 -write './icon_128x128.png' +delete \) \
\( +clone -resize x192 -write './icon_192x192.png' +delete \) \
\( +clone -resize x256 -write './icon_128x128@2x.png' +delete \) \
\( +clone -resize x256 -write './icon_256x256.png' +delete \) \
\( +clone -resize x512 -write './icon_256x256@2x.png' +delete \) \
Expand Down
Binary file modified themes/gallery/public/icon_192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified themes/gallery/public/icon_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions themes/gallery/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export const metadata: Metadata = {
title: "Gallery",
description: "RAO.PICS 默认主题",
manifest: "/manifest.json",
// IOS 状态栏颜色
other: {
"mobile-web-app-capable": "yes",
"apple-mobile-web-app-status-bar-style": "black-translucent",
},
};

export default function Layout(props: { children: React.ReactNode }) {
Expand Down
2 changes: 1 addition & 1 deletion themes/gallery/src/app/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function manifest(): MetadataRoute.Manifest {
short_name: "Gallery",
description: "RAO.PICS 默认主题",
start_url: "/",
display: "minimal-ui",
display: "standalone",
icons: [
{
src: "/icon_192x192.png",
Expand Down

0 comments on commit 29ca022

Please sign in to comment.