89 Commits

Author SHA1 Message Date
alfrix
bd98e758ec base_panel improvements
* generalize macro shortcut to allow changing it in the future
* action_bar functionality is now handled in one place for better maintainability
2023-08-18 11:48:37 -03:00
alfrix
5fa1e44f16 main_menu: allow closing the keypad with the back button 2023-08-18 11:48:37 -03:00
alfrix
34f9b958a7 remove unnecessary params from labels 2023-07-30 12:22:58 -03:00
alfrix
8d9236a2df screen: simplify panel loading
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)
2023-07-30 12:22:58 -03:00
alfrix
3c69bcb4c4 add parameter to labels to silence IDE warnings 2023-07-30 12:22:58 -03:00
alfrix
a149796b19 reduce the use of contextlib 2023-07-30 12:22:58 -03:00
Chad Condon
e8a2d3443e
Improve name presentation (#1055)
* Preserve manual capitalization

Avoid re-capitalizing names that already include uppercase letters.
This improves the presentation of names like "TMC2209", etc. when the
user has manually capitalized the name.

* Use title case

Use title case instead of only capitalizing the first character.
Ex. `heater_bed` now becomes "Heater Bed" instead of "Heater bed".
2023-07-24 17:00:12 -03:00
alfrix
4920720c99 return False on Glib functions 2023-06-16 10:05:43 -03:00
alfrix
2d61eba66b Fix macro shortcut reopening the same panel 2023-06-04 08:09:11 -03:00
alfrix
e4d5cd65ce fix a couple of errors that may happen if klipper fails to start or takes too long 2022-12-11 19:22:45 -03:00
alfrix
70d7564a78 shorten _screen.printer to _printer 2022-12-11 09:17:18 -03:00
alfrix
7120c424d4 gtk: resizability
doesn't rescale the fonts or images
2022-12-11 09:17:18 -03:00
alfrix
ab4d4af7f8 tweak image size of buttons with side labes or no label 2022-12-02 20:59:01 -03:00
alfrix
9de058b0d7 dialogs: set title 2022-11-30 11:51:24 -03:00
alfrix
ec86403056 create attach panel 2022-11-30 11:00:10 -03:00
alfrix
49c2e4f1d7 improve updater dialog behaviour 2022-11-29 01:52:47 -03:00
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
cdb40e8ce1 Show the update dialog as modal 2022-11-26 15:57:50 -03:00
alfrix
00bd6ac4db gtk: adjust icon sizes so they are more consistent across font sizes 2022-11-22 16:18:06 -03:00
alfrix
593d8c678b gtk: merge buttonimage and button 2022-11-22 14:55:42 -03:00
alfrix
ef5f86a67d screenpanel remove unnecesary getters 2022-11-22 14:55:42 -03:00
alfrix
b415eca1c8 keyboard shortcuts escape and backspace to return 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
054523d937 settings: add extra large font close #798 2022-11-20 20:58:06 -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
45ab86204b panels: remove initialize from the panels that do not have a menu 2022-11-18 00:53:53 -03:00
alfrix
022954918c create ks_printer_cfg 2022-11-18 00:53:53 -03:00
alfrix
ca7143f776 base_panel: estop set not sensitive instead of hiding 2022-11-06 13:21:52 -03:00
alfrix
2fef5660cb base_panel: change how it shows controls and heaters to avoid issues 2022-11-04 10:30:14 -03:00
alfrix
64745c8578 fix codestyle issues 2022-11-03 22:40:36 -03:00
alfrix
7ee162092c fix #775 2022-11-03 22:20:03 -03:00
alfrix
2fc01c07b6 base_panel: allow to have no title 2022-11-03 22:07:45 -03:00
alfrix
371968b458 base_panel: hide estop 2022-11-01 15:36:52 -03:00
alfrix
51ddee28c3 printer_select: hide action_bar on startup and translate name 2022-10-27 21:24:23 -03:00
alfrix
d3d7104ec4 languages: refactor
- No full restart requirement just reload
- Fix some systems not loading the language
- Fix RTL not applied if the lang was not set by the system
2022-10-26 22:36:52 -03:00
alfrix
b36e75ec1a temperature: fix #763 2022-10-26 22:36:52 -03:00
alfrix
d6e4ad0a35 base_panel: fix macro shorcut not hiding at startup if configured to off 2022-10-26 22:36:52 -03:00
alfrix
0de49ee0cd base_panel: calculate the amount of titlebar items to be shown 2022-10-26 22:36:52 -03:00
alfrix
da9051a9b2 base_panel: create get_icon for show_heaters 2022-10-26 22:36:52 -03:00
alfrix
b346d765a2 base_panel: clock simplify also increase margin 2022-10-26 22:36:52 -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
38ceea5204 gtk: improve wrapping of labels 2022-09-02 19:58:35 -03:00
alfrix
2c8436500c base_panel: fix possible causes of error in show heaters fixes #706 2022-08-21 15:15:24 -03:00
alfrix
200dca9dd3 dump more info during exceptions 2022-08-10 10:49:23 -03:00
alfrix
eb17bb58ad screen_panel: remove unused parameters 2022-08-01 12:23:40 -03:00
alfrix
a0cff7ec56 simplify name spliting 2022-08-01 12:23:40 -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
6b88ac0558 base_panel: fix #666 2022-07-03 18:04:57 -03:00
alfrix
d3cd4008a8 job_status and base_panel: safeguard against possible issues with temps 2022-07-03 12:03:50 -03:00