61 Commits

Author SHA1 Message Date
alfrix
20346a90dc splash_screen: tweak layout sizes and remove get_allocation that can cause isssues
fixes #813

gtk: fix content_width while vertical returning 0
2022-11-26 15:57:50 -03:00
alfrix
593d8c678b gtk: merge buttonimage and button 2022-11-22 14:55:42 -03:00
alfrix
0233327554 fix splash_screen reloading and limit klipper reconnects fixes #803 2022-11-22 14:55:42 -03:00
alfrix
d0d79a64df base_panel: simplify action bar buttons enable-disable 2022-11-21 09:20:05 -03:00
alfrix
818f1ab465 splash_screen: show detailed error when moonraker connection fails 2022-11-21 07:15:02 -03:00
alfrix
dbd1474d63 screen_panel: share ks_printer_cfg between panels 2022-11-20 14:17:48 -03:00
alfrix
fc0f153023 reorder imports 2022-11-20 07:28:05 -03:00
alfrix
7ca37c56b6 websocket: refactor how the connection is handled 2022-11-18 12:56:05 -03:00
alfrix
45ab86204b panels: remove initialize from the panels that do not have a menu 2022-11-18 00:53:53 -03:00
alfrix
b68cfa40fd refactor ws reconnect/retry 2022-11-18 00:53:53 -03:00
alfrix
fdf13102fe screen: remove shutdown variable and change on_close to disconnect 2022-11-18 00:53:53 -03:00
alfrix
8b55d2f2b1 splash_screen: limit reconnections, clear log, add reconnect button 2022-11-11 10:25:55 -03:00
alfrix
38d006c8a7 job_status and splash: fixup image size on ultrawide 2022-11-02 11:13:16 -03:00
alfrix
371968b458 base_panel: hide estop 2022-11-01 15:36:52 -03:00
alfrix
c3128ef508 base_panel: always hide macro shortcut on splash_screen 2022-11-01 15:36:49 -03:00
alfrix
d3281379ee gtk: change scaling of images
This reduces the amount of magic numbers used, some images will scale to bigger sizes, most of the icons and images in vertical mode will be bigger, thumbnails should be bigger in both modes.
2022-10-26 22:36:52 -03:00
alfrix
4f959696bd gtk: remove newlines to properly wrap lines if needed
this fixes the issue caused by labels with a newlines detected as 1 line even if it has more than one
2022-09-02 19:58:35 -03:00
alfrix
6510b2ec6b Refactor
Use f-strings
Avoid unnecessary casts to str()bool()int()
Ensure file closure
Merge nested ifs
Simplify for-assigns-appends with comprehensions and internal functions
Avoid shadowing internal function names
Initialize variables
Return value directly instead of assign then return
Make some methods static
2022-08-01 12:23:40 -03:00
alfrix
5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix
da26bf3143 base_panel: layout simplification 2022-07-03 12:03:50 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix
ea3e7ad3d1 splash_screen: use moonraker for actions if connected, hide system panel if it isn't connected
use systemctl if moonraker isn't available close #615
2022-05-31 11:14:42 -03:00
alfrix
c33659c6f7 gtk: cleanup andoptimize image handling, incomplete themes should now work 2022-04-02 09:59:12 -03:00
alfrix
76b7ad54eb splash: do not show power_on if moonraker is not connected 2022-03-31 13:47:42 -03:00
alfrix
5eac3bef6b Update Translations 2022-03-31 11:26:25 -03:00
alfrix
6f86448405 Fix issues while Moonraker is connected but klipper is disconnected
fixes #548
2022-03-28 16:47:52 -03:00
alfrix
4c8bb4ff6f splash_screen: change klipper restart and firmware restart if klipper is not connected 2022-03-25 14:07:37 -03:00
alfrix
b83f12265d Splash_screen: fix return and duplicated power devices
fix forcefully returning the user from menu to splash when there is no connection to moonraker/klipper
fix a case where the power device was added multiple times to the list
2022-03-24 10:34:27 -03:00
alfrix
1dee914564 splash_screen: fix bug that prevented Power On from showing up 2022-03-21 05:46:14 -03:00
Alfredo Monclus
046e03b883
Improve error messages (#549)
Shows if the issue is with moonraker or klipper
if the issue is with klipper and there is info about it then show it
Reconnect now has a counter and it's visible to the user
2022-03-18 20:18:53 -03:00
alfrix
5899c8feab Optimize imports 2022-03-15 12:41:21 -03:00
alfrix
490dc929bd splash_screen: make power_devices mandatory for the power on button 2022-03-10 11:26:43 -03:00
alfrix
088a6deabd splash_screen: allow power_devices to be configured 2022-03-05 11:33:24 -03:00
alfrix
49ab84e8d5 splash_screen: implement Power On Printer but make it more specific 2022-03-01 17:21:17 -03:00
alfrix
7e9fc97b4b splash_screen: fix #521 2022-03-01 09:10:05 -03:00
Jordan
4b0b937c41 Change scrolling behavior to enable touch scroll. Fix #466 2022-01-22 15:30:02 -05:00
Alfredo Monclus
9449f24b5f
Splash_screen: show full error message (#389)
* Splash_screen: show full error messge

* Fix splash not changing from connecting to error
2022-01-03 01:29:49 -05:00
d8ahazard
6c3c579e6e
Support multiple power devices. (#350)
Enable multiple devices to power on when turning on printer. Devices starting with "Printer" will turn on
2021-12-24 09:31:01 -05:00
Alfredo Monclus
5e3e8be005
Styling updates (#279)
* Dialog buttons colors

* Zcalibrate add colors for buttons

* Fix move panel misalignment and add color to home button

* z-bolt switch styling

* Splash screen homogeneous buttons

* remove switch slider border

* Remove max chars from filename (ellipsizes anyway)

* Fix colorized buttons moving when pressed

* Updater more row spacing

* Colorized button press
2021-09-22 23:14:21 -04:00
Jordan
70d8315539 Update code style 2021-09-11 17:25:38 -04:00
Alfredo Monclus
bf277dd3d2
splash_screen: Increase font size (#192) 2021-06-26 12:22:57 -04:00
Jordan
a0d3bd6a0c base_panel: Initial commit 2021-05-19 20:44:48 -04:00
Alfredo Monclus
e75a10a888
New Style - Solarized (#144)
* New Style solarized
2021-05-10 20:55:15 -04:00
Jordan Ruthe
396467d50f splash_screen: Hide change printer button if only one printer is configured 2021-03-13 17:05:20 -05:00
jordanruthe
5e31e3cfa6
Multiple printers (#85)
* screen/printer_select/splash_screen: Updates to allow changing between moonraker instances

* Updates to multiple printers

* settings: Display printer endpoints

* Update macros to be on a per-printer basis

* files: Changes to clear out file cache on printer switch

* job_status: Redo page for action bar

* splash_screen: Change icon

* websocket: Actually close the websocket

* printer: Fix error case

* splash_screen: show buttons update

* readme update
2021-03-05 18:30:59 -05:00
Jordan Ruthe
f14f494fee splash_screen: fix issue with message popup 2021-02-26 10:52:55 -05:00
Jordan Ruthe
c0b4b464bd Changes to logging implementation 2021-02-21 12:19:30 -05:00
Jordan Ruthe
c3f0abd671 splash_screen: Fix none case for printer 2021-02-15 14:18:09 -05:00
Jordan Ruthe
6c252b0862 splash_screen: Enable menu to network, power, and system panels 2021-01-19 07:59:58 -05:00
Jordan Ruthe
71abc27ad8 splash_screen: Don't display power on if no power devices 2021-01-07 01:02:10 -05:00