From ee9ecf8143bde5189a501316e0c769b4cb90e7bd Mon Sep 17 00:00:00 2001 From: Daniele Date: Wed, 8 Feb 2023 14:10:14 +0000 Subject: [PATCH 1/5] Buttons mouse hover style --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 29caf98..187e38f 100644 --- a/index.html +++ b/index.html @@ -145,6 +145,12 @@ font-size: 15px; margin: 0; } + #btnRefreshModels:hover { + background-color: #333; + } + .btnSquare:hover { + background-color: #333; + } #btnUpdate { background-color: #3555ac; color: white; From 027e0a386547107bf7cdc3d4dc7b40f10a56e4d3 Mon Sep 17 00:00:00 2001 From: Daniele Date: Thu, 9 Feb 2023 04:04:25 +0000 Subject: [PATCH 2/5] button restyling --- icon/accept_all.svg | 1 + icon/accept_selected.svg | 1 + icon/camera_icon.svg | 14 +++++++ icon/discard_all.svg | 1 + icon/discard_selected.svg | 1 + icon/reset_settings2.png | Bin 0 -> 536 bytes index.html | 77 +++++++++++++++----------------------- 7 files changed, 49 insertions(+), 46 deletions(-) create mode 100644 icon/accept_all.svg create mode 100644 icon/accept_selected.svg create mode 100644 icon/camera_icon.svg create mode 100644 icon/discard_all.svg create mode 100644 icon/discard_selected.svg create mode 100644 icon/reset_settings2.png diff --git a/icon/accept_all.svg b/icon/accept_all.svg new file mode 100644 index 0000000..b8f9be7 --- /dev/null +++ b/icon/accept_all.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon/accept_selected.svg b/icon/accept_selected.svg new file mode 100644 index 0000000..30342c6 --- /dev/null +++ b/icon/accept_selected.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon/camera_icon.svg b/icon/camera_icon.svg new file mode 100644 index 0000000..ad13b59 --- /dev/null +++ b/icon/camera_icon.svg @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/icon/discard_all.svg b/icon/discard_all.svg new file mode 100644 index 0000000..e290f41 --- /dev/null +++ b/icon/discard_all.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon/discard_selected.svg b/icon/discard_selected.svg new file mode 100644 index 0000000..8ffdc69 --- /dev/null +++ b/icon/discard_selected.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon/reset_settings2.png b/icon/reset_settings2.png new file mode 100644 index 0000000000000000000000000000000000000000..da2a6dc67344b9458c4608b94159cf51447bed5a GIT binary patch literal 536 zcmV+z0_XjSP)MrY9uQrp*J#^W9tH6RnosP$y5b?cF~BwbDsurXN|TkKpIPNdy4W5?u8<9fNwGdKLA zou7gK2ZE73T7MpxPV{-gZ(9>aSLnkZ@>P%SBcY~T;PV<*eNu&F73Y+$oBgrXk_0kz#2 zXwi{ixCxdtPu&Z|6|sCuYDZwjO2*2%-vP7_X1g&_L;`4QO}dh6R9WDcm=Q@
- - - + + + - - -
+ > Interrupt + +
@@ -846,6 +833,7 @@ + > + >
From ff2bfc1f584e0ec761df375991057a088225d40d Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj <7842232+AbdullahAlfaraj@users.noreply.github.com> Date: Fri, 10 Feb 2023 00:57:21 +0300 Subject: [PATCH 3/5] added instructional installation video using the UXP method by Vladimir Chopine --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7780a82..141ef82 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,11 @@ for advance/professional users who want to use the smart masking mode, we have a # Demo: [![Click Here to Watch Demo](https://i3.ytimg.com/vi/VL_gbQai79E/maxresdefault.jpg)](https://youtu.be/VL_gbQai79E "Stable diffusion AI Photoshop Plugin Free and Open Source") # How to install Video Tutorial: -we recommend you use [the one click installer](#one-click-installer) watch the video to know how to install Automatic1111 Stable Diffusion -[![Click Here to Watch How To Install Tutorial](https://user-images.githubusercontent.com/7842232/215471551-2d39c6c2-a765-4eca-bc54-7b386aa25662.png)](https://youtu.be/BNzdhEpFHrg "How To Install Auto Photoshop Stable Diffusion Plugin") +we recommend you use [the one click installer](#one-click-installer). However watch the video on left if you don't have Automatic1111 Stable Diffusion installed, and the video on the right by Vladimir Chopine for clear instruction on how to install the plugin using UXP. + + + + # Instructional Tutorial (outpaint, inpaint, img2img and txt2img): [![Click Here to Watch Tutorial](http://i3.ytimg.com/vi/evjSIfYIQq0/hqdefault.jpg)](https://www.youtube.com/watch?v=evjSIfYIQq0&ab_channel=Abdsart "Tutorial - Auto Photoshop Stable Diffusion Plugin") @@ -77,7 +80,8 @@ we recommend you use [the one click installer](#one-click-installer) ``` git clone https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin.git ``` -2) run "start_server.bat" inside "Auto-Photoshop-StableDiffusion-Plugin" directory +2) run "start_se![Uploading How to Install Tutorial 1.png…]() +rver.bat" inside "Auto-Photoshop-StableDiffusion-Plugin" directory 3) go to where you have [automatic1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) installed. Edit the "webui-user.bat" in automatic1111 change this line From 93d75b429235ad24f8758ade9150109435bf8dca Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj <7842232+AbdullahAlfaraj@users.noreply.github.com> Date: Fri, 10 Feb 2023 00:59:40 +0300 Subject: [PATCH 4/5] added link to the wiki --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 141ef82..4547f26 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,8 @@ we recommend you use [the one click installer](#one-click-installer). However wa # Instructional Tutorial (outpaint, inpaint, img2img and txt2img): +we recommend you check the [tutorials](https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/wiki) section to master the tool. + [![Click Here to Watch Tutorial](http://i3.ytimg.com/vi/evjSIfYIQq0/hqdefault.jpg)](https://www.youtube.com/watch?v=evjSIfYIQq0&ab_channel=Abdsart "Tutorial - Auto Photoshop Stable Diffusion Plugin") # How to install: From 0ccd4a935a7bc719a8a38ac460fd035a6660de71 Mon Sep 17 00:00:00 2001 From: Lakto Date: Fri, 10 Feb 2023 00:34:20 -0800 Subject: [PATCH 5/5] convert 1d index to 2d array --- helper.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/helper.js b/helper.js index f36b4e5..dc3940b 100644 --- a/helper.js +++ b/helper.js @@ -107,6 +107,16 @@ async function unSelect() { return result } +/** + * Convert 1d index to 2d array + * @param {number} index sequential index + * @param {number} width width of 2d array + * @returns {number[]} [x,y] + */ +function indexToXY(index, width) { + return [index % width, Math.floor(index / width)] +} + // async function layerToSelectionHelper () { // // console.log("executeAsModal layer.translate")