Coupling the image retrieval method to the text content was a bad idea, realised it probably wouldn't work if localisation was applied. This has been changed to use the index of the button with the selected class, which is hopefully less brittle and also will work regardless of the hierarchy of elements. Still coupled to the "selected" class though, but its an improvement.
Use less brittle current img2img image retrieval
Update styling to use variables for different themes
https://github.com/thomasasfk/sd-webui-aspect-ratio-helper/issues/46
Coupling the image retrieval method to the text content was a bad idea, realised it probably wouldn't work if localisation was applied. This has been changed to use the index of the button with the selected class, which is hopefully less brittle and also will work regardless of the hierarchy of elements. Still coupled to the "selected" class though, but its an improvement.