Commit Graph

8 Commits

Author SHA1 Message Date
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
c3193a5dbc Update pre-commit config & run pre-commit (#56) 2023-05-28 18:33:58 +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
1e8f758146 Add option to hide accordion by default (#29) 2023-03-24 15:50:20 +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
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
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