Skip to content

Commit

Permalink
switched all images to 96dpi png's to lower memory cost of libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
consp committed Apr 26, 2024
1 parent b8633c2 commit 882c448
Show file tree
Hide file tree
Showing 482 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ks_includes/KlippyGtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def PixbufFromIcon(self, filename, width=None, height=None):
width = width if width is not None else self.img_width
height = height if height is not None else self.img_height
filename = os.path.join(self.themedir, filename)
for ext in ["svg", "png"]:
for ext in ["png"]:
pixbuf = self.PixbufFromFile(f"{filename}.{ext}", int(width), int(height))
if pixbuf is not None:
return pixbuf
Expand Down
4 changes: 2 additions & 2 deletions panels/spoolman.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ def icon(self):
if SpoolmanSpool._spool_icon is None:
klipperscreendir = pathlib.Path(__file__).parent.resolve().parent
_spool_icon_path = os.path.join(
klipperscreendir, "styles", SpoolmanSpool.theme_path, "images", "spool.svg"
klipperscreendir, "styles", SpoolmanSpool.theme_path, "images", "spool.png"
)
if not os.path.isfile(_spool_icon_path):
_spool_icon_path = os.path.join(klipperscreendir, "styles", "spool.svg")
_spool_icon_path = os.path.join(klipperscreendir, "styles", "spool.png")
SpoolmanSpool._spool_icon = pathlib.Path(_spool_icon_path).read_text()

loader = GdkPixbuf.PixbufLoader()
Expand Down
2 changes: 1 addition & 1 deletion screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def __init__(self, args):
self.show_cursor = self._config.get_main_config().getboolean("show_cursor", fallback=False)
self.gtk = KlippyGtk(self)
self.init_style()
self.set_icon_from_file(os.path.join(klipperscreendir, "styles", "icon.svg"))
self.set_icon_from_file(os.path.join(klipperscreendir, "styles", "icon.png"))

