Kim Juwon
commited on
Commit
·
867dd48
1
Parent(s):
39ade08
update UI/UX
Browse files- __pycache__/app.cpython-39.pyc +0 -0
- app.py +11 -11
__pycache__/app.cpython-39.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-39.pyc and b/__pycache__/app.cpython-39.pyc differ
|
|
|
app.py
CHANGED
|
@@ -66,9 +66,9 @@ def show_settings_changed_info(agent_type, personality, expertise_level, languag
|
|
| 66 |
Chat has been reset. Please start a new conversation with the updated settings.
|
| 67 |
"""
|
| 68 |
|
| 69 |
-
#
|
| 70 |
custom_css = """
|
| 71 |
-
/* 기본
|
| 72 |
body, .gradio-container {
|
| 73 |
background-color: #f9f9fb;
|
| 74 |
color: #333;
|
|
@@ -86,7 +86,7 @@ body, .gradio-container {
|
|
| 86 |
border-radius: 10px;
|
| 87 |
}
|
| 88 |
.gr-button-primary {
|
| 89 |
-
background-color: #
|
| 90 |
color: #fff !important;
|
| 91 |
}
|
| 92 |
.gr-button-secondary {
|
|
@@ -101,29 +101,29 @@ body, .gradio-container {
|
|
| 101 |
/* 다크 모드 */
|
| 102 |
@media (prefers-color-scheme: dark) {
|
| 103 |
body, .gradio-container {
|
| 104 |
-
background-color: #
|
| 105 |
-
color: #
|
| 106 |
}
|
| 107 |
.gr-box, .gr-group, .gr-column, .gr-dropdown, .gr-textbox, .gr-markdown {
|
| 108 |
-
background-color: #
|
| 109 |
-
color: #
|
| 110 |
border: 1px solid #333;
|
| 111 |
}
|
| 112 |
.gr-chatbot {
|
| 113 |
background-color: #1a1a1a;
|
| 114 |
-
color: #
|
| 115 |
}
|
| 116 |
.gr-button-primary {
|
| 117 |
background-color: #ff7847 !important;
|
| 118 |
color: #fff !important;
|
| 119 |
}
|
| 120 |
.gr-button-secondary {
|
| 121 |
-
background-color: #
|
| 122 |
color: #fff !important;
|
| 123 |
}
|
| 124 |
.gr-dropdown select, .gr-textbox textarea {
|
| 125 |
-
background-color: #
|
| 126 |
-
color: #
|
| 127 |
}
|
| 128 |
}
|
| 129 |
"""
|
|
|
|
| 66 |
Chat has been reset. Please start a new conversation with the updated settings.
|
| 67 |
"""
|
| 68 |
|
| 69 |
+
# 🎨 완벽한 다크/라이트 모드 CSS
|
| 70 |
custom_css = """
|
| 71 |
+
/* 기본(라이트 모드) */
|
| 72 |
body, .gradio-container {
|
| 73 |
background-color: #f9f9fb;
|
| 74 |
color: #333;
|
|
|
|
| 86 |
border-radius: 10px;
|
| 87 |
}
|
| 88 |
.gr-button-primary {
|
| 89 |
+
background-color: #ff7847 !important;
|
| 90 |
color: #fff !important;
|
| 91 |
}
|
| 92 |
.gr-button-secondary {
|
|
|
|
| 101 |
/* 다크 모드 */
|
| 102 |
@media (prefers-color-scheme: dark) {
|
| 103 |
body, .gradio-container {
|
| 104 |
+
background-color: #0d0d0d;
|
| 105 |
+
color: #f0f0f0;
|
| 106 |
}
|
| 107 |
.gr-box, .gr-group, .gr-column, .gr-dropdown, .gr-textbox, .gr-markdown {
|
| 108 |
+
background-color: #1a1a1a;
|
| 109 |
+
color: #f0f0f0;
|
| 110 |
border: 1px solid #333;
|
| 111 |
}
|
| 112 |
.gr-chatbot {
|
| 113 |
background-color: #1a1a1a;
|
| 114 |
+
color: #f0f0f0;
|
| 115 |
}
|
| 116 |
.gr-button-primary {
|
| 117 |
background-color: #ff7847 !important;
|
| 118 |
color: #fff !important;
|
| 119 |
}
|
| 120 |
.gr-button-secondary {
|
| 121 |
+
background-color: #444 !important;
|
| 122 |
color: #fff !important;
|
| 123 |
}
|
| 124 |
.gr-dropdown select, .gr-textbox textarea {
|
| 125 |
+
background-color: #1a1a1a;
|
| 126 |
+
color: #f0f0f0;
|
| 127 |
}
|
| 128 |
}
|
| 129 |
"""
|