Welcome to sd-web-ui-quickcss Discussions! #1
Replies: 10 comments 118 replies
-
Hi, hope u r doing great. I made some modifications on the user.css file and added color variables. New user.css -> https://pastebin.com/frSUF2xN Variables:
it is possible to do this? ->
also, to reorganize a little bit the layout in order to fit everything on it:
And, it is possible to add this extesion directly to the Settings tab and remove it from the main tab? You can make the image holder for the favicon and logo smaller ( a tiny one, i dnt think we need the image to large) to fit better on the settings tab. Related to the favicon: In order to change the favicon, we need to modify the webui.py manually, is there a way to have a button to read the webui.py file and check if the code line was already added, in case is not, to add the line code? This because when Automatic1111 update his webui.py file, the code is removed and we have to add it manually again. The code is this one:
Example where the code should be:
Also, may I ask, your code modify anything on the main style.css in the root folder? or just the user.css? I was thinking that u can include this user.css on your repo.
I was trying to do this modififying your code, but im not good at it, sorry... Let me know what you think about this And thanks for everything. |
Beta Was this translation helpful? Give feedback.
-
@Nacurutu
Currently, the script doesn't load the style in to user.css or root's style.css. The webui checks if each extension includes their own stylesheet. then appends the user.css on the end in memory. This would mean user.css could overwrite anything in the extensions stylesheet because of load order, unless there is higher specificity in the stylesheet. I think this is the desired behavior, in case a user needs a few custom things. We can revisit this. Currently it works on my system while in the extensions folder, but for a complete make over, it may be necessary to put it in root. Before I learned about extensions being able to load their own stylesheet, in one of my other projects, I made a thing where I modified the root's user.css and added rules to resize my components. So this can be done. Keeping the variables together in an area will make it more convenient and easier to read, modify, and rewrite. I'm thinking javascript
Regular expression module, in linux it's as simple as using I'll come back to this. I'm going to try a couple of things to make sure I'm not talking out of my ass. |
Beta Was this translation helpful? Give feedback.
-
@Gerschel today, if i have the time, going to start making some different color palettes... then, will send u the files so you can add them to the Styles folder. I already have updated neon.css and i have a new one... planing to make at least, 5 of them |
Beta Was this translation helpful? Give feedback.
-
I created a theme if you want to include it — let me know. (I still need to clean up a few small details). |
Beta Was this translation helpful? Give feedback.
-
Aparently, Automatic1111 Github account got suspended Heres the gitgud link to the WebUI |
Beta Was this translation helpful? Give feedback.
-
Can I get a link to the most current retrowave. But now I don't have a working version of retrowave to put back in it's place. |
Beta Was this translation helpful? Give feedback.
-
@Nacurutu You can separate special affects into different css sheets and we can force them in. But here's a js one. :root, * , quickcss_target{
--Primary_color: #6bb300;
--Secondary_color: #115f28;
--Input_text_color: #11ee5e;
--Input_text_color_focus: #00bd48;
--App_color: #0af019;
--Background_color: #020401;
--Checked_text: #01e947;
/*ENDCOLORPICKERS*/
--UI_radius: 19;
/*BREAKFILEREADER*/
--logo: url("file=logo.png");
--favicon: url("file=favicon.svg");
} Grab Alani, just move the color sliders in the green range, all, slight darkgreen still in heavy black background: paste this in to your devtools console. let matrixCanvas = document.createElement("canvas")
matrixCanvas.setAttribute("style", "position: fixed;")
gradioApp().querySelector("div[class*=container]:not([class^=modal])").insertAdjacentElement('afterbegin', matrixCanvas)
// Initialising the canvas
var canvas = gradioApp().querySelector('canvas'),
ctx = canvas.getContext('2d');
// Setting the width and height of the canvas
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
// Setting up the letters
var letters = 'ABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZABCDEFGHIJKLMNOPQRSTUVXYZ';
letters = letters.split('');
// Setting up the columns
var fontSize = 10,
columns = canvas.width / fontSize;
// Setting up the drops
var drops = [];
for (var i = 0; i < columns; i++) {
drops[i] = 1;
}
// Setting up the draw function
function draw() {
ctx.fillStyle = 'rgba(0, 0, 0, .1)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
for (var i = 0; i < drops.length; i++) {
var text = letters[Math.floor(Math.random() * letters.length)];
ctx.fillStyle = '#0f0';
ctx.fillText(text, i * fontSize, drops[i] * fontSize);
drops[i]++;
if (drops[i] * fontSize > canvas.height && Math.random() > .95) {
drops[i] = 0;
}
}
}
// Loop the animation
setInterval(draw, 33); |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I was a little bit busy with some stuff from work. Great advances here.. congrats @Gerschel I managed to force the inpainting tab to be a little bit easy to work, but the changes breaks the mobile layout, so, if you are not going to use the webUI on your mobile phone, you can use it without a problem. Everything on CSS (what a headache). Repo updated with the new files: Enjoy! PS: I hope you can find a way to edit the layout using the extension and JS, because doing it just on the CSS is a mess. a lot of ID that changes every time u restart the webUI, so I can't work with that ones. |
Beta Was this translation helpful? Give feedback.
-
I was looking at how to create the js backgrounds, looking for code on google. However, as I don't know anything about coding, I'm just copying/pasting the js codes I found. But none are working. Is there a specific way to do them? some template or something? |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
Beta Was this translation helpful? Give feedback.
All reactions