From ee621fa09133b5634b0612aa5c5e831b68bbba04 Mon Sep 17 00:00:00 2001 From: Malcolm Diller Date: Sat, 15 Oct 2022 15:23:48 -0700 Subject: [PATCH 01/10] pruned out all the auto-settings saving stuff --- ui/index.html | 18 ----- ui/media/main.css | 49 -------------- ui/media/main.js | 166 ---------------------------------------------- 3 files changed, 233 deletions(-) diff --git a/ui/index.html b/ui/index.html index b968bb1c..f36cfd6e 100644 --- a/ui/index.html +++ b/ui/index.html @@ -39,12 +39,6 @@
  • -
  • - - - - -

  • @@ -221,17 +215,6 @@ - -
     
    -

    +


    diff --git a/ui/media/main.css b/ui/media/main.css index 31d0c656..47896983 100644 --- a/ui/media/main.css +++ b/ui/media/main.css @@ -55,6 +55,7 @@ * { font-family: Work Sans, Verdana, Geneva, sans-serif; + box-sizing: border-box; } body { @@ -74,12 +75,6 @@ label { #prompt { width: 100%; height: 65pt; - box-sizing: border-box; -} -@media screen and (max-width: 600px) { - #prompt { - width: 95%; - } } .image_preview_container { /* display: none; */ @@ -228,6 +223,7 @@ label { } .flex-container { display: flex; + width: 100%; } .col-50 { flex: 50%; @@ -517,6 +513,11 @@ img { #editor-settings-entries table td:first-child { float: right; padding-right: 4px; + white-space: nowrap; +} + +#negative_prompt { + width: 100%; } button, @@ -570,3 +571,40 @@ input[type="range"]::-moz-range-thumb { height: 24px; border-radius: 12px; } */ + +@media screen and (max-width: 700px) { + body { + margin: 0px; + } + #container { + margin: 0px; + padding: 10px + } + .flex-container { + flex-direction: column; + } + #preview { + margin: 0px; + padding: 0px; + } + #preview .collapsible-content { + padding: 0px; + } + #preview .collapsible-content { + padding: 0px; + } + .imgItem { + margin-right: 0px; + } + .imgItem img { + height: 100%; + width: 100%; + object-fit: contain; + } + .dropdown-content { + width: auto !important; + transform: none !important; + left: 0px; + right: 0px; + } +} From 72a65218beee85309bbae90ab27ad51645325cb8 Mon Sep 17 00:00:00 2001 From: Malcolm Diller Date: Sat, 15 Oct 2022 18:04:41 -0700 Subject: [PATCH 06/10] updated some of the styling and positioning of some stuff --- ui/media/main.css | 50 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/ui/media/main.css b/ui/media/main.css index 47896983..20f8726a 100644 --- a/ui/media/main.css +++ b/ui/media/main.css @@ -9,11 +9,13 @@ --text-color: #eee; - --input-text-color: #ccc; - --input-background-color: hsl(225, 11.1%, 14%); - --input-border-color: hsl(225, 11.1%, 10%); + --input-text-color: black; + --input-background-color: #e9e9ed; + --input-border-color: #8f8f9d; - /* non-theme stuff */ + /* other */ + --input-border-radius: 4px; + --input-border-size: 1px; --accent-color: hsl(var(--accent-hue), 100%, var(--accent-lightness)); --make-image-border: 2px solid hsl(var(--accent-hue), 100%, calc(var(--accent-lightness) - 21%)); } @@ -36,7 +38,7 @@ */ /* Discord Theme */ -/* +/* :root { --background-color1: #36393f; --background-color2: #2f3136; @@ -47,10 +49,30 @@ --accent-lightness: 65%; --make-image-border: none; + --input-border-size: 2px; --input-background-color: #202225; --input-border-color: var(--input-background-color); -} -*/ +} */ + +/* Dillerm Theme */ +/* :root { + --main-hue: 222; + --main-saturation: 18%; + --value-base: 19%; + --value-step: 3%; + --background-color1: hsl(var(--main-hue), var(--main-saturation), var(--value-base)); + --background-color2: hsl(var(--main-hue), var(--main-saturation), calc(var(--value-base) - (1 * var(--value-step)))); + --background-color3: hsl(var(--main-hue), var(--main-saturation), calc(var(--value-base) - (2 * var(--value-step)))); + --background-color4: hsl(var(--main-hue), var(--main-saturation), calc(var(--value-base) - (3 * var(--value-step)))); + + --accent-hue: 212; + --make-image-border: none; + + --input-border-size: 1px; + --input-background-color: var(--background-color3); + --input-text-color: #ccc; + --input-border-color: var(--background-color4); +} */ * { @@ -75,6 +97,7 @@ label { #prompt { width: 100%; height: 65pt; + font-size: 13px; } .image_preview_container { /* display: none; */ @@ -530,11 +553,11 @@ select { input, select, textarea { - border-radius: 6px; + border-radius: var(--input-border-radius); padding: 4px; accent-color: var(--accent-color); background: var(--input-background-color); - border: 2px solid var(--input-border-color); + border: var(--input-border-size) solid var(--input-border-color); color: var(--input-text-color); } @@ -554,6 +577,15 @@ textarea[disabled] { opacity: 0.5; } +input[type="file"] { + width: 100%; + padding: 2px; +} + +input::file-selector-button { + padding: 0px 4px; +} + /* input[type="range"] { -webkit-appearance: none; appearance: none; From 58d8a5ce466de12cc9cf1347809a0464b9387953 Mon Sep 17 00:00:00 2001 From: Malcolm Diller Date: Sat, 15 Oct 2022 18:34:59 -0700 Subject: [PATCH 07/10] added support for theming buttons --- ui/media/main.css | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/ui/media/main.css b/ui/media/main.css index 20f8726a..4d852f45 100644 --- a/ui/media/main.css +++ b/ui/media/main.css @@ -13,6 +13,10 @@ --input-background-color: #e9e9ed; --input-border-color: #8f8f9d; + --button-text-color: var(--input-text-color); + --button-color: #e9e9ed; + --button-border: 1px solid #8f8f9d; + /* other */ --input-border-radius: 4px; --input-border-size: 1px; @@ -22,8 +26,7 @@ /* Light Theme */ -/* -:root { +/* :root { --background-color1: white; --background-color2: #dddddd; --background-color3: #e7e9eb; @@ -34,12 +37,11 @@ --input-text-color: black; --input-background-color: #f8f9fa; --input-border-color: grey; -} -*/ +} */ + /* Discord Theme */ -/* -:root { +/* :root { --background-color1: #36393f; --background-color2: #2f3136; --background-color3: #292b2f; @@ -48,13 +50,17 @@ --accent-hue: 235; --accent-lightness: 65%; --make-image-border: none; + + --button-color: var(--accent-color); + --button-border: none; + --input-text-color: #ccc; --input-border-size: 2px; --input-background-color: #202225; --input-border-color: var(--input-background-color); } */ -/* Dillerm Theme */ +/* Example "Custom" Theme */ /* :root { --main-hue: 222; --main-saturation: 18%; @@ -67,6 +73,9 @@ --accent-hue: 212; --make-image-border: none; + + --button-color: var(--accent-color); + --button-border: none; --input-border-size: 1px; --input-background-color: var(--background-color3); @@ -98,6 +107,7 @@ label { width: 100%; height: 65pt; font-size: 13px; + margin-bottom: 6px; } .image_preview_container { /* display: none; */ @@ -582,8 +592,18 @@ input[type="file"] { padding: 2px; } +button, +input::file-selector-button { + padding: 2px 4px; + border-radius: 4px; + background: var(--button-color); + color: var(--button-text-color); + border: var(--button-border); +} + input::file-selector-button { padding: 0px 4px; + height: 19px; } /* input[type="range"] { From f80602b51a6160b72ca8e3d7f8f7c518a9fe194f Mon Sep 17 00:00:00 2001 From: Malcolm Diller Date: Sat, 15 Oct 2022 18:39:56 -0700 Subject: [PATCH 08/10] tweaked styling of the size hint for the image --- ui/media/main.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/media/main.css b/ui/media/main.css index 4d852f45..684ad311 100644 --- a/ui/media/main.css +++ b/ui/media/main.css @@ -531,9 +531,10 @@ img { right: 0px; bottom: 3px; padding: 3px; - background: var(--background-color1); - color: var(--input-text-color); - opacity: 70%; + background: black; + color: white; + text-shadow: 0px 0px 4px black; + opacity: 60%; font-size: 12px; border-radius: 6px 0px; } From cb4d66d6feac6e4aa288d2de2b539a6d673d393d Mon Sep 17 00:00:00 2001 From: Malcolm Diller Date: Sat, 15 Oct 2022 21:15:11 -0700 Subject: [PATCH 09/10] removed temporary thing from env start script --- scripts/on_env_start.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/on_env_start.bat b/scripts/on_env_start.bat index 1ebea8e8..a73198ce 100644 --- a/scripts/on_env_start.bat +++ b/scripts/on_env_start.bat @@ -34,8 +34,8 @@ if "%update_branch%"=="" ( @cd sd-ui-files - @REM @call git reset --hard - @REM @call git checkout "%update_branch%" + @call git reset --hard + @call git checkout "%update_branch%" @call git pull @cd .. From edf2b2df6fc82c3ada132a1d40b5a82565196900 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 17 Oct 2022 11:21:35 +0530 Subject: [PATCH 10/10] Bump version; Shrink the size of the editor panel and font size --- ui/index.html | 6 +++--- ui/media/main.css | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/index.html b/ui/index.html index f50e9204..581f91f2 100644 --- a/ui/index.html +++ b/ui/index.html @@ -4,7 +4,7 @@ - + @@ -16,7 +16,7 @@
    - +