Commit Graph

37 Commits

Author SHA1 Message Date
altoiddealer
4077d39710 Fix buttons affecting t2i and i2i simultaneously
Now, the buttons on the txt2img and im2img tabs work fully independently of each other
2024-03-21 21:21:26 -04:00
altoiddealer
6735fcce7f Do not use global variable for Lock mode 2024-03-21 13:04:14 -04:00
altoiddealer
5eed9d943b Make AR btns match current orientation 2024-03-21 12:34:48 -04:00
altoiddealer
ff5a130b24 Fix .js titles not showing for some buttons 2024-03-20 16:33:31 -04:00
altoiddealer
e6f150ec19 Final version 2024-03-20 15:01:03 -04:00
altoiddealer
d465f144f3 Revamp code. Next commit is final. 2024-03-19 22:10:20 -04:00
altoiddealer
eecac33e91 Replace AR to w/h method 2024-03-13 11:11:10 -04:00
Lounger
e739110085 Fix Gradio warning 2023-11-28 16:44:48 +01:00
LEv145
2a4c13c211 Add prefix for element ids (For CSS and JS) 2023-07-05 15:03:49 +02:00
LEv145
102d3b5faa Hide gradio updates for "Aspect Ratio" markdown
Css trick
2023-07-04 16:32:47 +02:00
LEv145
6041b407fe Rename Fixme 2023-07-04 16:31:00 +02:00
LEv145
15ac0bd30e Move tabs
Nw emoji for `round`
2023-07-04 11:24:49 +02:00
LEv145
ed155fc877 Add round button (1023x101 => 1024x100) 2023-07-04 09:38:39 +02:00
LEv145
1e15a5c2aa Format code 2023-07-04 08:51:50 +02:00
LEv145
41ce78ae58 Format code 2023-07-04 08:51:42 +02:00
LEv145
52b7e129f7 Move click functions 2023-07-04 08:51:06 +02:00
LEv145
a420d9b357 Add round_to_multiple function 2023-07-04 08:47:34 +02:00
LEv145
57d1f99364 Update emojis 2023-07-02 17:41:41 +02:00
LEv145
48fa82044c Update emojis 2023-07-02 17:38:52 +02:00
LEv145
d1bf50f00c Add button for change default logic of apply
Update styles
Rename constants to UPPERCASE
2023-07-02 13:54:58 +02:00
LEv145
2d34f694d3 Update aspect ratio panel
Aspect ratio changed according to wikipedia (https://en.wikipedia.org/wiki/Aspect_ratio_(image))
Slightly redesigned for 1:1 for a better look
Update preview image
2023-07-01 12:27:49 +02:00
LEv145
ffa554537b Calculator button is returned 2023-07-01 02:55:19 +02:00
LEv145
db639d5315 Updated to convenient settings
Make calculation of height and width inverse, that is, the way it is convenient for me
Disable `calculator_button` in css
Use flex(dynamic) width for all buttons
Add resolution presets by formula: `f(x) = 512 + (1024-512)/4*x, 0 <= x <= 4 `
Add ratios presets
2023-06-29 18:48:27 +02:00
alemelis
9df49dc2d7 fix
return round(h * (n / d))
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
2023-04-12 10:23:17 +01:00
roamindev
40e1de2c52 Fix JS File Path Variable
Corrected Path variable for button_titles.js file to proper formatting/usage.
2023-04-11 19:30:53 -04:00
roamindev
eb94a0937f Add JS based button titles
Add button titles on UI load. Use comments in aspect_ratios.txt and resolutions.txt to for user configured buttons, and hard-coded titles in sd-webui-ar.js for built-in buttons (i.e. for calculator).
2023-04-04 11:06:50 -04:00
roamindev
82699b5536 Simplify ratio calculation and other changes
Simplified ratio calculation, swapped calculator button icon for text to ensure browser compatibility, updated button styles, simplified self.image declaration.
2023-04-02 21:18:49 -04:00
roamindev
fd54596c19 Make recommended review changes
Made recommended review changes except where noted in review comments.
2023-03-31 22:27:15 -04:00
roamindev
2fc8d9e3b1 Added aspect ratio calculator
Added aspect ratio calculator panel inspired by the aspect ration calculator website by Andrew Hedges (https://andrew.hedges.name/experiments/aspect_ratio/)
2023-03-30 22:53:10 -04:00
Jonas Stare
5662bab6c8 Enable users to enter aspect rations as w/h 2023-02-22 22:14:14 +01:00
alemelis
9c0827baf0 pull the band-aid and get it over with 2023-02-20 08:55:04 +00:00
alemelis
a580c34aa7 fix for ar < 1 2023-02-08 09:31:15 +00:00
alemelis
60119a641c fix img2img tab 2023-02-06 14:21:15 +00:00
alemelis
ec93fa84f7 allow for custom resolution presets 2023-02-06 14:09:54 +00:00
alemelis
9c2a7edceb add resolutions.txt 2023-02-06 08:42:34 +00:00
minemo
81bb9c9428 Fixed encoding mismatch 2023-02-04 13:55:12 +01:00
alemelis
96d00ec25b port UI changes to extension 2023-02-03 10:18:32 +00:00