Commit Graph

46 Commits (main)

Author SHA1 Message Date
thomas 09096711a8
Update README.md 2025-02-20 15:03:31 +00:00
thomas 99fcf9b0a4
Wait for `window.opts.arh_javascript_aspect_ratio_show` before disconnecting observer #61 (#63) 2023-06-04 16:39:07 +01:00
thomas 0bccd48788
Add MinDimensionScaler component (#58)
* Add MinDimensionScaler component
- Change steps on sliders to 8
- Add test coverage for functions
- Add relevant settings and defaults
* Fix tests & wrong variables
2023-05-28 21:31:15 +01:00
thomas e0e09b06ad
Change how JavaScript aspect ratios work (#57)
- Don't disable any inputs anymore, allow both as valid
- Dynamically change max & min based on aspect ratio limits
2023-05-28 19:35:08 +01:00
thomas c3193a5dbc
Update pre-commit config & run pre-commit (#56) 2023-05-28 18:33:58 +01:00
thomas b03cce2050
Use 'change' over 'input' to support more options (#48) 2023-04-10 22:17:00 +01:00
thomas 905a8a0ac6
Quality of life changes (#47)
- Use less brittle current img2img image retrieval
- Updating styling to use variables for different themes
- Change lock to a locked lock...
2023-04-10 22:00:48 +01:00
thomas ab303d6e97
Add option to toggle between default options (#45)
* Add option to toggle between default options

- Fix img2img red overlay not updating with changes
- Add min-width of 2.5em to select so it's not thin
2023-04-09 16:19:19 +01:00
thomas c4274cb84f
Lots of quality of life changes (#41)
- Support different tabs on img2img now
- Fix step counter sometimes not being multiple of 8
- Align text to center on selects
- Lots of quality of life code changes
2023-04-01 23:17:19 +01:00
thomas 6c8a27fde5
Round to multiples of 8 always (#37)
It was set at 8 for a reason, I was a bit dumb to change this in the first place...
2023-03-31 20:16:41 +01:00
thomas 36c450111f
Change default to JavaScript controls (#35) 2023-03-27 00:06:03 +01:00
thomas 98655231c5
Fix styling from A1111 update (#31) 2023-03-25 17:53:40 +00:00
thomas 1e8f758146
Add option to hide accordion by default (#29) 2023-03-24 15:50:20 +00:00
thomas 50cf127c44
Add option on img2img to lock to image aspect ratio (#26) 2023-03-24 14:34:35 +00:00
thomas be365af8f9
Implement JavaScript aspect ratios (#25)
* Implement JavaScript aspect ratios

- Add options to enable and specify JavaScript aspect ratios
- Add JavaScript to load when enabled, which adds dropdown & functionality
- Update docs for JavaScript aspect ratios
- Add video to README.md for JavaScript aspect ratios
- Update options image on README.md
2023-03-24 00:58:00 +00:00
thomas d602ddf3bf
Add tox configuration, we support 3.10 & 3.11 (#22) 2023-03-23 12:38:58 +00:00
thomas 6b218a3926
Remove dict typing (#21) 2023-03-23 08:43:23 +00:00
thomas f41fe98ced
Add new image names (#18) 2023-03-22 19:07:13 +00:00
544146 8d43b78900 Change image names to fix caching 2023-03-22 19:06:09 +00:00
thomas 0e89df9266
Add aspect ratios configuration option (#15)
* Add aspect ratios configuration option

- Add new component for configurable aspect ratios
- Add options allowing for aspect ratios to use max option
- Update documentation to reflect aspect ratio functionality
- Refactor options to include in each relevant component
2023-03-22 19:01:24 +00:00
thomas 18d4199854
Abstract UI components, add UI ordering/sorting (#13)
* Abstract UI components

- Created an ABC for our UI components
- Extract components to its own module
- Add concept of sorting including option and defaults
- Update test for _safe_opt when attr is None
- Change import structure to avoid circular imports
2023-03-21 20:31:32 +00:00
thomas 2d3343c911
Merge pull request #12 from thomasasfk/readme-small
Small update to README.md
2023-03-20 21:45:47 +00:00
544146 159c071bed Small update to README.md 2023-03-20 21:45:28 +00:00
thomas 9db0cdaaf7
Merge pull request #11 from thomasasfk/readme-dependencies
Add dependencies section to README.md
2023-03-20 21:44:37 +00:00
544146 d3a3a43854 Add dependencies section to README.md 2023-03-20 21:44:04 +00:00
thomas da708459ec
Merge pull request #10 from thomasasfk/add-test-instructions-to-readme
Update README.md with testing instructions
2023-03-20 21:41:44 +00:00
544146 40fd47ffb3 Update README.md with testing instructions 2023-03-20 21:41:26 +00:00
thomas aa7cd6f8a6
Merge pull request #8 from thomasasfk/test-for-safe-opt
Add tests for safely getting options
2023-03-20 21:29:34 +00:00
544146 da46da971a Add tests for safely getting options 2023-03-20 21:28:46 +00:00
thomas 2e8d24c56f
Merge pull request #5 from thomasasfk/safely-get-options
Safely retrieve options
2023-03-20 20:12:01 +00:00
544146 2898de8abd Safely retrieve options
- Fixes issues where first launch after install raises AttributeError
- Moved all constants into _constants.py
- Moved all settings related functions into _settings.py
- Add sane defaults for last resort
2023-03-20 20:09:05 +00:00
thomas 5f5a7463d5
Merge pull request #4 from thomasasfk/update-readme
Update README.md to reflect changes
2023-03-20 16:00:44 +00:00
544146 912ff1844d Update README.md to reflect changes 2023-03-20 16:00:15 +00:00
thomas 7fe71cc5cd
Merge pull request #3 from thomasasfk/add-status-badge
Add status badge
2023-03-20 15:53:36 +00:00
544146 b39444254e Add status badge 2023-03-20 15:52:35 +00:00
thomas d320bd45f0
Merge pull request #2 from thomasasfk/add-unit-tests
Add parametrized unit test coverage
2023-03-20 15:49:24 +00:00
544146 4cd0a6d336 Run tests on main 2023-03-20 15:47:37 +00:00
544146 90baa20c8b Add other cases to unit tests 2023-03-20 15:44:47 +00:00
544146 c4d2e7ec9e Refactor repository
- Split code up, so it can be easily unit tested
- Add unit tests for utility functions
- Add different display options for percentages
- Add contribution section on README.md
2023-03-20 15:27:12 +00:00
544146 83c4a76caf Add parametrized unit test coverage 2023-03-20 13:35:47 +00:00
thomas 235ec21f3d
Update README.md 2023-03-20 04:17:54 +00:00
thomas 3bb75c4fce
Update README.md 2023-03-20 04:01:12 +00:00
544146 977fa06088 Fix README.md 2023-03-20 03:56:30 +00:00
544146 4cc60d7e13 Run pre-commit on entire project 2023-03-20 03:50:20 +00:00
544146 b77707c7cd Update README.md 2023-03-20 03:45:02 +00:00
544146 6f3748f390 Add initial files for Aspect Ratio Helper 2023-03-20 03:21:15 +00:00