Skip to content

Commit

Permalink
dx: improve app-logo resolution on desktop top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Nov 4, 2022
1 parent 92d8d4b commit cbee9e7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ Files: test/apple-app-store-demo/blobs/sha256/*/*
Copyright: 2020 The Manyverse Authors
License: CC-BY-SA-4.0

Files: images/app-logo-*.png
Copyright: 2019 The Manyverse Authors
License: CC-BY-SA-4.0

Files: images/bluetooth*.png
Copyright: 2021 Google, Inc
License: Apache-2.0
Expand Down
Binary file added images/app-logo-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added images/app-logo-30.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 added images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/frontend/screens/desktop-frame/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ export default function view(
: h(View, {key: 'alc', style: styles.appLogoContainer}, [
h(Image, {
style: styles.appLogo,
source: getImg(require('~images/app-logo.png')),
source: getImg(
window.devicePixelRatio > 1
? require('~images/[email protected]')
: require('~images/app-logo-24.png'),
),
}),
]),
]),
Expand Down

0 comments on commit cbee9e7

Please sign in to comment.