Skip to content

Commit

Permalink
Use a new icon
Browse files Browse the repository at this point in the history
I think it looks a bit better than the old one.  I also added a 128x128
version in the assets, so that it looks nicer on ubuntu.
  • Loading branch information
guillaumechereau committed Apr 6, 2018
1 parent ac21a84 commit a0fa28b
Show file tree
Hide file tree
Showing 8 changed files with 806 additions and 277 deletions.
Binary file added data/icons/icon128.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 data/icons/icon16.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 data/icons/icon32.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 data/icons/icon48.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 icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,074 changes: 801 additions & 273 deletions src/assets/icons.inl

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,14 @@ static void load_icon(GLFWimage *image, const char *path)

static void set_window_icon(GLFWwindow *window)
{
GLFWimage icons[3];
GLFWimage icons[4];
int i;
load_icon(&icons[0], "asset://data/icons/icon16.png");
load_icon(&icons[1], "asset://data/icons/icon32.png");
load_icon(&icons[2], "asset://data/icons/icon48.png");
glfwSetWindowIcon(window, 3, icons);
for (i = 0; i < 3; i++) free(icons[i].pixels);
load_icon(&icons[3], "asset://data/icons/icon128.png");
glfwSetWindowIcon(window, 4, icons);
for (i = 0; i < 4; i++) free(icons[i].pixels);
}

#else
Expand Down
2 changes: 1 addition & 1 deletion tools/create_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
if not os.path.exists('data/icons'): os.makedirs('data/icons')
base = PIL.Image.open('icon.png').convert('RGBA')

for size in [16, 32, 48]:
for size in [16, 32, 48, 128]:
img = base.resize((size, size), PIL.Image.BILINEAR)
img.save('data/icons/icon%d.png' % size)

0 comments on commit a0fa28b

Please sign in to comment.