Isaiah Odhner
eae2ffe44a
Remove max size on window content
...
It's a bad idea, unless applied on a case-by-case basis.
It makes things wrap badly when the viewport is narrow, making things
much less readable, even though the aim is to make it more readable
by ensuring visibility. And it makes message boxes feel less OS-like.
It's better to have to drag a window back and forth to read it, than
to have it wrap at every character.
2023-04-19 16:06:49 -04:00
Isaiah Odhner
dd5e646dfe
Prompt to save changes before reloading program
2023-04-19 16:00:43 -04:00
Isaiah Odhner
509618c1be
Try to clean up the file change observer when restarting
...
This is all theoretical.
2023-04-19 15:19:27 -04:00
Isaiah Odhner
3c2ff7b3d8
Note textual console
devtool (and slowness)
2023-04-19 14:27:12 -04:00
Isaiah Odhner
18ef3898c6
Fix scroll wheel while hovering over a menu separator
2023-04-19 14:27:12 -04:00
Isaiah Odhner
140ff15ff1
Restart the app on changes
2023-04-19 14:27:12 -04:00
Isaiah Odhner
adcaed47cd
Handle base language (English) better
...
- Don't log an error about a missing language file at startup.
- Don't append to untranslated.txt for strings that don't need
translation because they're already in the target language.
I could use an early return for this too, but it's not important.
2023-04-19 02:59:48 -04:00
Isaiah Odhner
7b0eaff108
Reload the app with F2, not F4
...
I'm dumb, I forgot the app uses F4.
2023-04-19 02:45:55 -04:00
Isaiah Odhner
34aa35ec8b
Update dependencies
...
I'm new to python package management, so I don't really know when these
packages got updated, but I'm updating this file with this command:
python3 -m pipreqs.pipreqs --ignore .history --force
2023-04-19 02:42:54 -04:00
Isaiah Odhner
dfa4212548
Fix terminal state after reloading and exiting
2023-04-19 02:23:29 -04:00
Isaiah Odhner
f4075282ce
Reload the app with F4
2023-04-19 02:08:01 -04:00
Isaiah Odhner
655d42e414
Change shortcut label for exiting
...
Alt+F4 is handled by the window manager, we can't handle it.
2023-04-19 00:37:59 -04:00
Isaiah Odhner
0ee058216e
Position submenu
2023-04-19 00:09:40 -04:00
Isaiah Odhner
4cbafea3cb
Show accelerators/shortcuts in menus
2023-04-18 23:34:05 -04:00
Isaiah Odhner
365eb6e4c7
Dynamically position menus instead of guessing
...
I must've missed this property when looking through the properties in the debugger before.
2023-04-18 22:58:58 -04:00
Isaiah Odhner
d2ab602ff5
Dynamically avoid cutting off the rightmost character in menus
...
Before I had it wide enough for English, with a max-width,
but not all languages. This is a better solution.
2023-04-18 22:58:39 -04:00
Isaiah Odhner
66ce8df21d
Set min-width on menu popups wide enough for all menu items
...
The longest one is File > Set As Wallpaper (Centered)
2023-04-18 19:05:13 -04:00
Isaiah Odhner
aa1e8dca7f
Fix menu item width not taking up full width of menu
2023-04-18 19:04:16 -04:00
Isaiah Odhner
1659f2d75b
Improve error handling for saving files
2023-04-18 18:56:29 -04:00
Isaiah Odhner
79a1432abc
Remove way too general Button rule from calculator example
2023-04-18 18:56:29 -04:00
Isaiah Odhner
b8c7e0eb72
Add all of the menu items from MS Paint
2023-04-18 18:56:29 -04:00
Isaiah Odhner
ac8c3819cf
Some things aren't translated yet
2023-04-18 18:55:45 -04:00
Isaiah Odhner
c5f7c9f387
Rename "Rectangular Select" to "Select" to match MS Paint and for localization
2023-04-18 18:55:45 -04:00
Isaiah Odhner
40d8662801
Track untranslated strings
2023-04-18 18:55:45 -04:00
Isaiah Odhner
f1a4b9736e
Improve error handling for saving and loading files
2023-04-18 18:55:45 -04:00
Isaiah Odhner
fcf44a8b94
Handle errors when saving a file
2023-04-18 18:55:44 -04:00
Isaiah Odhner
11817904bb
Not just several — twenty six, to be precise
2023-04-18 04:11:50 -04:00
Isaiah Odhner
e715a28e59
Fix error when hitting OK button with no callback
2023-04-18 04:04:46 -04:00
Isaiah Odhner
8c4a5bf583
Handle errors when opening a file
2023-04-18 04:04:46 -04:00
Isaiah Odhner
2d3f05ff12
Rename "Redo" to "Repeat" to match MS Paint and for localization
2023-04-18 03:48:47 -04:00
Isaiah Odhner
b2645337bd
Update readme
2023-04-18 03:47:02 -04:00
Isaiah Odhner
a9fd9d090c
Enable localization!
2023-04-18 03:31:47 -04:00
Isaiah Odhner
5e994fbc91
Move command line argument parsing to the top
...
This will make it possible to load localization data for a language
defined by a command-line argument, throughout the program.
Unfortunately this separates the usage of the arguments from their
definitions by a wide margin, making it harder to edit, especially
with AI autocomplete. For now. I could refactor things, either move
the bulk of this file to separate files, or define a configure_app
function up top to use down below.
2023-04-18 03:31:47 -04:00
Isaiah Odhner
8971122581
Wrap strings in _() function for localization
2023-04-18 03:31:47 -04:00
Isaiah Odhner
973f67240d
WIP: i18n
...
Giving up on the python translation of the RC file parsing and pre-processing for now, in favor of simply parsing the JS files already generated, which is a much simpler task.
2023-04-18 03:31:47 -04:00
Isaiah Odhner
baf804f2b1
Fix: use title argument in warning_message_box
2023-04-18 03:08:58 -04:00
Isaiah Odhner
b4468d3a76
Update some comments about ANSI I/O
2023-04-18 02:55:11 -04:00
Isaiah Odhner
df1ddcc318
Don't escape Unicode characters so much...
2023-04-18 02:32:47 -04:00
Isaiah Odhner
b480d5a0b2
Add leniency like JS has...
2023-04-18 02:23:35 -04:00
Isaiah Odhner
160beeb6ce
Disable code for updating index.html
2023-04-18 02:23:03 -04:00
Isaiah Odhner
2e4d6e9c16
Fix several errors in JS->Python translation
2023-04-18 02:17:53 -04:00
Isaiah Odhner
c05bf1200d
Fix SyntaxError: f-string expression part cannot include a backslash
...
and one about the quotes
2023-04-18 01:52:54 -04:00
Isaiah Odhner
7192a0a0b5
Add some, but not many, of the comments omitted during translation to Python
2023-04-18 01:19:20 -04:00
Isaiah Odhner
87f8faf956
Use choices
option for expressing --theme
2023-04-18 01:06:45 -04:00
Isaiah Odhner
6a943389be
Convert localization JavaScript code to Python using ChatGPT
2023-04-18 00:37:48 -04:00
Isaiah Odhner
2a42de257f
Accept spellings from localization JavaScript code
2023-04-18 00:37:19 -04:00
Isaiah Odhner
0da0708607
Ignore spelling in old copied shell scripts
2023-04-18 00:30:34 -04:00
Isaiah Odhner
d9bafabf16
Exclude localization data from spell checking
2023-04-18 00:30:05 -04:00
Isaiah Odhner
ab690e8f5c
Add localization folder from JS Paint
...
This folder was last updated at this commit:
4a9163fb6d
2023-04-18 00:30:05 -04:00
Isaiah Odhner
6fbcbf9ec3
Refactor ync
flag to button_types
argument, to support OK-only dialogs
2023-04-17 23:32:20 -04:00