Isaiah Odhner
801c147d4c
Clear filename input in Open dialog, which gets set unintentionally
2023-04-20 13:00:05 -04:00
Isaiah Odhner
4bca563358
Remove timer for setting focus
...
Interestingly, this moves the filename input's cursor to the start,
whereas it was positioned at the end when using the timer.
Unfortunately the Input control doesn't support selection,
which is what I would really want as the behavior.
2023-04-20 12:43:14 -04:00
Isaiah Odhner
8a51bd325c
Focus default control within window after opening
2023-04-20 12:31:23 -04:00
Isaiah Odhner
ec4d044f8a
Handle FileNotFoundError coming from os.path.samefile
2023-04-20 12:08:03 -04:00
Isaiah Odhner
61d1532552
Prevent multiple character selector dialogs from opening at once
2023-04-20 11:54:42 -04:00
Isaiah Odhner
74c4af1a5b
Refactor meta character mapping to use match
2023-04-20 01:26:00 -04:00
Isaiah Odhner
7cdb35a4ae
Start defining an enlarged view for certain characters
2023-04-20 01:25:43 -04:00
Isaiah Odhner
e48c9cc632
Fix width of selected color/char display input
...
I'm not sure why it shrunk when changing to an Input
2023-04-20 01:21:27 -04:00
Isaiah Odhner
b955aaf361
Input or pick character to draw with
2023-04-20 01:21:06 -04:00
Isaiah Odhner
8727ed27de
Use .dialog_window
, already specified in one place, instead of .dialog
, scattered about
2023-04-20 00:28:45 -04:00
Isaiah Odhner
29bc94efbc
Ignore RuntimeError "cannot join current thread"
2023-04-19 21:45:18 -04:00
Isaiah Odhner
ac10d5e500
Tweak error messages to use colons for clarity
2023-04-19 21:34:29 -04:00
Isaiah Odhner
c659418240
Clean up attempt at more optimal color inverting
...
I don't want to bother importing Rich's Color class in addition to
Textual's Color class.
This also doesn't work, which might be the fastest if it worked:
style.color.triplet.red = 255 - style.color.triplet.red
style.color.triplet.green = 255 - style.color.triplet.green
style.color.triplet.blue = 255 - style.color.triplet.blue
style.bgcolor.triplet.red = 255 - style.bgcolor.triplet.red
style.bgcolor.triplet.green = 255 - style.bgcolor.triplet.green
style.bgcolor.triplet.blue = 255 - style.bgcolor.triplet.blue
2023-04-19 21:20:10 -04:00
Isaiah Odhner
bf16e60509
Clean up old magnifier preview approach
2023-04-19 21:14:07 -04:00
Isaiah Odhner
bd8ebad377
Implement magnifier preview
2023-04-19 21:08:59 -04:00
Isaiah Odhner
0026c06268
Fix inconsistent indentation
2023-04-19 19:58:07 -04:00
Isaiah Odhner
9120d49546
Implement the magnifier tool
2023-04-19 19:44:57 -04:00
Isaiah Odhner
ad6d799db9
Note reset command to recover from bad terminal state
2023-04-19 19:09:02 -04:00
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