53 Commits

Author SHA1 Message Date
alfrix
f588571bdd fix PEP E303 2022-10-27 23:18:21 -03:00
alfrix
792e1bf8bf print: improve initialization performance with async. load of images 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
1305b40c41 refactors and cleanup 2022-10-14 13:27:01 -03:00
alfrix
d0d171e676 print: hide files and directories starting with . 2022-10-14 10:19:44 -03:00
alfrix
28303573f9 print: shorter sort label (same as macros panel) 2022-09-02 19:58:35 -03:00
alfrix
97f170ba59 buttons: resize side images for better alignment 2022-09-02 19:58:35 -03:00
alfrix
38ceea5204 gtk: improve wrapping of labels 2022-09-02 19:58:35 -03:00
alfrix
eb17bb58ad screen_panel: remove unused parameters 2022-08-01 12:23:40 -03:00
alfrix
aa2bfcbaee print: add delete file
this is temporary, to delete a file click the thumbnail
TODO: context menu or other solution to be decided
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
b611491997 Optimize imports 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
312d131db5 use images for the sort order, drop freefont dependency 2022-07-03 12:03:50 -03:00
alfrix
da26bf3143 base_panel: layout simplification 2022-07-03 12:03:50 -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
c33659c6f7 gtk: cleanup andoptimize image handling, incomplete themes should now work 2022-04-02 09:59:12 -03:00
alfrix
a90ab54e1d print: hide _ and optimize a bit 2022-03-25 13:49:19 -03:00
alfrix
ee0cc9ca10 Remove unused variables 2022-03-15 12:41:21 -03:00
alfrix
5899c8feab Optimize imports 2022-03-15 12:41:21 -03:00
alfrix
0625935062 print: remove dependency 2022-02-14 05:37:17 -03:00
alfrix
fce90ebf9d Print: hide extension in the list 2022-02-06 13:41:42 -03:00
Alfredo Monclus
d8bc4747e8
Fix Startup without [virtual_sdcard] (#461)
* Rewrite evaluate_state

* Print: Show an error if trying to print without [virtual_sdcard]
2022-01-22 22:03:57 -03:00
Jordan
4b0b937c41 Change scrolling behavior to enable touch scroll. Fix #466 2022-01-22 15:30:02 -05:00
Alfredo Monclus
58e0aa74d0
Word Wrap (#395)
* Word-wrap dialogs

* prevent horizontal scrollbar caused by translators

* Fix weird indentation on print name
2022-01-03 12:45:55 -05:00
Jordan
70d8315539 Update code style 2021-09-11 17:25:38 -04:00
Jordan
afbf96e30e files: Update metadata for file that was overwritten 2021-08-03 23:21:21 -04:00
Alfredo Monclus
2018b8b852
Center dialogs (#201)
* Center dialogs

* Center and clean print dialog
2021-07-14 20:00:50 -10:00
Jordan
73b54f7aba base_panel: Include back/home button 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
bd1650fd18 files: Updates to not cache thumbnails locally. Also get notified by inotify 2021-05-09 13:57:18 -04:00
Jordan
b27814845b print: Include refresh button for files 2021-05-08 21:40:27 -04:00
Jordan Ruthe
c0b4b464bd Changes to logging implementation 2021-02-21 12:19:30 -05:00
Jordan Ruthe
41e5963ad7 print: Save sort order to fix #66 2021-02-19 00:13:57 -05:00
Jordan Ruthe
cea0df8658 print: Add support for directories 2021-02-18 23:56:25 -05:00
schpuntik
b6fb4c1da2
Add Russian locales (#79)
* add russian locale

* update script update_translation_files.sh

* Defining Python Source Code Encodings

* Update Russian locale

* Update German locale

* update to PO files for new changes

* fix typo

* Update Russian locale

Co-authored-by: schpuntik <schpuntik@freenet.de>
2021-02-14 12:09:19 -05:00
Jordan Ruthe
da9570a925 print: Allow sorting by date and name. 2021-01-12 18:35:24 -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
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
7db6a541f2 all: Update to enable language files 2020-11-18 07:49:12 -05:00
Jordan Ruthe
33beb60af9 Update print panel to handle different resolutions better 2020-11-14 11:25:08 -05:00
Jordan Ruthe
29f78bda5e Change line wrap mode to char for longer filenames 2020-11-14 10:54:37 -05:00
Jordan Ruthe
9feb3c3604 Update print page to display thumbnails 2020-11-11 13:23:12 -05:00
Jordan Ruthe
0b5945c6dc Update time format 2020-11-09 16:37:08 -05:00