Commit Graph

1319 Commits

Author SHA1 Message Date
Isaiah Odhner
b4f425ee3f Prepare for first release 2023-07-21 16:30:49 -04:00
Isaiah Odhner
e42060981c Remove "Update Dependencies" section
I used this command for a while, but ended up manually maintaining `requirements.txt`, in order to specify platform-specific dependencies.

I don't have a clear answer to dependency management; maybe a tool like `poetry` will help, but for now, this section is useless.
2023-07-21 15:11:59 -04:00
Isaiah Odhner
e14df9d4bc Shorten a sentence 2023-07-21 15:11:59 -04:00
Isaiah Odhner
c5809c3695 Confirm Ctrl+V fix for Windows Terminal, and list steps 2023-07-21 14:58:31 -04:00
Isaiah Odhner
a44d5b7695 Use alternative tool icons for Windows Terminal 2023-07-21 13:08:36 -04:00
Isaiah Odhner
bc3dba29fc Reword prompt/TUI clash bug description and clarify cmd vs conhost 2023-07-21 13:03:18 -04:00
Isaiah Odhner
c70f3e35e3 Note powershell prompt/TUI clashing bugginess 2023-07-21 01:18:22 -04:00
Isaiah Odhner
aad51d2978 Note Ctrl+V issue in Windows Terminal app 2023-07-20 20:52:44 -04:00
Isaiah Odhner
4383a882ee Use alternative tool icons for iTerm2 2023-07-20 19:44:47 -04:00
Isaiah Odhner
9f305a2f44 Ignore missing appscript dependency (outside macOS) in a different way 2023-07-20 18:05:23 -04:00
Isaiah Odhner
4d52257497 Clarify what feature is affected by font fallback
Truetype fonts are used for rasterizing ANSI art for Set As Wallpaper.
There are also FIGlet fonts in this app, for magnification.
2023-07-20 17:52:38 -04:00
Isaiah Odhner
5bee7f4819 Accept spelling
This is already accepted by the VS Code extension but not by cspell-cli.
I hate when these inscrutable differences crop up.
2023-07-20 17:52:38 -04:00
Isaiah Odhner
ebab889eaf Ignore 'Type of "get_current_worker" is partially unknown'
$ PYRIGHT_PYTHON_FORCE_VERSION=1.1.316 pyright
WARNING: there is a new pyright version available (v1.1.316 -> v1.1.317).
Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest`

/home/io/Projects/textual-paint/src/textual_paint/paint.py
  /home/io/Projects/textual-paint/src/textual_paint/paint.py:39:28 - error: Type of "get_current_worker" is partially unknown
    Type of "get_current_worker" is "() -> Worker[Unknown]" (reportUnknownVariableType)
1 error, 0 warnings, 0 informations
2023-07-20 17:52:38 -04:00
Isaiah Odhner
e0e0ce3cb1 Fix deprecation warning, when specifying text layout engine 2023-07-20 17:50:16 -04:00
Isaiah Odhner
9aadcd7db3 Use Size type, just for fun, in get_screen_size 2023-07-20 16:47:16 -04:00
Isaiah Odhner
86c99b9186 Merge Quartz import statements 2023-07-20 16:41:48 -04:00
Isaiah Odhner
6864790efb Improve error message when opening binary file in Get Colors dialog 2023-07-20 16:40:23 -04:00
Isaiah Odhner
288774aeaa Art tweaks 2023-07-20 15:57:52 -04:00
Isaiah Odhner
f666bfb704 Center image in View Bitmap mode, and restore scroll position
- Center the canvas (when it's smaller than the viewport).
- Adjust the scroll position when entering View Bitmap mode to anchor
  the top/left (when the image is larger than the viewport).
- Restore the scroll position when exiting View Bitmap mode.
2023-07-20 02:34:36 -04:00
Isaiah Odhner
68b92ff946 Zoom out temporarily for View Bitmap mode 2023-07-20 01:59:09 -04:00
Isaiah Odhner
7eff7d0476 Add meta-glyph rendering for corner triangle characters 2023-07-19 22:57:04 -04:00
Isaiah Odhner
3269d545c1 Note more alternatives 2023-07-19 22:30:49 -04:00
Isaiah Odhner
8b79dd98a9 Tweak grid style to be more like MS Paint
Avoid the cell background showing past the left/top of the border of the cell, by using left/top-aligned characters (▛▌▀) rather than centered border characters (┼┆┄).
2023-07-19 22:28:19 -04:00
Isaiah Odhner
507470ad10 Make grid more subtle by showing cell background underneath border 2023-07-19 22:15:15 -04:00
Isaiah Odhner
6a9e8703a6 Improve grid style 2023-07-19 21:59:47 -04:00
Isaiah Odhner
bf7fdac01d Implement View > Zoom > Show Grid 2023-07-19 21:53:10 -04:00
Isaiah Odhner
52a9425b36 Try to allow canceling Set As Wallpaper (probably silly) 2023-07-19 20:45:25 -04:00
Isaiah Odhner
f865acd56c Fix error handling for Set As Wallpaper worker thread 2023-07-19 13:58:31 -04:00
Isaiah Odhner
8e7113e1b5 Match font names case-insensitively and ignoring spaces 2023-07-19 01:44:20 -04:00
Isaiah Odhner
ec7986f9dd Add font names for Windows 2023-07-19 01:31:57 -04:00
Isaiah Odhner
b63f303cf4 Set wallpaper in a worker, to keep UI responsive 2023-07-19 01:26:33 -04:00
Isaiah Odhner
1c64fdb78c Fix Python rocket icon showing in dock on macOS after Set As Wallpaper 2023-07-18 18:32:32 -04:00
Isaiah Odhner
5c7272db91 Clean up Tk root widget
I was hoping this would fix the Python rocket icon showing in the dock on macOS, but it doesn't. It still stays until the program exits.
Might still be good to do though.
2023-07-18 18:32:32 -04:00
Isaiah Odhner
e2308c2a91 Add font names for macOS 2023-07-18 14:15:36 -04:00
Isaiah Odhner
5a5d8b38af Colorize Text Tilt art 2023-07-18 14:15:36 -04:00
Isaiah Odhner
10ed661022 Use unique IDs to actually reliably update wallpaper 2023-07-18 14:15:36 -04:00
Isaiah Odhner
3106a311eb Alternate between files to reliably update wallpaper 2023-07-18 14:15:36 -04:00
Isaiah Odhner
eb0f781ca8 Get screen size with tkinter instead
screeninfo caused a bouncing python rocket in the dock on mac, and didn't work.
2023-07-18 14:15:36 -04:00
Isaiah Odhner
7f3fe53d3e Get screen size properly, with screeninfo module 2023-07-18 14:03:51 -04:00
Isaiah Odhner
fd7f3e8fcc Get screen size in the simplest way that could possibly work 2023-07-18 14:03:51 -04:00
Isaiah Odhner
8fb561f457 Implement tiling vs centering wallpaper 2023-07-18 14:03:51 -04:00
Isaiah Odhner
00e6dd70b0 Set dark mode wallpaper as well on Ubuntu
This gets it working on my machine! And the last of the big three!
2023-07-18 14:03:51 -04:00
Isaiah Odhner
5fd214182c DRY gsettings schema/key 2023-07-18 14:03:51 -04:00
Isaiah Odhner
fece1c48c6 Rasterize before setting as wallpaper
This makes Set As Wallpaper work on Windows 10 and macOS 10.14
2023-07-18 14:03:51 -04:00
Isaiah Odhner
ebbab737d4 Add compatibility section 2023-07-17 20:27:19 -04:00
Isaiah Odhner
2966ebf6da Be consistent about encoding name 2023-07-17 20:04:25 -04:00
Isaiah Odhner
fc395e2db9 Specify UTF-8 encoding, since it's not default on Windows
https://peps.python.org/pep-0597/#using-the-default-encoding-is-a-common-mistake
2023-07-17 20:04:24 -04:00
Isaiah Odhner
033e86f4e7 Make psutil optional
It's hard to install on Windows, and this seems to be misleading:

    ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
2023-07-17 19:18:31 -04:00
Isaiah Odhner
300291fcae Indicate non-regex raw string (conventionally)
Some tools highlight regex syntax when a lowercase `r` is used.
2023-07-17 13:49:41 -04:00
Isaiah Odhner
82dd98d8cb Fix invalid assertion on mac
os.name == "posix" (!)
2023-07-17 12:31:48 -04:00