forked from OpenBrickProtocolFoundation/oopetris
-
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.
Merge pull request OpenBrickProtocolFoundation#109 from mgerhold/logo
Add New Logo
- Loading branch information
Showing
25 changed files
with
41,423 additions
and
11 deletions.
There are no files selected for viewing
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.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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,17 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
APP_NAME="com.github.mgerhold.OOPetris" | ||
|
||
function process_icon() { | ||
SRC=$1 | ||
RES=$(echo "$SRC" | awk -F_ '{ print $2 }' | awk -F. '{ print $1 }' | awk '{ print $1 }') | ||
|
||
DEST_DIR="/app/share/icons/hicolor/${RES}x${RES}/apps" | ||
mkdir -p "$DEST_DIR" | ||
cp "$SRC" "$DEST_DIR/com.github.mgerhold.OOPetris.png" | ||
cp "$SRC" "$DEST_DIR/$APP_NAME.png" | ||
} | ||
|
||
export -f process_icon | ||
|
||
#TODO get real logo and use more sizes! | ||
find ../assets/icon/ -name "test_*.png" -exec bash -c 'process_icon "$@";' -- {} \; | ||
find ../assets/icon/ -name "icon_*.png" -exec bash -c 'process_icon "$@";' -- {} \; | ||
|
||
## TODO svg /app/share/icons/hicolor/scalable/apps/com.github.mgerhold.OOPetris.svg | ||
mkdir -p "/app/share/icons/hicolor/scalable/apps/" | ||
cp "../assets/icon/OOPetris.svg" "/app/share/icons/hicolor/scalable/apps/$APP_NAME.svg" |
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,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
for RES in 24 48 64 72 96 128 144 160 192 256 512; do | ||
|
||
inkscape "--export-width=$RES" "--export-height=$RES" --export-type=png "--export-filename=../assets/icon/icon_$RES.png" "../assets/OOPetris.svg" | ||
|
||
done | ||
|
||
#TODO: this doesn't work correctly! | ||
MAX_RES="4096" | ||
inkscape "--export-width=$MAX_RES" "--export-height=$MAX_RES" --export-type=svg "--export-filename=../assets/icon/OOPetris.svg" "../assets/OOPetris.svg" |