scale filter seems to be expensive even with angle=0. On my CB1 having
vf=rotate:0.0 in mpv arguments results in KlipperScreen using 100% of a
single core vs 30% when it's omitted.
* Initial commit, added psutil for getting tablet/laptop battery percentage, initial code for getting the values and displaying the icon
* add battery svgs for light theme
* added light styled battery svgs for dark themes
* update icon based on battery percentage and if device is charging
* indentation fix, and forgot to add battery plugged checks for 33% and 66% battery levels
* move battery polling to its own timer now that i understand how to add an additional timer, checks every 30 seconds. check for if show battery is on or off
* add toggle to config for settings
* show battery callback as screen.restart_ks instead of just reloading panels
* move self.battery_percentage() to end of reload_icons this ensures that when a theme is changed the icon is updated instead of waiting for the timeout to update the icon again
* remove left over commented out code
* only call self.battery_percentage when config is true
* adjust tooltip message
* split creatation of elements from updating elements
* change print to logging.debug, handle rouding for percentage in the f-string
* remove code that was moved to `attery_init()`, only destroy icon element when updating icons/percentage text, remove redundant calls to `.pack_start` (just call it once after setting the icon).
* only create battery_update timer if config setting is true
* new material icons remove old icons
* `self.battery_init() in `__init__` def
* fix: lint
* refactors
* style: update icons to follow themes
* refactor: remove config, make the show/hide automatic
* style: bigger battery icons for z-bolt and colorized
---------
Co-authored-by: MrTylerjet <MrTylerjet@gmail.com>
the delay is needed because the osk will change the scrolledwindow adjustment, and it's only possible to scroll down more after the keyboard has been shown
if adaptive layers or any other technique like non-planar is used,
this would be completely wrong, so i would prefer not to show up wrong information,
so it's up to the user to provide the correct info, in the docs there is the needed setup
close#1426close#1415
Even if we are very confident in the estimate, such as when there is previous historic data,
variables like speed factor and possible excluded objects can impact the accuracy.
Taking these cases into account seems to be tricky.
To address this, I revised the weightings of my previous formula based on practical considerations and observations.