45 Commits

Author SHA1 Message Date
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
Jordan Ruthe
36c9b42970 splash_screen: Update klipper logo to scale for lower resolutions 2020-12-08 20:28:15 -05:00
jordanruthe
238badb110
UI scaling (#28)
* Initial UI scaling commit

* temperature: updates to styling

* screen: fix dialog creation

* bed_level: scale images

* job_status: updates to scaling
2020-12-07 15:44:03 -05:00
Jordan Ruthe
08a7057668 Change panel layout. Add title and move back button 2020-12-02 14:35:28 -05:00
Jordan Ruthe
cc59ec68d0 Add power panel 2020-11-28 14:00:26 -05:00
Jordan Ruthe
8204e3ab17 Dynamically load panels 2020-11-23 21:00:04 -05:00
jordanruthe
3b62439939 Move files to ks_includes and update references 2020-11-18 17:15:05 -05:00
Jordan Ruthe
557dd86364 Fix CR line end problem 2020-11-18 10:46:57 -05:00
Jordan Ruthe
7db6a541f2 all: Update to enable language files 2020-11-18 07:49:12 -05:00
Jordan Ruthe
0da4922fd0 Setup logger in panels 2020-11-13 23:27:00 -05:00
Jordan Ruthe
d2036c13af Moving development into master 2020-08-01 14:38:09 -04:00
jruthe
a2e979f847 Updated menu system. Move panel working 2020-07-14 08:13:35 -04:00