Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
8b74b9aa
Commit
8b74b9aa
authored
Oct 20, 2022
by
papuSpartan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add symbol for clear button and simplify roll_col css selector
parent
604620a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
ui.py
modules/ui.py
+2
-0
style.css
style.css
+1
-1
No files found.
modules/ui.py
View file @
8b74b9aa
...
@@ -83,6 +83,7 @@ folder_symbol = '\U0001f4c2' # 📂
...
@@ -83,6 +83,7 @@ folder_symbol = '\U0001f4c2' # 📂
refresh_symbol
=
'
\U0001f504
'
# 🔄
refresh_symbol
=
'
\U0001f504
'
# 🔄
save_style_symbol
=
'
\U0001f4be
'
# 💾
save_style_symbol
=
'
\U0001f4be
'
# 💾
apply_style_symbol
=
'
\U0001f4cb
'
# 📋
apply_style_symbol
=
'
\U0001f4cb
'
# 📋
trash_prompt_symbol
=
'
\U0001F5D1
'
# 🗑🗑🗑
def
plaintext_to_html
(
text
):
def
plaintext_to_html
(
text
):
...
@@ -498,6 +499,7 @@ def create_toprow(is_img2img):
...
@@ -498,6 +499,7 @@ def create_toprow(is_img2img):
paste
=
gr
.
Button
(
value
=
paste_symbol
,
elem_id
=
"paste"
)
paste
=
gr
.
Button
(
value
=
paste_symbol
,
elem_id
=
"paste"
)
save_style
=
gr
.
Button
(
value
=
save_style_symbol
,
elem_id
=
"style_create"
)
save_style
=
gr
.
Button
(
value
=
save_style_symbol
,
elem_id
=
"style_create"
)
prompt_style_apply
=
gr
.
Button
(
value
=
apply_style_symbol
,
elem_id
=
"style_apply"
)
prompt_style_apply
=
gr
.
Button
(
value
=
apply_style_symbol
,
elem_id
=
"style_apply"
)
trash_prompt
=
gr
.
Button
(
value
=
trash_prompt_symbol
,
elem_id
=
"trash_prompt"
)
token_counter
=
gr
.
HTML
(
value
=
"<span></span>"
,
elem_id
=
f
"{id_part}_token_counter"
)
token_counter
=
gr
.
HTML
(
value
=
"<span></span>"
,
elem_id
=
f
"{id_part}_token_counter"
)
token_button
=
gr
.
Button
(
visible
=
False
,
elem_id
=
f
"{id_part}_token_button"
)
token_button
=
gr
.
Button
(
visible
=
False
,
elem_id
=
f
"{id_part}_token_button"
)
...
...
style.css
View file @
8b74b9aa
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
padding
:
0.4em
0
;
padding
:
0.4em
0
;
}
}
#roll
,
#paste
,
#style_create
,
#style_apply
{
#roll
_col
>
button
{
min-width
:
2em
;
min-width
:
2em
;
min-height
:
2em
;
min-height
:
2em
;
max-width
:
2em
;
max-width
:
2em
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment