20 Commits

Author SHA1 Message Date
altoiddealer
7f26881361 Buttons without inheritance
Most credit goes to [LEv145](https://github.com/LEv145) for solving the inheritance issue in sd-webui-forge (due to their implementation of Gradio 4)
2024-08-21 12:11:25 -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
LEv145
10add5e9d3 Improved readability 2023-07-13 14:41:27 +02:00
LEv145
880766a744 Fix for Lobe theme
`modules.ui_components.ToolButton` don't work with properties `visible`, `variant` (d4c4a48e80/src/styles/components/button.ts)
2023-07-13 14:35:48 +02:00
LEv145
2a4c13c211 Add prefix for element ids (For CSS and JS) 2023-07-05 15:03:49 +02:00
LEv145
7cd0acb5ed Update TODO 2023-07-05 14:58:50 +02:00
LEv145
338806aa67 Update height 2023-07-04 16:35:08 +02:00
LEv145
102d3b5faa Hide gradio updates for "Aspect Ratio" markdown
Css trick
2023-07-04 16:32:47 +02:00
LEv145
a20b4542af Update width of tool buttons
Because I use emoji, not text
2023-07-02 17:29:11 +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
46ef09f07f Remove unused styles 2023-06-30 01:47:57 +02:00
LEv145
d99d1e9666 Update styles for img2img 2023-06-30 01:47:13 +02:00
LEv145
9bfca5c57b Add a little margin for buttons box 2023-06-29 20:59:00 +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
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
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
Alessandro Melis
df702c6e9e add style 2023-03-30 20:35:47 +01:00