Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
1,215 additions
and
1,152 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -20,4 +20,3 @@ | |
*/ | ||
#pragma once | ||
extern const unsigned char app_icon[]; | ||
extern const unsigned char app_icon_bitmap[]; |
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,7 +1,16 @@ | ||
import sys | ||
from PIL import Image | ||
image = Image.open(sys.argv[1]) | ||
|
||
with open(sys.argv[1], "rb") as icon: | ||
output = "" | ||
formatted = [] | ||
for pixel in image.getdata(): | ||
formatted.extend("0x{0:02X}".format(byte) for byte in pixel) | ||
for i in range(len(formatted)/16 + 1): | ||
print(", ".join(formatted[i*16:(i+1)*16]) + ",") | ||
|
||
"""with open(sys.argv[1], "rb") as icon: | ||
icondata = icon.read() | ||
output = ["0x{0:02X}".format(ord(byte)) for byte in icondata] | ||
for line in range(len(output)/16+1): | ||
print(", ".join(output[line*16:(line+1)*16])+",") | ||
print(", ".join(output[line*16:(line+1)*16])+",")""" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.