Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install icons into the hicolor theme #121

Merged
merged 1 commit into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gnofract4d.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version=1.0
Name=Gnofract 4D Fractal Generator
Comment=Generate fractal images such as the Mandelbrot set
Exec=gnofract4d %F
Icon=gnofract4d-logo
Icon=gnofract4d
Terminal=false
Type=Application
Categories=GNOME;Graphics;Math;
Expand Down
Binary file added pixmaps/logo/128x128/gnofract4d.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 pixmaps/logo/16x16/gnofract4d.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 pixmaps/logo/256x256/gnofract4d.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 pixmaps/logo/32x32/gnofract4d.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 pixmaps/logo/48x48/gnofract4d.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 pixmaps/logo/64x64/gnofract4d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ def call_package_config(package, option, optional=False):
def get_files(dir, ext):
return [os.path.join(dir, x) for x in os.listdir(dir) if x.endswith(ext)]

def get_icons():
icons = []
for size in 16, 32, 48, 64, 128, 256:
icons.append(('share/icons/hicolor/{0}x{0}/apps'.format(size),
['pixmaps/logo/{0}x{0}/gnofract4d.png'.format(size)]))
return icons

so_extension = distutils.sysconfig.get_config_var("EXT_SUFFIX")

Expand Down Expand Up @@ -227,7 +233,9 @@ def get_files(dir, ext):
]
),
# icon
('share/pixmaps', ['pixmaps/gnofract4d-logo.png']),
('share/pixmaps', ['pixmaps/logo/48x48/gnofract4d.png']),
# theme icons
*get_icons(),
# .desktop file
('share/applications', ['gnofract4d.desktop']),
# MIME type registration
Expand Down