From efc460a1b7a4ad3b4a93b850639574ec865813db Mon Sep 17 00:00:00 2001 From: Hydrus Network Developer Date: Wed, 24 Apr 2024 15:35:55 -0500 Subject: [PATCH] Version 572 --- docs/changelog.md | 37 + docs/old_changelog.html | 32 + hydrus/client/ClientApplicationCommand.py | 249 +++++-- hydrus/client/ClientController.py | 15 + hydrus/client/ClientDefaults.py | 2 +- hydrus/client/ClientOptions.py | 2 + hydrus/client/caches/ClientCaches.py | 2 +- .../gui/ClientGUIScrolledPanelsManagement.py | 19 +- hydrus/client/gui/ClientGUIShortcuts.py | 15 +- hydrus/client/gui/ClientGUIStyle.py | 3 + hydrus/client/gui/canvas/ClientGUICanvas.py | 283 ++------ .../client/gui/media/ClientGUIMediaMenus.py | 195 +++++ .../gui/media/ClientGUIMediaModalActions.py | 22 + .../gui/media/ClientGUIMediaSimpleActions.py | 153 +++- hydrus/client/gui/pages/ClientGUIResults.py | 501 +++---------- .../services/ClientGUIClientsideServices.py | 3 + .../widgets/ClientGUIApplicationCommand.py | 205 +++++- hydrus/client/media/ClientMedia.py | 2 +- hydrus/core/HydrusConstants.py | 2 +- hydrus/core/HydrusSerialisable.py | 1 + hydrus/test/TestClientDB.py | 29 +- hydrus/test/TestClientParsing.py | 12 +- static/qss/e621.qss | 670 ++++++++++++++++++ static/qss/e621/bg.svg | 1 + static/qss/e621/cbox-ch-ho.svg | 1 + static/qss/e621/cbox-ch-pr.svg | 1 + static/qss/e621/cbox-ch.svg | 1 + static/qss/e621/cbox-in-ho.svg | 1 + static/qss/e621/cbox-in-pr.svg | 1 + static/qss/e621/cbox-in.svg | 1 + static/qss/e621/cbox-un-ho.svg | 1 + static/qss/e621/cbox-un-pr.svg | 1 + static/qss/e621/cbox-un.svg | 1 + static/qss/e621/dropdown.svg | 1 + static/qss/e621/rbtn-ch-ho.svg | 1 + static/qss/e621/rbtn-ch-pr.svg | 1 + static/qss/e621/rbtn-ch.svg | 1 + static/qss/e621/rbtn-un-ho.svg | 1 + static/qss/e621/rbtn-un-pr.svg | 1 + static/qss/e621/rbtn-un.svg | 1 + static/qss/e621/sbar-d.svg | 1 + static/qss/e621/sbar-l.svg | 1 + static/qss/e621/sbar-r.svg | 1 + static/qss/e621/sbar-u.svg | 1 + static/qss/e621/sbox-d.svg | 1 + static/qss/e621/sbox-u.svg | 1 + .../advanced/requirements_qt6_test.txt | 2 +- 47 files changed, 1759 insertions(+), 720 deletions(-) create mode 100644 static/qss/e621.qss create mode 100644 static/qss/e621/bg.svg create mode 100644 static/qss/e621/cbox-ch-ho.svg create mode 100644 static/qss/e621/cbox-ch-pr.svg create mode 100644 static/qss/e621/cbox-ch.svg create mode 100644 static/qss/e621/cbox-in-ho.svg create mode 100644 static/qss/e621/cbox-in-pr.svg create mode 100644 static/qss/e621/cbox-in.svg create mode 100644 static/qss/e621/cbox-un-ho.svg create mode 100644 static/qss/e621/cbox-un-pr.svg create mode 100644 static/qss/e621/cbox-un.svg create mode 100644 static/qss/e621/dropdown.svg create mode 100644 static/qss/e621/rbtn-ch-ho.svg create mode 100644 static/qss/e621/rbtn-ch-pr.svg create mode 100644 static/qss/e621/rbtn-ch.svg create mode 100644 static/qss/e621/rbtn-un-ho.svg create mode 100644 static/qss/e621/rbtn-un-pr.svg create mode 100644 static/qss/e621/rbtn-un.svg create mode 100644 static/qss/e621/sbar-d.svg create mode 100644 static/qss/e621/sbar-l.svg create mode 100644 static/qss/e621/sbar-r.svg create mode 100644 static/qss/e621/sbar-u.svg create mode 100644 static/qss/e621/sbox-d.svg create mode 100644 static/qss/e621/sbox-u.svg diff --git a/docs/changelog.md b/docs/changelog.md index f5471f74..ec7d7609 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -7,6 +7,43 @@ title: Changelog !!! note This is the new changelog, only the most recent builds. For all versions, see the [old changelog](old_changelog.html). +## [Version 572](https://github.com/hydrusnetwork/hydrus/releases/tag/v572) + +### misc + +* added a new checkbox to _options->files and trash_ to say 'include skipped files when you remove files after archive/delete' +* thanks to a user, we now have an 'e621' stylsheet in _options->style_. this is the first default stylesheet that uses assets (some checkbox etc.. svgs), which means some users--I think just those who run from source--will need to be careful that their CWD is the hydrus install dir when they boot, or this won't load properly! if you try it and get errors in your log as it tries to load the svgs, let me know! + +### share menu + +* like the 'open' menu a couple weeks ago, the 'share' menu off of thumbnails or the media viewer is rewritten to nicer code. no major differences, but it has a clearer, universal layout, provides more options for 'the currently focused file' vs 'all selected files', is more careful about only providing commands it can deliver on (e.g. no file copy for remote files), and now everything it does is mappable in the shortcut system under the 'media' shortcut set +* you can now copy a file's thumbnail as a bitmap from this menu! +* the canvas now supports 'export files'. the 'export files' window just pops on top of it with the one file +* 'copy file id' is no longer hidden by advanced mode--go nuts! +* the share menu no longer has 'share on local booru'. the local booru service was an interesting experiment, but I could never find time to properly dev it and there are better answers with the Client API or simple third-party image hosting services that you can drag and drop to. thus, I am finally sunsetting it. I'll strip away its features over the coming weeks until it is completely removed + +### shortcut updates + +* the 'copy file hash' shortcut actions, which used to be four separate things, have been collapsed to one action that has a 'hash type' dropdown (and a 'target' dropdown to select either all selected files or just the currently focused file, which will default to 'all selected' on update, which was the previous behaviour). you can also now set 'pixel_hash' or 'blurhash' as the hash type +* the 'copy file bitmap' shortcuts have similarly been collapsed down to one action with a dropdown, also with the new 'copy thumbnail' command +* the 'copy files', 'copy file paths', and 'copy file id' shortcuts now have a dropdown for whether you want all selected files or just the currently focused file. updated commands will default to 'all selected', which was the previous behaviour +* added a 'copy ipfs multihash' shortcut action, which has this new 'focused vs all selected' parameter and the ipfs service to copy from as its options + +### boring code cleanup + +* wrote a new command for copying arbitrary file hashes, with a new 'file command target' +* simplified the media hash copying code +* wrote a new command for copying arbitrary bitmap types +* combined the bitmap copying code into one shared function call and simplified the surrounding code +* combined the file and path copying code into shared functions, simplified the code, and added tech for focused vs all selected targeting +* and the same thing for copying ipfs multihashes +* wrote a routine to copy a file's thumbnail in the normal clipboard copying pubsub +* with the recent rounds of simplication, the core thumbnail menu call is now but a mere 600 lines of spaghetti code +* misc renaming of some enums here so they are more in agreement ('xxx files' instead of 'xxx file', etc...) +* renamed the various simple commands I have replaced in the past few weeks as 'legacy', so we don't accidentally refer to them again in real code +* the unit test for 'dateparser decode' is no longer run if dateparser is not in the environment +* fixed the file metadata parsing unit tests to account for newer ffmpeg, which sees a -10ms different duration on one of the test files, and made the various tests +/-20% lenient to handle this stuff if it comes up again in future + ## [Version 571](https://github.com/hydrusnetwork/hydrus/releases/tag/v571) ### clean install diff --git a/docs/old_changelog.html b/docs/old_changelog.html index 71b84044..2f6976d7 100644 --- a/docs/old_changelog.html +++ b/docs/old_changelog.html @@ -34,6 +34,38 @@

changelog