forked from novnc/noVNC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up page icon ("favicon") handling
Makes sure we use standardised formats and references, and makes sure we have all the sizes we might need.
- Loading branch information
1 parent
267d1ed
commit 2b4e6ed
Showing
23 changed files
with
394 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
app | ||
core | ||
favicon.ico | ||
.gitmodules | ||
node_modules | ||
.* | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
ICONS := \ | ||
novnc-16x16.png \ | ||
novnc-24x24.png \ | ||
novnc-32x32.png \ | ||
novnc-48x48.png \ | ||
novnc-64x64.png | ||
|
||
ANDROID_LAUNCHER := \ | ||
novnc-48x48.png \ | ||
novnc-72x72.png \ | ||
novnc-96x96.png \ | ||
novnc-144x144.png \ | ||
novnc-192x192.png \ | ||
novnc-512x512.png | ||
|
||
IPHONE_LAUNCHER := \ | ||
novnc-60x60.png \ | ||
novnc-120x120.png | ||
|
||
IPAD_LAUNCHER := \ | ||
novnc-76x76.png \ | ||
novnc-152x152.png | ||
|
||
ALL_ICONS := $(ICONS) $(ANDROID_LAUNCHER) $(IPHONE_LAUNCHER) $(IPAD_LAUNCHER) | ||
|
||
all: $(ALL_ICONS) | ||
|
||
novnc-16x16.png: novnc-icon-sm.svg | ||
convert -density 90 \ | ||
-background transparent "$<" "$@" | ||
novnc-24x24.png: novnc-icon-sm.svg | ||
convert -density 135 \ | ||
-background transparent "$<" "$@" | ||
novnc-32x32.png: novnc-icon-sm.svg | ||
convert -density 180 \ | ||
-background transparent "$<" "$@" | ||
|
||
novnc-%.png: novnc-icon.svg | ||
convert -density $$[`echo $* | cut -d x -f 1` * 90 / 48] \ | ||
-background transparent "$<" "$@" | ||
|
||
clean: | ||
rm -f *.png |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.