78 Commits

Author SHA1 Message Date
alfrix
0f0d35af57 settings: Add tooltips 2024-04-26 20:34:43 -03:00
alfrix
6117b6e10d screen_panel: integrate add_option to deduplicate code 2024-04-16 09:16:38 -03:00
alfrix
68c4025902 create the shutdown panel, add it to the action bar, remove items from system panel
shutdown maintain estop during printing
add option to shudown both host and printer close #1207
simplify host and printer dialog if ks is local, do both
2024-03-09 12:19:01 -03:00
alfrix
6cf639c083 refactor widget creation
improves performance and makes the code cleaner

* add parameters instead of calling methods afterwards
* remove a a lot of size requests
* remove parameters that are being set to the default value
* simplify dialogs containers
2024-01-02 08:14:51 -03:00
alfrix
02ba0f9594 heater grid: smaller temp column if power is not displaying close #1200 2023-12-22 21:04:21 -03:00
alfrix
7aee23c1cb lint fixes 2023-11-03 23:34:02 -03:00
alfrix
3a7818bd35 screen: remove pop parameter from show_panel and remove_panel, simpler 2023-07-30 12:22:58 -03:00
alfrix
3f11897491 screen: make show_panel parameters more clear 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
870256df09 screen_panel: format_time round minutes since seconds are only shown with less than a minute 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
Alfredo Monclus
b5abd3d7b9
temperature: select the device that was selected in job_status (#1025) 2023-06-30 17:43:00 -03:00
alfrix
c1d8a4f033 menu: get rid of initalize 2023-06-13 13:39:23 -03:00
alfrix
be13c1086e make the language list a menu instead of a dropdown fixes #915 2023-05-20 05:00:45 -06:00
alfrix
3417765223 job_status: fix panel not showing and not updating thumbnails
safeguard against thumbnail corruption or other errors fixes #893
better system to update name and thumbnails fixes #889
2023-03-19 05:55:30 -06:00
alfrix
778cd84ba8 panels do not call screen.show_all 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
d8b4d2d293 job_status: add eta 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
8d2f90f800 set title for internal options subpanels
the menu/subpanel system is a bit complex and hard to use
consider removing it and use individual panels of options
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
383086e303 screen: cleanup show_panel names 2022-11-22 00:55:37 -03:00
alfrix
d0d79a64df base_panel: simplify action bar buttons enable-disable 2022-11-21 09:20:05 -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
380df961e5 cleanup dead code 2022-11-18 01:17:57 -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
04e060c43c screen_panel: cleanup menu_item_clicked 2022-11-18 00:53:53 -03:00
alfrix
4d0edf3c0b move: cleanup and move stuff out of screen_panel 2022-11-12 09:56:09 -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
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
Laurenz
2cce477e5b
Add current heater power % to job status (#708)
* Add current heater power % to job status

* Add show_heater_power config option and move update_temp()s to ScreenPanel

* Add the option to the UI config instead of the docs

* Prefer extra items on job_status over the power

There is not a lot of space, it's a trade off, and people will likely prefer extra_items

* Remove the comma, none of the other buttons have it

* job_status: inherit the parent config

* screen: create reload_panels to avoid some service restarts

* extrude: fix power breaking multi-extruder setups

* main and temp: remove degrees char from the table

* main and temp: revert removal of the header

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-09-09 11:34:50 -03:00
alfrix
b1237ea75e config: add fallback values to booleans 2022-09-02 19:58:35 -03:00
alfrix
eb17bb58ad screen_panel: remove unused parameters 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
5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix
06fceec84a Change the deprecated VBox and HBox to oriented Boxes 2022-07-03 12:03:50 -03:00
alfrix
a445b89f13 config: deprecate get_main_config_option 2022-07-03 12:03:50 -03:00
alfrix
5a02ac75ae basic support for extruder_stepper 2022-07-03 12:03:50 -03:00
alfrix
c18e2d148e layout: content margins in css
close #558 (use .action_bar{} and .content{} in a custom theme)
2022-07-03 12:03:50 -03:00
alfrix
da26bf3143 base_panel: layout simplification 2022-07-03 12:03:50 -03:00
alfrix
54fc0458e0 KlippyGtk: fix style arguments 2022-05-31 11:14:42 -03:00
alfrix
33195f203f Simplify code 2022-05-31 11:14:42 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix
a0a222c386 print: use the smaller thumb for the list if available 2022-05-31 11:14:42 -03:00
alfrix
ee0cc9ca10 Remove unused variables 2022-03-15 12:41:21 -03:00