Skip to content

Commit a4eac79

Browse files
committed
Update
1 parent f2ee872 commit a4eac79

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

particleanalyzer/core/ui.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def assets_path(name: str):
4747

4848
my_theme = gr.Theme.load(f"{assets_path('')}/themes/[email protected]").set(
4949
checkbox_label_background_fill='#2196f3',
50-
input_background_fill_focus='white',
50+
checkbox_label_background_fill_dark='#2196f3',
51+
input_background_fill_focus='f1f5f9',
52+
input_background_fill_focus_dark='334155',
5153
)
5254

5355

@@ -123,7 +125,7 @@ def create_interface(api_key):
123125
demo.load(None, None, js=toggleTheme)
124126
with gr.Tabs(elem_id="tabs"):
125127
with gr.Tab(i18n("Анализ")):
126-
with gr.Row(elem_id="analyze-row"):
128+
with gr.Row():
127129
with gr.Column():
128130
with gr.Row():
129131
scale_selector = gr.Dropdown(
@@ -143,7 +145,7 @@ def create_interface(api_key):
143145
<img src="https://rybakov-k.ru/images/instruction.gif" alt="Instructions for setting the scale">
144146
"""
145147
)
146-
with gr.Row(equal_height=True):
148+
with gr.Row(equal_height=True, elem_id="analyze-row"):
147149
with gr.Column(visible=False) as Paint_row:
148150
im = gr.Paint(
149151
label=i18n("Изображение СЭМ"),

particleanalyzer/core/ui_styles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
display: none !important;
315315
}
316316
317-
#analyze-row, #button-row, #button-row, #example-row {
317+
#button-row, #example-row {
318318
margin-top: -10px; /* расстояние между строками */
319319
}
320320
#button-row {

0 commit comments

Comments
 (0)