self.base_panel = BasePanel(self, title="Base Panel")
self.add(self.base_panel.main_grid)
Expand Down
Binary file added styles/circle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/arrow-down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/arrow-left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/arrow-right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/arrow-up.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/back.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/backspace.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-b-l.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-b-m.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-b-r.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-l-m.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-r-m.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-t-l.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-t-m.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level-t-r.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-level.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed-mesh.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/bed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/camera.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/camera2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/cancel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/ccw.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/clock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/complete.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/console.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/colorized/images/cool-down.png
Binary file added styles/colorized/images/custom-script.png
Binary file added styles/colorized/images/cw.png
Binary file added styles/colorized/images/decrease.png
Binary file added styles/colorized/images/delete.png
Binary file added styles/colorized/images/emergency.png
Binary file added styles/colorized/images/extrude.png
Binary file added styles/colorized/images/extruder-0.png
Binary file added styles/colorized/images/extruder-1.png
Binary file added styles/colorized/images/extruder-10.png
Binary file added styles/colorized/images/extruder-11.png
Binary file added styles/colorized/images/extruder-2.png
Binary file added styles/colorized/images/extruder-3.png
Binary file added styles/colorized/images/extruder-4.png
Binary file added styles/colorized/images/extruder-5.png
Binary file added styles/colorized/images/extruder-6.png
Binary file added styles/colorized/images/extruder-7.png
Binary file added styles/colorized/images/extruder-8.png
Binary file added styles/colorized/images/extruder-9.png
Binary file added styles/colorized/images/extruder.png
Binary file added styles/colorized/images/fan-on.png
Binary file added styles/colorized/images/fan.png
Binary file added styles/colorized/images/filament.png
Binary file added styles/colorized/images/file.png
Binary file added styles/colorized/images/files.png
Binary file added styles/colorized/images/fine-tune.png
Binary file added styles/colorized/images/flow+.png
Binary file added styles/colorized/images/flow-.png
Binary file added styles/colorized/images/folder.png
Binary file added styles/colorized/images/hashtag.png
Binary file added styles/colorized/images/heat-up.png
Binary file added styles/colorized/images/heater.png
Binary file added styles/colorized/images/home-x.png
Binary file added styles/colorized/images/home-y.png
Binary file added styles/colorized/images/home-z.png
Binary file added styles/colorized/images/home.png
Binary file added styles/colorized/images/hourglass.png
Binary file added styles/colorized/images/increase.png
Binary file added styles/colorized/images/info.png
Binary file added styles/colorized/images/klipper.png
Binary file added styles/colorized/images/light.png
Binary file added styles/colorized/images/load.png
Binary file added styles/colorized/images/main.png
Binary file added styles/colorized/images/motor-off.png
Binary file added styles/colorized/images/move.png
Binary file added styles/colorized/images/network.png
Binary file added styles/colorized/images/notifications.png
Binary file added styles/colorized/images/notifications_active.png
Binary file added styles/colorized/images/pause.png
Binary file added styles/colorized/images/print.png
Binary file added styles/colorized/images/refresh.png
Binary file added styles/colorized/images/resume.png
Binary file added styles/colorized/images/retract.png
Binary file added styles/colorized/images/sd.png
Binary file added styles/colorized/images/settings.png
Binary file added styles/colorized/images/shuffle.png
Binary file added styles/colorized/images/shutdown.png
Binary file added styles/colorized/images/speed+.png
Binary file added styles/colorized/images/speed-.png
Binary file added styles/colorized/images/spool.png
Binary file added styles/colorized/images/spoolman.png
Binary file added styles/colorized/images/stop.png
Binary file added styles/colorized/images/toolchanger.png
Binary file added styles/colorized/images/warning.png
Binary file added styles/colorized/images/wifi_excellent.png
Binary file added styles/colorized/images/wifi_fair.png
Binary file added styles/colorized/images/wifi_good.png
Binary file added styles/colorized/images/wifi_weak.png
Binary file added styles/colorized/images/z-closer.png
Binary file added styles/colorized/images/z-farther.png
Binary file added styles/colorized/images/z-tilt.png
Binary file added styles/icon.png
Binary file added styles/material-dark/images/arrow-down.png
Binary file added styles/material-dark/images/arrow-left.png
Binary file added styles/material-dark/images/arrow-right.png
Binary file added styles/material-dark/images/arrow-up.png
Binary file added styles/material-dark/images/back.png
Binary file added styles/material-dark/images/backspace.png
Binary file added styles/material-dark/images/bed-level-b-l.png
Binary file added styles/material-dark/images/bed-level-b-m.png
Binary file added styles/material-dark/images/bed-level-b-r.png
Binary file added styles/material-dark/images/bed-level-l-m.png
Binary file added styles/material-dark/images/bed-level-r-m.png
Binary file added styles/material-dark/images/bed-level-t-l.png
Binary file added styles/material-dark/images/bed-level-t-m.png
Binary file added styles/material-dark/images/bed-level-t-r.png
Binary file added styles/material-dark/images/bed-level.png
Binary file added styles/material-dark/images/bed-mesh.png
Binary file added styles/material-dark/images/bed.png
Binary file added styles/material-dark/images/camera.png
Binary file added styles/material-dark/images/cancel.png
Binary file added styles/material-dark/images/ccw.png
Binary file added styles/material-dark/images/clock.png
Binary file added styles/material-dark/images/complete.png
Binary file added styles/material-dark/images/console.png
Binary file added styles/material-dark/images/cool-down.png
Binary file added styles/material-dark/images/custom-script.png
Binary file added styles/material-dark/images/cw.png
Binary file added styles/material-dark/images/decrease.png
Binary file added styles/material-dark/images/delete.png
Binary file added styles/material-dark/images/emergency.png
Binary file added styles/material-dark/images/extrude.png
Binary file added styles/material-dark/images/extruder-0.png
Binary file added styles/material-dark/images/extruder-1.png
Binary file added styles/material-dark/images/extruder-10.png
Binary file added styles/material-dark/images/extruder-11.png
Binary file added styles/material-dark/images/extruder-2.png
Binary file added styles/material-dark/images/extruder-3.png
Binary file added styles/material-dark/images/extruder-4.png
Binary file added styles/material-dark/images/extruder-5.png
Binary file added styles/material-dark/images/extruder-6.png
Binary file added styles/material-dark/images/extruder-7.png
Binary file added styles/material-dark/images/extruder-8.png
Binary file added styles/material-dark/images/extruder-9.png
Binary file added styles/material-dark/images/extruder.png
Binary file added styles/material-dark/images/fan-on.png
Binary file added styles/material-dark/images/fan.png
Binary file added styles/material-dark/images/filament.png
Binary file added styles/material-dark/images/file.png
Binary file added styles/material-dark/images/files.png
Binary file added styles/material-dark/images/fine-tune.png
Binary file added styles/material-dark/images/flow+.png
Binary file added styles/material-dark/images/flow-.png
Binary file added styles/material-dark/images/folder.png
Binary file added styles/material-dark/images/hashtag.png
Binary file added styles/material-dark/images/heat-up.png
Binary file added styles/material-dark/images/heater.png
Binary file added styles/material-dark/images/home-x.png
Binary file added styles/material-dark/images/home-y.png
Binary file added styles/material-dark/images/home-z.png
Binary file added styles/material-dark/images/home.png
Binary file added styles/material-dark/images/hourglass.png
Binary file added styles/material-dark/images/increase.png
Binary file added styles/material-dark/images/info.png
Binary file added styles/material-dark/images/klipper.png
Binary file added styles/material-dark/images/light.png
Binary file added styles/material-dark/images/load.png
Binary file added styles/material-dark/images/main.png
Binary file added styles/material-dark/images/motor-off.png
Binary file added styles/material-dark/images/move.png
Binary file added styles/material-dark/images/network.png
Binary file added styles/material-dark/images/notifications.png
Binary file added styles/material-dark/images/notifications_active.png
Binary file added styles/material-dark/images/pause.png
Binary file added styles/material-dark/images/print.png
Binary file added styles/material-dark/images/refresh.png
Binary file added styles/material-dark/images/resume.png
Binary file added styles/material-dark/images/retract.png
Binary file added styles/material-dark/images/sd.png
Binary file added styles/material-dark/images/settings.png
Binary file added styles/material-dark/images/shuffle.png
Binary file added styles/material-dark/images/shutdown.png
Binary file added styles/material-dark/images/speed+.png
Binary file added styles/material-dark/images/speed-.png
Binary file added styles/material-dark/images/spool.png
Binary file added styles/material-dark/images/spoolman.png
Binary file added styles/material-dark/images/stop.png
Binary file added styles/material-dark/images/toolchanger.png
Binary file added styles/material-dark/images/warning.png
Binary file added styles/material-dark/images/wifi_excellent.png
Binary file added styles/material-dark/images/wifi_fair.png
Binary file added styles/material-dark/images/wifi_good.png
Binary file added styles/material-dark/images/wifi_weak.png
Binary file added styles/material-dark/images/z-closer.png
Binary file added styles/material-dark/images/z-farther.png
Binary file added styles/material-dark/images/z-tilt.png
Binary file added styles/material-darker/images/arrow-down.png
Binary file added styles/material-darker/images/arrow-left.png
Binary file added styles/material-darker/images/arrow-right.png
Binary file added styles/material-darker/images/arrow-up.png
Binary file added styles/material-darker/images/back.png
Binary file added styles/material-darker/images/backspace.png
Binary file added styles/material-darker/images/bed-level-b-l.png
Binary file added styles/material-darker/images/bed-level-b-m.png
Binary file added styles/material-darker/images/bed-level-b-r.png
Binary file added styles/material-darker/images/bed-level-l-m.png
Binary file added styles/material-darker/images/bed-level-r-m.png
Binary file added styles/material-darker/images/bed-level-t-l.png
Binary file added styles/material-darker/images/bed-level-t-m.png
Binary file added styles/material-darker/images/bed-level-t-r.png
Binary file added styles/material-darker/images/bed-level.png
Binary file added styles/material-darker/images/bed-mesh.png
Binary file added styles/material-darker/images/bed.png
Binary file added styles/material-darker/images/camera.png
Binary file added styles/material-darker/images/cancel.png
Binary file added styles/material-darker/images/ccw.png
Binary file added styles/material-darker/images/clock.png
Binary file added styles/material-darker/images/complete.png
Binary file added styles/material-darker/images/console.png
Binary file added styles/material-darker/images/cool-down.png
Binary file added styles/material-darker/images/custom-script.png
Binary file added styles/material-darker/images/cw.png
Binary file added styles/material-darker/images/decrease.png
Binary file added styles/material-darker/images/delete.png
Binary file added styles/material-darker/images/emergency.png
Binary file added styles/material-darker/images/extrude.png
Binary file added styles/material-darker/images/extruder-0.png
Binary file added styles/material-darker/images/extruder-1.png
Binary file added styles/material-darker/images/extruder-10.png
Binary file added styles/material-darker/images/extruder-11.png
Binary file added styles/material-darker/images/extruder-2.png
Binary file added styles/material-darker/images/extruder-3.png
Binary file added styles/material-darker/images/extruder-4.png
Binary file added styles/material-darker/images/extruder-5.png
Binary file added styles/material-darker/images/extruder-6.png
Binary file added styles/material-darker/images/extruder-7.png
Binary file added styles/material-darker/images/extruder-8.png
Binary file added styles/material-darker/images/extruder-9.png
Binary file added styles/material-darker/images/extruder.png
Binary file added styles/material-darker/images/fan-on.png
Binary file added styles/material-darker/images/fan.png
Binary file added styles/material-darker/images/filament.png
Binary file added styles/material-darker/images/file.png
Binary file added styles/material-darker/images/files.png
Binary file added styles/material-darker/images/fine-tune.png
Binary file added styles/material-darker/images/flow+.png
Binary file added styles/material-darker/images/flow-.png
Binary file added styles/material-darker/images/folder.png
Binary file added styles/material-darker/images/hashtag.png
Binary file added styles/material-darker/images/heat-up.png
Binary file added styles/material-darker/images/heater.png
Binary file added styles/material-darker/images/home-x.png
Binary file added styles/material-darker/images/home-y.png
Binary file added styles/material-darker/images/home-z.png
Binary file added styles/material-darker/images/home.png
Binary file added styles/material-darker/images/hourglass.png
Binary file added styles/material-darker/images/increase.png
Binary file added styles/material-darker/images/info.png
Binary file added styles/material-darker/images/klipper.png
Binary file added styles/material-darker/images/light.png
Binary file added styles/material-darker/images/load.png
Binary file added styles/material-darker/images/main.png
Binary file added styles/material-darker/images/motor-off.png
Binary file added styles/material-darker/images/move.png
Binary file added styles/material-darker/images/network.png
Binary file added styles/material-darker/images/notifications.png
Binary file added styles/material-darker/images/notifications_active.png
Binary file added styles/material-darker/images/pause.png
Binary file added styles/material-darker/images/print.png
Binary file added styles/material-darker/images/refresh.png
Binary file added styles/material-darker/images/resume.png
Binary file added styles/material-darker/images/retract.png
Binary file added styles/material-darker/images/sd.png
Binary file added styles/material-darker/images/settings.png
Binary file added styles/material-darker/images/shuffle.png
Binary file added styles/material-darker/images/shutdown.png
Binary file added styles/material-darker/images/speed+.png
Binary file added styles/material-darker/images/speed-.png
Binary file added styles/material-darker/images/spool.png
Binary file added styles/material-darker/images/spoolman.png
Binary file added styles/material-darker/images/stop.png
Binary file added styles/material-darker/images/toolchanger.png
Binary file added styles/material-darker/images/warning.png
Binary file added styles/material-darker/images/wifi_excellent.png
Binary file added styles/material-darker/images/wifi_fair.png
Binary file added styles/material-darker/images/wifi_good.png
Binary file added styles/material-darker/images/wifi_weak.png
Binary file added styles/material-darker/images/z-closer.png
Binary file added styles/material-darker/images/z-farther.png
Binary file added styles/material-darker/images/z-tilt.png
Binary file added styles/material-light/images/arrow-down.png
Binary file added styles/material-light/images/arrow-left.png
Binary file added styles/material-light/images/arrow-right.png
Binary file added styles/material-light/images/arrow-up.png
Binary file added styles/material-light/images/back.png
Binary file added styles/material-light/images/backspace.png
Binary file added styles/material-light/images/bed-level-b-l.png
Binary file added styles/material-light/images/bed-level-b-m.png
Binary file added styles/material-light/images/bed-level-b-r.png

0 comments on commit 882c448

Please sign in to comment.