* feature: add leds panel
* Various refactors and improvements
* lint fixes
* led: use more columns for the selector
* leds: name in the title
* mainsail presets
* change sliders to horizontal to avoid visual bug, simplify defaults
* led: add a color preview and simplify methods to fix some issues
* simplify presets move all the logic to the panel
* led: change presets from names to previews
* preview label shows color, add vertical mode
* led: colored previews as rectangles instead of circles
---------
Co-authored-by: alfrix <alfredomonclus@gmail.com>
Refactor post_requrest
Switching to TreeView
More spool info
redesign toggle buttons
Allow spoolman while printing
Styling checkbox as switch
render Toggle switch-like
Fixed wrong timezones
Filtering spools
Removed translations of Spoolman
Spool image can be overided in theme
Added switch-on/off symbols to toggle
rename iter to i to avoid shadowing built-in function
remove redundant parenthesis
convert spoolcompare to static
merge check and treeview shared props
reduce spacing of buttons very useful for vertical/portrait
fix issue with remainings
add spoolman shortcut to extrude
Using backports.zoneinfo for python < 3.9
use decorators for properties
extract format_date function
change top row
last used sort
rebase on upstream
Fix for never used spools
Co-authored-by: alfrix <alfredomonclus@gmail.com>
this removes create_panel function from panels and mandates a class name Panel
remove panel_type param and only use a panel_name that is it's filename
remove load_panel dict
always reinit panel, (simpler and safer but slower)
the leak started in v0.2.9 (e1ea41f147be2a356d5777e65cce37337cd51555) with the addition of del self.panel[panel].
del cannot be called on self.panels because some panels have bound methods that prevent them from being collected by the gc.
so, instead of trying to remove them, reinitialize the panels if it's needed (before v0.2.9 initialize was always called, so it's still better than it was)
at the moment leaving the panels on memory doesn't seem like a big issue, once all panels are loaded memory should remain stable
fixes#1019fixes#1008