Spaces:
Running
Running
Upload 36 files
Browse files- index.html +5 -5
- kimi-css/kimi-settings.css +4 -4
- kimi-css/kimi-style.css +210 -123
- kimi-js/kimi-appearance.js +3 -3
- kimi-js/kimi-config.js +2 -2
- kimi-js/kimi-database.js +1 -1
- kimi-js/kimi-plugin-manager.js +2 -2
- kimi-js/kimi-script.js +1 -1
- kimi-js/kimi-utils.js +13 -3
- kimi-locale/de.json +2 -2
- kimi-locale/en.json +2 -2
- kimi-locale/es.json +2 -2
- kimi-locale/fr.json +2 -2
- kimi-locale/it.json +2 -2
- kimi-locale/ja.json +2 -2
- kimi-locale/zh.json +2 -2
- kimi-plugins/sample-theme/theme.css +0 -5
index.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<!doctype html>
|
2 |
-
<html lang="en" data-theme="
|
3 |
|
4 |
<head>
|
5 |
<meta charset="UTF-8" />
|
@@ -552,12 +552,12 @@
|
|
552 |
<label class="config-label" data-i18n="color_theme">Color Theme</label>
|
553 |
<div class="config-control">
|
554 |
<select class="kimi-select" id="color-theme">
|
555 |
-
<option value="
|
|
|
556 |
</option>
|
557 |
-
<option value="dark" data-i18n="theme_dark">Dark Night</option>
|
558 |
<option value="blue" data-i18n="theme_blue">Ocean Blue</option>
|
559 |
<option value="green" data-i18n="theme_green">Emerald Forest</option>
|
560 |
-
<option value="
|
561 |
</select>
|
562 |
</div>
|
563 |
</div>
|
@@ -879,7 +879,7 @@
|
|
879 |
<em>"This application is not just a technical project, it's the embodiment of a dream:
|
880 |
create a
|
881 |
true
|
882 |
-
virtual companion who grows, learns and loves."
|
883 |
</p>
|
884 |
</div>
|
885 |
|
|
|
1 |
<!doctype html>
|
2 |
+
<html lang="en" data-theme="dark">
|
3 |
|
4 |
<head>
|
5 |
<meta charset="UTF-8" />
|
|
|
552 |
<label class="config-label" data-i18n="color_theme">Color Theme</label>
|
553 |
<div class="config-control">
|
554 |
<select class="kimi-select" id="color-theme">
|
555 |
+
<option value="dark" selected data-i18n="theme_dark">Dark Night (Default)</option>
|
556 |
+
<option value="purple" data-i18n="theme_purple">Mystic Purple
|
557 |
</option>
|
|
|
558 |
<option value="blue" data-i18n="theme_blue">Ocean Blue</option>
|
559 |
<option value="green" data-i18n="theme_green">Emerald Forest</option>
|
560 |
+
<option value="pink" data-i18n="theme_pink">Passionate Pink</option>
|
561 |
</select>
|
562 |
</div>
|
563 |
</div>
|
|
|
879 |
<em>"This application is not just a technical project, it's the embodiment of a dream:
|
880 |
create a
|
881 |
true
|
882 |
+
virtual companion who grows, learns and loves." _"Love is the most powerful code"_ 💕</em>
|
883 |
</p>
|
884 |
</div>
|
885 |
|
kimi-css/kimi-settings.css
CHANGED
@@ -47,21 +47,21 @@
|
|
47 |
}
|
48 |
|
49 |
.settings-content::-webkit-scrollbar {
|
50 |
-
width:
|
51 |
}
|
52 |
|
53 |
.settings-content::-webkit-scrollbar-track {
|
54 |
-
background:
|
55 |
border-radius: 4px;
|
56 |
}
|
57 |
|
58 |
.settings-content::-webkit-scrollbar-thumb {
|
59 |
-
background: var(--
|
60 |
border-radius: 4px;
|
61 |
}
|
62 |
|
63 |
.settings-content::-webkit-scrollbar-thumb:hover {
|
64 |
-
background: var(--
|
65 |
}
|
66 |
|
67 |
@keyframes slideInUp {
|
|
|
47 |
}
|
48 |
|
49 |
.settings-content::-webkit-scrollbar {
|
50 |
+
width: var(--scrollbar-width);
|
51 |
}
|
52 |
|
53 |
.settings-content::-webkit-scrollbar-track {
|
54 |
+
background: var(--scrollbar-track-bg);
|
55 |
border-radius: 4px;
|
56 |
}
|
57 |
|
58 |
.settings-content::-webkit-scrollbar-thumb {
|
59 |
+
background: var(--scrollbar-thumb-bg);
|
60 |
border-radius: 4px;
|
61 |
}
|
62 |
|
63 |
.settings-content::-webkit-scrollbar-thumb:hover {
|
64 |
+
background: var(--scrollbar-thumb-hover-bg);
|
65 |
}
|
66 |
|
67 |
@keyframes slideInUp {
|
kimi-css/kimi-style.css
CHANGED
@@ -1,78 +1,78 @@
|
|
1 |
/* ===== CONSOLIDATED CSS VARIABLES - ENHANCED DYNAMIC THEMING ===== */
|
2 |
:root {
|
3 |
-
/* Core Theme Colors - Default
|
4 |
-
--primary-color: #
|
5 |
-
--primary-rgb:
|
6 |
-
--secondary-color: #
|
7 |
-
--accent-color: #
|
8 |
-
--background-overlay: rgba(
|
9 |
--interface-opacity: 0.7;
|
10 |
-
--gradient-start: #
|
11 |
-
--gradient-end: #
|
12 |
-
--text-glow: 0 0 10px rgba(
|
13 |
-
--button-hover: rgba(
|
14 |
--animations-enabled: 1;
|
15 |
-
--switch-color:
|
16 |
|
17 |
/* Contrast and Accessibility */
|
18 |
--contrast-ratio: 4.5; /* WCAG AA standard */
|
19 |
--text-on-primary: #ffffff;
|
20 |
-
--text-on-secondary: #
|
21 |
--text-on-accent: #ffffff;
|
22 |
-
--text-on-background: #
|
23 |
--border-opacity: 0.3;
|
24 |
--hover-opacity: 0.15;
|
25 |
--active-opacity: 0.25;
|
26 |
|
27 |
/* UI Component Colors - Chat Interface */
|
28 |
-
--chat-bg: rgba(
|
29 |
-
--chat-text: var(--text-on-
|
30 |
--chat-header-bg: rgba(255, 255, 255, 0.05);
|
31 |
-
--chat-border:
|
32 |
--chat-input-bg: rgba(255, 255, 255, 0.1);
|
33 |
--chat-input-text: var(--text-on-background);
|
34 |
--chat-input-placeholder: rgba(255, 255, 255, 0.6);
|
35 |
-
--chat-message-user-bg:
|
36 |
-
--chat-message-user-text: var(--text-on-
|
37 |
-
--chat-message-kimi-bg:
|
38 |
--chat-message-kimi-text: var(--text-on-background);
|
39 |
|
40 |
/* Modal & Overlay Colors */
|
41 |
-
--modal-bg: rgba(
|
42 |
-
--modal-border:
|
43 |
-
--modal-header-bg: linear-gradient(135deg,
|
44 |
-
--modal-text: var(--text-on-
|
45 |
-
--modal-title-color:
|
46 |
--modal-overlay-bg: rgba(0, 0, 0, 0.8);
|
47 |
--modal-close-hover-bg: rgba(255, 255, 255, 0.2);
|
48 |
|
49 |
/* Settings Panel & Tabs */
|
50 |
-
--settings-bg: #
|
51 |
--settings-text: var(--text-on-background);
|
52 |
-
--settings-tab-bg: #
|
53 |
--settings-tab-color: #bfa6b6;
|
54 |
--settings-tab-hover-bg: rgba(255, 255, 255, var(--hover-opacity));
|
55 |
--settings-tab-hover-color: rgba(255, 255, 255, 0.9);
|
56 |
-
--settings-tab-active-bg:
|
57 |
--settings-tab-active-color: var(--text-on-primary);
|
58 |
-
--settings-tab-border:
|
59 |
-
--settings-section-bg: #
|
60 |
-
--settings-section-border: rgba(
|
61 |
--settings-section-header-color: var(--text-on-background);
|
62 |
|
63 |
/* Form Element Colors */
|
64 |
--input-bg: rgba(255, 255, 255, 0.1);
|
65 |
--input-text: var(--text-on-background);
|
66 |
-
--input-border:
|
67 |
--input-focus-bg: rgba(255, 255, 255, var(--hover-opacity));
|
68 |
-
--input-focus-border:
|
69 |
--input-placeholder: rgba(255, 255, 255, 0.6);
|
70 |
|
71 |
/* Button Colors */
|
72 |
--button-primary-bg: var(--primary-color);
|
73 |
--button-primary-text: var(--text-on-primary);
|
74 |
--button-primary-hover-bg: var(--accent-color);
|
75 |
-
--button-secondary-bg: rgba(255, 255, 255, 0.
|
76 |
--button-secondary-text: var(--text-on-background);
|
77 |
--button-secondary-hover-bg: rgba(255, 255, 255, var(--hover-opacity));
|
78 |
--button-danger-bg: #e74c3c;
|
@@ -83,13 +83,13 @@
|
|
83 |
--select-bg: var(--input-bg);
|
84 |
--select-text: var(--input-text);
|
85 |
--select-border: var(--input-border);
|
86 |
-
--select-option-bg: rgba(
|
87 |
-
--select-option-text:
|
88 |
-
--select-option-hover-bg:
|
89 |
--select-option-hover-text: var(--text-on-primary);
|
90 |
-
--select-option-checked-bg:
|
91 |
--select-option-checked-text: var(--text-on-accent);
|
92 |
-
--select-option-disabled-bg: rgba(
|
93 |
--select-option-disabled-text: #666;
|
94 |
|
95 |
/* Slider Components */
|
@@ -97,22 +97,22 @@
|
|
97 |
--slider-track-active-bg: var(--primary-color);
|
98 |
--slider-thumb-bg: var(--primary-color);
|
99 |
--slider-thumb-hover-bg: var(--accent-color);
|
100 |
-
--slider-value-bg: #
|
101 |
-
--slider-value-border:
|
102 |
--slider-value-color: var(--text-on-background);
|
103 |
|
104 |
/* Toggle Switch */
|
105 |
-
--switch-bg-inactive: rgba(255, 255, 255, 0.
|
106 |
-
--switch-bg-active: linear-gradient(90deg,
|
107 |
--switch-thumb-color: #ffffff;
|
108 |
--switch-thumb-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
109 |
|
110 |
/* Mic Button & Pulse Effect */
|
111 |
--mic-button-bg: var(--button-hover);
|
112 |
-
--mic-button-border:
|
113 |
-
--mic-button-shadow: 0 0 15px
|
114 |
-
--mic-button-hover-bg:
|
115 |
-
--mic-button-hover-shadow:
|
116 |
--mic-button-icon-color: var(--text-on-primary);
|
117 |
--mic-listening-border: #27ae60;
|
118 |
--mic-listening-shadow: 0 0 15px #27ae60;
|
@@ -123,81 +123,81 @@
|
|
123 |
--video-fade-duration: 400ms;
|
124 |
|
125 |
/* Cards & Stats */
|
126 |
-
--card-bg: rgba(255, 255, 255, 0.
|
127 |
-
--card-border: rgba(255, 255, 255, 0.
|
128 |
-
--card-hover-bg: rgba(255, 255, 255, 0.
|
129 |
--card-text: var(--text-on-background);
|
130 |
-
--stat-value-color:
|
131 |
-
--stat-label-color: rgba(
|
132 |
|
133 |
/* Plugin Cards */
|
134 |
-
--plugin-card-bg: linear-gradient(135deg, #
|
135 |
-
--plugin-card-border:
|
136 |
--plugin-card-title-color: var(--text-on-background);
|
137 |
-
--plugin-card-desc-color:
|
138 |
-
--plugin-card-author-color:
|
139 |
-
--plugin-type-badge-bg:
|
140 |
--plugin-type-badge-text: var(--text-on-accent);
|
141 |
-
--plugin-active-badge-bg: linear-gradient(90deg,
|
142 |
--plugin-active-badge-text: var(--text-on-primary);
|
143 |
|
144 |
/* Help Modal */
|
145 |
-
--help-modal-bg:
|
146 |
-
--help-modal-border:
|
147 |
--help-content-color: var(--text-on-background);
|
148 |
--help-section-border: rgba(255, 255, 255, 0.1);
|
149 |
-
--creator-card-bg: rgba(255, 255, 255, 0.
|
150 |
-
--creator-card-border: rgba(255, 255, 255, 0.
|
151 |
-
--creator-avatar-bg: linear-gradient(135deg,
|
152 |
-
--creator-name-color:
|
153 |
-
--creator-role-bg: linear-gradient(135deg,
|
154 |
-
--creator-role-color: var(--text-on-
|
155 |
-
--philosophy-bg: rgba(
|
156 |
-
--philosophy-border: rgba(
|
157 |
-
--philosophy-border-left:
|
158 |
-
--feature-item-bg: rgba(255, 255, 255, 0.
|
159 |
-
--feature-item-border: rgba(
|
160 |
-
--feature-icon-color: #
|
161 |
-
--feature-title-color: #
|
162 |
-
--feature-text-color: rgba(
|
163 |
-
--guide-step-bg: rgba(255, 255, 255, 0.
|
164 |
-
--guide-step-number-bg: rgba(
|
165 |
--guide-step-number-color: var(--primary-color);
|
166 |
-
--tip-item-bg:
|
167 |
--tip-item-border: var(--feature-item-border);
|
168 |
|
169 |
/* Unified Scrollbar System */
|
170 |
-
--scrollbar-width: 8px;
|
171 |
-
--scrollbar-track-bg: rgba(255, 255, 255, 0.
|
172 |
-
--scrollbar-thumb-bg: rgba(
|
173 |
-
--scrollbar-thumb-hover-bg: rgba(
|
174 |
-
--scrollbar-thumb-active-bg: rgba(
|
175 |
-
--scrollbar-corner-bg: rgba(255, 255, 255, 0.05);
|
176 |
|
177 |
/* Model Colors */
|
178 |
-
--model-card-bg:
|
179 |
-
--model-card-border:
|
180 |
-
--model-card-hover-bg:
|
181 |
--model-card-selected-border: var(--primary-color);
|
182 |
-
--model-card-selected-shadow: 0 0 0 2px rgba(
|
183 |
--model-name-color: var(--text-on-background);
|
184 |
-
--model-description-color: rgba(
|
185 |
-
--model-strength-color:
|
186 |
--model-strength-text: var(--text-on-primary);
|
187 |
-
--model-provider-color:
|
188 |
--model-provider-text: var(--text-on-accent);
|
189 |
|
190 |
/* Text Colors */
|
191 |
--text-primary: var(--text-on-background);
|
192 |
-
--text-secondary: #
|
193 |
-
--text-muted: rgba(
|
194 |
|
195 |
/* Character Selection Colors */
|
196 |
-
--character-card-bg:
|
197 |
-
--character-card-border:
|
198 |
-
--character-card-hover-bg:
|
199 |
-
--character-selected-border:
|
200 |
-
--character-selected-bg: rgba(
|
201 |
--character-name-color: var(--text-on-background);
|
202 |
|
203 |
/* Waiting Indicator */
|
@@ -205,17 +205,125 @@
|
|
205 |
--loading-spinner-color: var(--primary-color);
|
206 |
|
207 |
/* Progress Bar */
|
208 |
-
--progress-bg: rgba(255, 255, 255, 0.
|
209 |
--progress-fill-bg: linear-gradient(90deg, var(--primary-color), var(--accent-color));
|
210 |
--progress-text-color: var(--text-on-background);
|
211 |
|
212 |
/* Transcript */
|
213 |
-
--transcript-bg: rgba(0, 0, 0, 0.
|
214 |
--transcript-text: var(--text-on-background);
|
215 |
--transcript-border: var(--primary-color);
|
216 |
}
|
217 |
|
218 |
/* ===== OPTIMIZED THEME VARIATIONS ===== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
[data-theme="blue"] {
|
220 |
--primary-color: #74b9ff;
|
221 |
--primary-rgb: 116, 185, 255;
|
@@ -285,11 +393,6 @@
|
|
285 |
--select-option-hover-bg: #74b9ff;
|
286 |
--select-option-checked-bg: #0984e3;
|
287 |
|
288 |
-
/* Scrollbar */
|
289 |
-
--scrollbar-thumb-bg: rgba(116, 185, 255, 0.4);
|
290 |
-
--scrollbar-thumb-hover-bg: rgba(116, 185, 255, 0.6);
|
291 |
-
--scrollbar-thumb-active-bg: rgba(116, 185, 255, 0.8);
|
292 |
-
|
293 |
/* Model Colors */
|
294 |
--model-strength-color: #0984e3;
|
295 |
--model-strength-text: #fff;
|
@@ -375,11 +478,6 @@
|
|
375 |
--select-option-hover-bg: #a29bfe;
|
376 |
--select-option-checked-bg: #6c5ce7;
|
377 |
|
378 |
-
/* Scrollbar */
|
379 |
-
--scrollbar-thumb-bg: rgba(162, 155, 254, 0.4);
|
380 |
-
--scrollbar-thumb-hover-bg: rgba(162, 155, 254, 0.6);
|
381 |
-
--scrollbar-thumb-active-bg: rgba(162, 155, 254, 0.8);
|
382 |
-
|
383 |
/* Model Colors */
|
384 |
--model-strength-color: #6c5ce7;
|
385 |
--model-strength-text: #fff;
|
@@ -508,11 +606,6 @@
|
|
508 |
--select-option-hover-bg: #27ae60;
|
509 |
--select-option-checked-bg: #16a085;
|
510 |
|
511 |
-
/* Scrollbar */
|
512 |
-
--scrollbar-thumb-bg: rgba(39, 174, 96, 0.4);
|
513 |
-
--scrollbar-thumb-hover-bg: rgba(39, 174, 96, 0.6);
|
514 |
-
--scrollbar-thumb-active-bg: rgba(39, 174, 96, 0.8);
|
515 |
-
|
516 |
/* Model Colors */
|
517 |
--model-strength-color: #27ae60;
|
518 |
--model-strength-text: var(--text-on-primary);
|
@@ -658,12 +751,6 @@
|
|
658 |
--select-option-hover-bg: #5e60ce;
|
659 |
--select-option-checked-bg: #8b5cf6;
|
660 |
|
661 |
-
/* Scrollbar */
|
662 |
-
--scrollbar-track-bg: rgba(255, 255, 255, 0.02);
|
663 |
-
--scrollbar-thumb-bg: rgba(94, 96, 206, 0.4);
|
664 |
-
--scrollbar-thumb-hover-bg: rgba(94, 96, 206, 0.6);
|
665 |
-
--scrollbar-thumb-active-bg: rgba(94, 96, 206, 0.8);
|
666 |
-
|
667 |
/* Model Colors */
|
668 |
--model-card-bg: rgba(255, 255, 255, 0.02);
|
669 |
--model-card-border: rgba(255, 255, 255, 0.05);
|
@@ -864,22 +951,22 @@ body {
|
|
864 |
|
865 |
/* Custom scrollbar for transcript container */
|
866 |
.transcript-container::-webkit-scrollbar {
|
867 |
-
width:
|
868 |
}
|
869 |
|
870 |
.transcript-container::-webkit-scrollbar-track {
|
871 |
-
background:
|
872 |
border-radius: 4px;
|
873 |
}
|
874 |
|
875 |
.transcript-container::-webkit-scrollbar-thumb {
|
876 |
-
background:
|
877 |
border-radius: 4px;
|
878 |
transition: background 0.3s ease;
|
879 |
}
|
880 |
|
881 |
.transcript-container::-webkit-scrollbar-thumb:hover {
|
882 |
-
background:
|
883 |
}
|
884 |
|
885 |
#transcript {
|
|
|
1 |
/* ===== CONSOLIDATED CSS VARIABLES - ENHANCED DYNAMIC THEMING ===== */
|
2 |
:root {
|
3 |
+
/* Core Theme Colors - Default Dark Theme Base */
|
4 |
+
--primary-color: #5e60ce;
|
5 |
+
--primary-rgb: 94, 96, 206;
|
6 |
+
--secondary-color: #23262f;
|
7 |
+
--accent-color: #8b5cf6;
|
8 |
+
--background-overlay: rgba(24, 26, 32, 0.85);
|
9 |
--interface-opacity: 0.7;
|
10 |
+
--gradient-start: #5e60ce;
|
11 |
+
--gradient-end: #8b5cf6;
|
12 |
+
--text-glow: 0 0 10px rgba(94, 96, 206, 0.3);
|
13 |
+
--button-hover: rgba(94, 96, 206, 0.15);
|
14 |
--animations-enabled: 1;
|
15 |
+
--switch-color: #5e60ce;
|
16 |
|
17 |
/* Contrast and Accessibility */
|
18 |
--contrast-ratio: 4.5; /* WCAG AA standard */
|
19 |
--text-on-primary: #ffffff;
|
20 |
+
--text-on-secondary: #e0e0e0;
|
21 |
--text-on-accent: #ffffff;
|
22 |
+
--text-on-background: #e0e0e0;
|
23 |
--border-opacity: 0.3;
|
24 |
--hover-opacity: 0.15;
|
25 |
--active-opacity: 0.25;
|
26 |
|
27 |
/* UI Component Colors - Chat Interface */
|
28 |
+
--chat-bg: rgba(24, 26, 32, 0.95);
|
29 |
+
--chat-text: var(--text-on-background);
|
30 |
--chat-header-bg: rgba(255, 255, 255, 0.05);
|
31 |
+
--chat-border: #5e60ce;
|
32 |
--chat-input-bg: rgba(255, 255, 255, 0.1);
|
33 |
--chat-input-text: var(--text-on-background);
|
34 |
--chat-input-placeholder: rgba(255, 255, 255, 0.6);
|
35 |
+
--chat-message-user-bg: #1e253c;
|
36 |
+
--chat-message-user-text: var(--text-on-background);
|
37 |
+
--chat-message-kimi-bg: #23262f;
|
38 |
--chat-message-kimi-text: var(--text-on-background);
|
39 |
|
40 |
/* Modal & Overlay Colors */
|
41 |
+
--modal-bg: rgba(24, 26, 32, 0.98);
|
42 |
+
--modal-border: #5e60ce;
|
43 |
+
--modal-header-bg: linear-gradient(135deg, #5e60ce, #8b5cf6);
|
44 |
+
--modal-text: var(--text-on-background);
|
45 |
+
--modal-title-color: #e0e0e0;
|
46 |
--modal-overlay-bg: rgba(0, 0, 0, 0.8);
|
47 |
--modal-close-hover-bg: rgba(255, 255, 255, 0.2);
|
48 |
|
49 |
/* Settings Panel & Tabs */
|
50 |
+
--settings-bg: #0f1114;
|
51 |
--settings-text: var(--text-on-background);
|
52 |
+
--settings-tab-bg: #181a20;
|
53 |
--settings-tab-color: #bfa6b6;
|
54 |
--settings-tab-hover-bg: rgba(255, 255, 255, var(--hover-opacity));
|
55 |
--settings-tab-hover-color: rgba(255, 255, 255, 0.9);
|
56 |
+
--settings-tab-active-bg: #5e60ce;
|
57 |
--settings-tab-active-color: var(--text-on-primary);
|
58 |
+
--settings-tab-border: #5e60ce;
|
59 |
+
--settings-section-bg: #1a1d23;
|
60 |
+
--settings-section-border: rgba(94, 96, 206, var(--border-opacity));
|
61 |
--settings-section-header-color: var(--text-on-background);
|
62 |
|
63 |
/* Form Element Colors */
|
64 |
--input-bg: rgba(255, 255, 255, 0.1);
|
65 |
--input-text: var(--text-on-background);
|
66 |
+
--input-border: #5e60ce;
|
67 |
--input-focus-bg: rgba(255, 255, 255, var(--hover-opacity));
|
68 |
+
--input-focus-border: #8b5cf6;
|
69 |
--input-placeholder: rgba(255, 255, 255, 0.6);
|
70 |
|
71 |
/* Button Colors */
|
72 |
--button-primary-bg: var(--primary-color);
|
73 |
--button-primary-text: var(--text-on-primary);
|
74 |
--button-primary-hover-bg: var(--accent-color);
|
75 |
+
--button-secondary-bg: rgba(255, 255, 255, 0.05);
|
76 |
--button-secondary-text: var(--text-on-background);
|
77 |
--button-secondary-hover-bg: rgba(255, 255, 255, var(--hover-opacity));
|
78 |
--button-danger-bg: #e74c3c;
|
|
|
83 |
--select-bg: var(--input-bg);
|
84 |
--select-text: var(--input-text);
|
85 |
--select-border: var(--input-border);
|
86 |
+
--select-option-bg: rgba(24, 26, 32, 0.95);
|
87 |
+
--select-option-text: var(--text-on-background);
|
88 |
+
--select-option-hover-bg: #5e60ce;
|
89 |
--select-option-hover-text: var(--text-on-primary);
|
90 |
+
--select-option-checked-bg: #8b5cf6;
|
91 |
--select-option-checked-text: var(--text-on-accent);
|
92 |
+
--select-option-disabled-bg: rgba(24, 26, 32, 0.5);
|
93 |
--select-option-disabled-text: #666;
|
94 |
|
95 |
/* Slider Components */
|
|
|
97 |
--slider-track-active-bg: var(--primary-color);
|
98 |
--slider-thumb-bg: var(--primary-color);
|
99 |
--slider-thumb-hover-bg: var(--accent-color);
|
100 |
+
--slider-value-bg: #0f1114;
|
101 |
+
--slider-value-border: #5e60ce;
|
102 |
--slider-value-color: var(--text-on-background);
|
103 |
|
104 |
/* Toggle Switch */
|
105 |
+
--switch-bg-inactive: rgba(255, 255, 255, 0.05);
|
106 |
+
--switch-bg-active: linear-gradient(90deg, #5e60ce, #8b5cf6);
|
107 |
--switch-thumb-color: #ffffff;
|
108 |
--switch-thumb-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
109 |
|
110 |
/* Mic Button & Pulse Effect */
|
111 |
--mic-button-bg: var(--button-hover);
|
112 |
+
--mic-button-border: #5e60ce;
|
113 |
+
--mic-button-shadow: 0 0 15px #5e60ce;
|
114 |
+
--mic-button-hover-bg: #5e60ce;
|
115 |
+
--mic-button-hover-shadow: 0 0 10px rgba(94, 96, 206, 0.5);
|
116 |
--mic-button-icon-color: var(--text-on-primary);
|
117 |
--mic-listening-border: #27ae60;
|
118 |
--mic-listening-shadow: 0 0 15px #27ae60;
|
|
|
123 |
--video-fade-duration: 400ms;
|
124 |
|
125 |
/* Cards & Stats */
|
126 |
+
--card-bg: rgba(255, 255, 255, 0.02);
|
127 |
+
--card-border: rgba(255, 255, 255, 0.05);
|
128 |
+
--card-hover-bg: rgba(255, 255, 255, 0.05);
|
129 |
--card-text: var(--text-on-background);
|
130 |
+
--stat-value-color: #8b5cf6;
|
131 |
+
--stat-label-color: rgba(224, 224, 224, 0.7);
|
132 |
|
133 |
/* Plugin Cards */
|
134 |
+
--plugin-card-bg: linear-gradient(135deg, #1a1d23 80%, rgba(24, 26, 32, 0.98) 100%);
|
135 |
+
--plugin-card-border: #5e60ce;
|
136 |
--plugin-card-title-color: var(--text-on-background);
|
137 |
+
--plugin-card-desc-color: rgba(224, 224, 224, 0.7);
|
138 |
+
--plugin-card-author-color: rgba(224, 224, 224, 0.5);
|
139 |
+
--plugin-type-badge-bg: #8b5cf6;
|
140 |
--plugin-type-badge-text: var(--text-on-accent);
|
141 |
+
--plugin-active-badge-bg: linear-gradient(90deg, #5e60ce, #8b5cf6);
|
142 |
--plugin-active-badge-text: var(--text-on-primary);
|
143 |
|
144 |
/* Help Modal */
|
145 |
+
--help-modal-bg: rgba(24, 26, 32, 0.98);
|
146 |
+
--help-modal-border: #5e60ce;
|
147 |
--help-content-color: var(--text-on-background);
|
148 |
--help-section-border: rgba(255, 255, 255, 0.1);
|
149 |
+
--creator-card-bg: rgba(255, 255, 255, 0.02);
|
150 |
+
--creator-card-border: rgba(255, 255, 255, 0.05);
|
151 |
+
--creator-avatar-bg: linear-gradient(135deg, #5e60ce, #8b5cf6);
|
152 |
+
--creator-name-color: #8b5cf6;
|
153 |
+
--creator-role-bg: linear-gradient(135deg, #5e60ce, #8b5cf6);
|
154 |
+
--creator-role-color: var(--text-on-primary);
|
155 |
+
--philosophy-bg: rgba(94, 96, 206, 0.05);
|
156 |
+
--philosophy-border: rgba(94, 96, 206, var(--border-opacity));
|
157 |
+
--philosophy-border-left: #5e60ce;
|
158 |
+
--feature-item-bg: rgba(255, 255, 255, 0.02);
|
159 |
+
--feature-item-border: rgba(94, 96, 206, var(--border-opacity));
|
160 |
+
--feature-icon-color: #8b5cf6;
|
161 |
+
--feature-title-color: #8b5cf6;
|
162 |
+
--feature-text-color: rgba(224, 224, 224, 0.7);
|
163 |
+
--guide-step-bg: rgba(255, 255, 255, 0.02);
|
164 |
+
--guide-step-number-bg: rgba(94, 96, 206, var(--hover-opacity));
|
165 |
--guide-step-number-color: var(--primary-color);
|
166 |
+
--tip-item-bg: rgba(255, 255, 255, 0.02);
|
167 |
--tip-item-border: var(--feature-item-border);
|
168 |
|
169 |
/* Unified Scrollbar System */
|
170 |
+
--scrollbar-width: 8px !important;
|
171 |
+
--scrollbar-track-bg: rgba(255, 255, 255, 0.02) !important;
|
172 |
+
--scrollbar-thumb-bg: rgba(94, 96, 206, 0.4) !important;
|
173 |
+
--scrollbar-thumb-hover-bg: rgba(94, 96, 206, 0.6) !important;
|
174 |
+
--scrollbar-thumb-active-bg: rgba(94, 96, 206, 0.8) !important;
|
175 |
+
--scrollbar-corner-bg: rgba(255, 255, 255, 0.05) !important;
|
176 |
|
177 |
/* Model Colors */
|
178 |
+
--model-card-bg: rgba(255, 255, 255, 0.02);
|
179 |
+
--model-card-border: rgba(255, 255, 255, 0.05);
|
180 |
+
--model-card-hover-bg: rgba(255, 255, 255, 0.05);
|
181 |
--model-card-selected-border: var(--primary-color);
|
182 |
+
--model-card-selected-shadow: 0 0 0 2px rgba(94, 96, 206, var(--border-opacity));
|
183 |
--model-name-color: var(--text-on-background);
|
184 |
+
--model-description-color: rgba(224, 224, 224, 0.7);
|
185 |
+
--model-strength-color: #5e60ce;
|
186 |
--model-strength-text: var(--text-on-primary);
|
187 |
+
--model-provider-color: #8b5cf6;
|
188 |
--model-provider-text: var(--text-on-accent);
|
189 |
|
190 |
/* Text Colors */
|
191 |
--text-primary: var(--text-on-background);
|
192 |
+
--text-secondary: #9ca3af;
|
193 |
+
--text-muted: rgba(224, 224, 224, 0.6);
|
194 |
|
195 |
/* Character Selection Colors */
|
196 |
+
--character-card-bg: rgba(255, 255, 255, 0.02);
|
197 |
+
--character-card-border: rgba(255, 255, 255, 0.05);
|
198 |
+
--character-card-hover-bg: rgba(255, 255, 255, 0.05);
|
199 |
+
--character-selected-border: #8b5cf6;
|
200 |
+
--character-selected-bg: rgba(94, 96, 206, 0.1);
|
201 |
--character-name-color: var(--text-on-background);
|
202 |
|
203 |
/* Waiting Indicator */
|
|
|
205 |
--loading-spinner-color: var(--primary-color);
|
206 |
|
207 |
/* Progress Bar */
|
208 |
+
--progress-bg: rgba(255, 255, 255, 0.05);
|
209 |
--progress-fill-bg: linear-gradient(90deg, var(--primary-color), var(--accent-color));
|
210 |
--progress-text-color: var(--text-on-background);
|
211 |
|
212 |
/* Transcript */
|
213 |
+
--transcript-bg: rgba(0, 0, 0, 0.9);
|
214 |
--transcript-text: var(--text-on-background);
|
215 |
--transcript-border: var(--primary-color);
|
216 |
}
|
217 |
|
218 |
/* ===== OPTIMIZED THEME VARIATIONS ===== */
|
219 |
+
[data-theme="pink"] {
|
220 |
+
/* Core Theme Colors - Pink Passion */
|
221 |
+
--primary-color: #ff6b9d;
|
222 |
+
--primary-rgb: 255, 107, 157;
|
223 |
+
--secondary-color: #ffeaa7;
|
224 |
+
--accent-color: #fd79a8;
|
225 |
+
--background-overlay: rgba(255, 107, 157, 0.15);
|
226 |
+
--gradient-start: #ff6b9d;
|
227 |
+
--gradient-end: #fd79a8;
|
228 |
+
--text-glow: 0 0 10px rgba(255, 107, 157, 0.5);
|
229 |
+
--button-hover: rgba(255, 107, 157, 0.3);
|
230 |
+
--switch-color: var(--primary-color);
|
231 |
+
|
232 |
+
/* Contrast and Accessibility */
|
233 |
+
--text-on-primary: #ffffff;
|
234 |
+
--text-on-secondary: #222222;
|
235 |
+
--text-on-accent: #ffffff;
|
236 |
+
--text-on-background: #ffffff;
|
237 |
+
|
238 |
+
/* UI Component Colors - Chat Interface */
|
239 |
+
--chat-bg: rgba(255, 107, 157, 0.9);
|
240 |
+
--chat-text: var(--text-on-primary);
|
241 |
+
--chat-header-bg: rgba(255, 255, 255, 0.05);
|
242 |
+
--chat-border: var(--primary-color);
|
243 |
+
--chat-input-bg: rgba(255, 255, 255, 0.1);
|
244 |
+
--chat-input-text: var(--text-on-background);
|
245 |
+
--chat-input-placeholder: rgba(255, 255, 255, 0.6);
|
246 |
+
--chat-message-user-bg: var(--primary-color);
|
247 |
+
--chat-message-user-text: var(--text-on-primary);
|
248 |
+
--chat-message-kimi-bg: rgba(255, 255, 255, 0.15);
|
249 |
+
--chat-message-kimi-text: var(--text-on-background);
|
250 |
+
|
251 |
+
/* Modal & Overlay Colors */
|
252 |
+
--modal-bg: rgba(255, 107, 157, 0.95);
|
253 |
+
--modal-border: var(--primary-color);
|
254 |
+
--modal-header-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
255 |
+
--modal-text: var(--text-on-primary);
|
256 |
+
--modal-title-color: var(--text-on-secondary);
|
257 |
+
--modal-overlay-bg: rgba(0, 0, 0, 0.8);
|
258 |
+
--modal-close-hover-bg: rgba(255, 255, 255, 0.2);
|
259 |
+
|
260 |
+
/* Settings Panel & Tabs */
|
261 |
+
--settings-bg: #181018;
|
262 |
+
--settings-text: var(--text-on-background);
|
263 |
+
--settings-tab-bg: #1a1a1a;
|
264 |
+
--settings-tab-color: #bfa6b6;
|
265 |
+
--settings-tab-hover-bg: rgba(255, 255, 255, var(--hover-opacity));
|
266 |
+
--settings-tab-hover-color: rgba(255, 255, 255, 0.9);
|
267 |
+
--settings-tab-active-bg: var(--primary-color);
|
268 |
+
--settings-tab-active-color: var(--text-on-primary);
|
269 |
+
--settings-tab-border: var(--primary-color);
|
270 |
+
--settings-section-bg: #22121a;
|
271 |
+
--settings-section-border: rgba(255, 107, 157, var(--border-opacity));
|
272 |
+
--settings-section-header-color: var(--text-on-background);
|
273 |
+
|
274 |
+
/* Form Element Colors */
|
275 |
+
--input-bg: rgba(255, 255, 255, 0.1);
|
276 |
+
--input-text: var(--text-on-background);
|
277 |
+
--input-border: var(--primary-color);
|
278 |
+
--input-focus-bg: rgba(255, 255, 255, var(--hover-opacity));
|
279 |
+
--input-focus-border: var(--accent-color);
|
280 |
+
--input-placeholder: rgba(255, 255, 255, 0.6);
|
281 |
+
|
282 |
+
/* Button Colors */
|
283 |
+
--button-primary-bg: var(--primary-color);
|
284 |
+
--button-primary-text: var(--text-on-primary);
|
285 |
+
--button-primary-hover-bg: var(--accent-color);
|
286 |
+
--button-secondary-bg: rgba(255, 255, 255, 0.1);
|
287 |
+
--button-secondary-text: var(--text-on-background);
|
288 |
+
--button-secondary-hover-bg: rgba(255, 255, 255, var(--hover-opacity));
|
289 |
+
|
290 |
+
/* All other pink theme variables... */
|
291 |
+
--slider-track-bg: rgba(255, 255, 255, 0.1);
|
292 |
+
--slider-track-active-bg: var(--primary-color);
|
293 |
+
--slider-thumb-bg: var(--primary-color);
|
294 |
+
--slider-thumb-hover-bg: var(--accent-color);
|
295 |
+
--slider-value-bg: #181018;
|
296 |
+
--slider-value-border: var(--primary-color);
|
297 |
+
--slider-value-color: var(--text-on-background);
|
298 |
+
|
299 |
+
/* Toggle Switch */
|
300 |
+
--switch-bg-inactive: rgba(255, 255, 255, 0.15);
|
301 |
+
--switch-bg-active: linear-gradient(90deg, var(--primary-color), var(--accent-color));
|
302 |
+
|
303 |
+
/* Mic Button & Pulse Effect */
|
304 |
+
--mic-button-bg: var(--button-hover);
|
305 |
+
--mic-button-border: var(--primary-color);
|
306 |
+
--mic-button-shadow: 0 0 15px var(--primary-color);
|
307 |
+
--mic-button-hover-bg: var(--primary-color);
|
308 |
+
--mic-button-hover-shadow: var(--text-glow);
|
309 |
+
--mic-button-icon-color: var(--text-on-primary);
|
310 |
+
|
311 |
+
/* Cards & Stats */
|
312 |
+
--card-bg: rgba(255, 255, 255, 0.05);
|
313 |
+
--card-border: rgba(255, 255, 255, 0.1);
|
314 |
+
--card-hover-bg: rgba(255, 255, 255, 0.08);
|
315 |
+
--stat-value-color: var(--primary-color);
|
316 |
+
--stat-label-color: rgba(255, 255, 255, 0.7);
|
317 |
+
|
318 |
+
/* Character Selection Colors */
|
319 |
+
--character-card-bg: var(--card-bg);
|
320 |
+
--character-card-border: var(--card-border);
|
321 |
+
--character-card-hover-bg: var(--card-hover-bg);
|
322 |
+
--character-selected-border: var(--primary-color);
|
323 |
+
--character-selected-bg: rgba(255, 107, 157, 0.13);
|
324 |
+
--character-name-color: var(--text-on-background);
|
325 |
+
}
|
326 |
+
|
327 |
[data-theme="blue"] {
|
328 |
--primary-color: #74b9ff;
|
329 |
--primary-rgb: 116, 185, 255;
|
|
|
393 |
--select-option-hover-bg: #74b9ff;
|
394 |
--select-option-checked-bg: #0984e3;
|
395 |
|
|
|
|
|
|
|
|
|
|
|
396 |
/* Model Colors */
|
397 |
--model-strength-color: #0984e3;
|
398 |
--model-strength-text: #fff;
|
|
|
478 |
--select-option-hover-bg: #a29bfe;
|
479 |
--select-option-checked-bg: #6c5ce7;
|
480 |
|
|
|
|
|
|
|
|
|
|
|
481 |
/* Model Colors */
|
482 |
--model-strength-color: #6c5ce7;
|
483 |
--model-strength-text: #fff;
|
|
|
606 |
--select-option-hover-bg: #27ae60;
|
607 |
--select-option-checked-bg: #16a085;
|
608 |
|
|
|
|
|
|
|
|
|
|
|
609 |
/* Model Colors */
|
610 |
--model-strength-color: #27ae60;
|
611 |
--model-strength-text: var(--text-on-primary);
|
|
|
751 |
--select-option-hover-bg: #5e60ce;
|
752 |
--select-option-checked-bg: #8b5cf6;
|
753 |
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
/* Model Colors */
|
755 |
--model-card-bg: rgba(255, 255, 255, 0.02);
|
756 |
--model-card-border: rgba(255, 255, 255, 0.05);
|
|
|
951 |
|
952 |
/* Custom scrollbar for transcript container */
|
953 |
.transcript-container::-webkit-scrollbar {
|
954 |
+
width: var(--scrollbar-width);
|
955 |
}
|
956 |
|
957 |
.transcript-container::-webkit-scrollbar-track {
|
958 |
+
background: var(--scrollbar-track-bg);
|
959 |
border-radius: 4px;
|
960 |
}
|
961 |
|
962 |
.transcript-container::-webkit-scrollbar-thumb {
|
963 |
+
background: var(--scrollbar-thumb-bg);
|
964 |
border-radius: 4px;
|
965 |
transition: background 0.3s ease;
|
966 |
}
|
967 |
|
968 |
.transcript-container::-webkit-scrollbar-thumb:hover {
|
969 |
+
background: var(--scrollbar-thumb-hover-bg);
|
970 |
}
|
971 |
|
972 |
#transcript {
|
kimi-js/kimi-appearance.js
CHANGED
@@ -3,7 +3,7 @@ class KimiAppearanceManager extends KimiBaseManager {
|
|
3 |
constructor(database) {
|
4 |
super();
|
5 |
this.db = database;
|
6 |
-
this.currentTheme = "
|
7 |
this.interfaceOpacity = 0.8;
|
8 |
this.animationsEnabled = true;
|
9 |
}
|
@@ -33,7 +33,7 @@ class KimiAppearanceManager extends KimiBaseManager {
|
|
33 |
if (!this.db) return;
|
34 |
|
35 |
try {
|
36 |
-
this.currentTheme = await this.db.getPreference("colorTheme", window.KIMI_CONFIG?.DEFAULTS?.THEME ?? "
|
37 |
this.interfaceOpacity = await this.db.getPreference(
|
38 |
"interfaceOpacity",
|
39 |
window.KIMI_CONFIG?.DEFAULTS?.INTERFACE_OPACITY ?? 0.8
|
@@ -192,7 +192,7 @@ class KimiAppearanceManager extends KimiBaseManager {
|
|
192 |
getThemeName(theme) {
|
193 |
const themeNames = {
|
194 |
dark: "Dark Night",
|
195 |
-
|
196 |
blue: "Ocean Blue",
|
197 |
purple: "Mystic Purple",
|
198 |
green: "Emerald Forest"
|
|
|
3 |
constructor(database) {
|
4 |
super();
|
5 |
this.db = database;
|
6 |
+
this.currentTheme = "dark";
|
7 |
this.interfaceOpacity = 0.8;
|
8 |
this.animationsEnabled = true;
|
9 |
}
|
|
|
33 |
if (!this.db) return;
|
34 |
|
35 |
try {
|
36 |
+
this.currentTheme = await this.db.getPreference("colorTheme", window.KIMI_CONFIG?.DEFAULTS?.THEME ?? "dark");
|
37 |
this.interfaceOpacity = await this.db.getPreference(
|
38 |
"interfaceOpacity",
|
39 |
window.KIMI_CONFIG?.DEFAULTS?.INTERFACE_OPACITY ?? 0.8
|
|
|
192 |
getThemeName(theme) {
|
193 |
const themeNames = {
|
194 |
dark: "Dark Night",
|
195 |
+
pink: "Passionate Pink",
|
196 |
blue: "Ocean Blue",
|
197 |
purple: "Mystic Purple",
|
198 |
green: "Emerald Forest"
|
kimi-js/kimi-config.js
CHANGED
@@ -3,7 +3,7 @@ window.KIMI_CONFIG = {
|
|
3 |
// Default values for all components
|
4 |
DEFAULTS: {
|
5 |
LANGUAGE: "en",
|
6 |
-
THEME: "
|
7 |
INTERFACE_OPACITY: 0.8,
|
8 |
ANIMATIONS_ENABLED: true,
|
9 |
VOICE_RATE: 1.1,
|
@@ -70,7 +70,7 @@ window.KIMI_CONFIG = {
|
|
70 |
// Available themes
|
71 |
THEMES: {
|
72 |
dark: "Dark Night",
|
73 |
-
|
74 |
blue: "Ocean Blue",
|
75 |
purple: "Mystic Purple",
|
76 |
green: "Emerald Forest"
|
|
|
3 |
// Default values for all components
|
4 |
DEFAULTS: {
|
5 |
LANGUAGE: "en",
|
6 |
+
THEME: "dark",
|
7 |
INTERFACE_OPACITY: 0.8,
|
8 |
ANIMATIONS_ENABLED: true,
|
9 |
VOICE_RATE: 1.1,
|
|
|
70 |
// Available themes
|
71 |
THEMES: {
|
72 |
dark: "Dark Night",
|
73 |
+
pink: "Passionate Pink",
|
74 |
blue: "Ocean Blue",
|
75 |
purple: "Mystic Purple",
|
76 |
green: "Emerald Forest"
|
kimi-js/kimi-database.js
CHANGED
@@ -119,7 +119,7 @@ class KimiDatabase {
|
|
119 |
{ key: "voicePitch", value: 1.1 },
|
120 |
{ key: "voiceVolume", value: 0.8 },
|
121 |
{ key: "selectedCharacter", value: "kimi" },
|
122 |
-
{ key: "colorTheme", value: "
|
123 |
{ key: "interfaceOpacity", value: 0.8 },
|
124 |
{ key: "animationsEnabled", value: true },
|
125 |
{ key: "showTranscript", value: true },
|
|
|
119 |
{ key: "voicePitch", value: 1.1 },
|
120 |
{ key: "voiceVolume", value: 0.8 },
|
121 |
{ key: "selectedCharacter", value: "kimi" },
|
122 |
+
{ key: "colorTheme", value: "dark" },
|
123 |
{ key: "interfaceOpacity", value: 0.8 },
|
124 |
{ key: "animationsEnabled", value: true },
|
125 |
{ key: "showTranscript", value: true },
|
kimi-js/kimi-plugin-manager.js
CHANGED
@@ -67,10 +67,10 @@ class KimiPluginManager {
|
|
67 |
} else {
|
68 |
// Restore previous or default theme depuis Dexie
|
69 |
if (window.kimiDB && window.kimiDB.getPreference) {
|
70 |
-
const userTheme = await window.kimiDB.getPreference("colorTheme", "
|
71 |
document.documentElement.setAttribute("data-theme", userTheme);
|
72 |
} else {
|
73 |
-
document.documentElement.setAttribute("data-theme", "
|
74 |
}
|
75 |
}
|
76 |
this.renderPluginList();
|
|
|
67 |
} else {
|
68 |
// Restore previous or default theme depuis Dexie
|
69 |
if (window.kimiDB && window.kimiDB.getPreference) {
|
70 |
+
const userTheme = await window.kimiDB.getPreference("colorTheme", "dark");
|
71 |
document.documentElement.setAttribute("data-theme", userTheme);
|
72 |
} else {
|
73 |
+
document.documentElement.setAttribute("data-theme", "dark");
|
74 |
}
|
75 |
}
|
76 |
this.renderPluginList();
|
kimi-js/kimi-script.js
CHANGED
@@ -269,7 +269,7 @@ document.addEventListener("DOMContentLoaded", async function () {
|
|
269 |
const keyPref = window.KimiProviderUtils
|
270 |
? window.KimiProviderUtils.getKeyPrefForProvider(provider)
|
271 |
: "providerApiKey";
|
272 |
-
const storedKey = await window.kimiDB.getPreference(
|
273 |
if (apiKeyInput && provider !== "ollama") apiKeyInput.value = storedKey || "";
|
274 |
const color = provider === "ollama" ? "#9e9e9e" : storedKey && storedKey.length > 0 ? "#4caf50" : "#9e9e9e";
|
275 |
ApiUi.setPresence(color);
|
|
|
269 |
const keyPref = window.KimiProviderUtils
|
270 |
? window.KimiProviderUtils.getKeyPrefForProvider(provider)
|
271 |
: "providerApiKey";
|
272 |
+
const storedKey = await window.kimiDB.getPreference(keyPref, "");
|
273 |
if (apiKeyInput && provider !== "ollama") apiKeyInput.value = storedKey || "";
|
274 |
const color = provider === "ollama" ? "#9e9e9e" : storedKey && storedKey.length > 0 ? "#4caf50" : "#9e9e9e";
|
275 |
ApiUi.setPresence(color);
|
kimi-js/kimi-utils.js
CHANGED
@@ -44,13 +44,23 @@ window.KimiValidationUtils = {
|
|
44 |
// Provider utilities used across the app
|
45 |
const KimiProviderUtils = {
|
46 |
getKeyPrefForProvider(provider) {
|
47 |
-
//
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
},
|
50 |
async getApiKey(db, provider) {
|
51 |
if (!db) return null;
|
52 |
if (provider === "ollama") return "__local__";
|
53 |
-
|
|
|
54 |
},
|
55 |
getLabelForProvider(provider) {
|
56 |
const labels = {
|
|
|
44 |
// Provider utilities used across the app
|
45 |
const KimiProviderUtils = {
|
46 |
getKeyPrefForProvider(provider) {
|
47 |
+
// Each provider should have its own separate API key storage
|
48 |
+
const providerKeys = {
|
49 |
+
openrouter: "openrouterApiKey",
|
50 |
+
openai: "openaiApiKey",
|
51 |
+
groq: "groqApiKey",
|
52 |
+
together: "togetherApiKey",
|
53 |
+
deepseek: "deepseekApiKey",
|
54 |
+
"openai-compatible": "customApiKey",
|
55 |
+
ollama: null
|
56 |
+
};
|
57 |
+
return providerKeys[provider] || "providerApiKey";
|
58 |
},
|
59 |
async getApiKey(db, provider) {
|
60 |
if (!db) return null;
|
61 |
if (provider === "ollama") return "__local__";
|
62 |
+
const keyPref = this.getKeyPrefForProvider(provider);
|
63 |
+
return await db.getPreference(keyPref);
|
64 |
},
|
65 |
getLabelForProvider(provider) {
|
66 |
const labels = {
|
kimi-locale/de.json
CHANGED
@@ -215,8 +215,8 @@
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "API-Schlüssel testen",
|
218 |
-
"theme_purple": "Mystic Purple
|
219 |
-
"theme_dark": "Dunkle Nacht",
|
220 |
"theme_blue": "Ozeanblau",
|
221 |
"theme_green": "Smaragdwald",
|
222 |
"theme_pink": "Leidenschaftliches Pink",
|
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "API-Schlüssel testen",
|
218 |
+
"theme_purple": "Mystic Purple",
|
219 |
+
"theme_dark": "Dunkle Nacht (Standard)",
|
220 |
"theme_blue": "Ozeanblau",
|
221 |
"theme_green": "Smaragdwald",
|
222 |
"theme_pink": "Leidenschaftliches Pink",
|
kimi-locale/en.json
CHANGED
@@ -213,8 +213,8 @@
|
|
213 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
214 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
215 |
"test_api_key": "Test API Key",
|
216 |
-
"theme_purple": "Mystic Purple
|
217 |
-
"theme_dark": "Dark Night",
|
218 |
"theme_blue": "Ocean Blue",
|
219 |
"theme_green": "Emerald Forest",
|
220 |
"theme_pink": "Passionate Pink",
|
|
|
213 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
214 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
215 |
"test_api_key": "Test API Key",
|
216 |
+
"theme_purple": "Mystic Purple",
|
217 |
+
"theme_dark": "Dark Night (Default)",
|
218 |
"theme_blue": "Ocean Blue",
|
219 |
"theme_green": "Emerald Forest",
|
220 |
"theme_pink": "Passionate Pink",
|
kimi-locale/es.json
CHANGED
@@ -215,8 +215,8 @@
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "Probar Clave API",
|
218 |
-
"theme_purple": "Púrpura Místico
|
219 |
-
"theme_dark": "Noche Oscura",
|
220 |
"theme_blue": "Azul Océano",
|
221 |
"theme_green": "Bosque Esmeralda",
|
222 |
"theme_pink": "Rosa Apasionado",
|
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "Probar Clave API",
|
218 |
+
"theme_purple": "Púrpura Místico",
|
219 |
+
"theme_dark": "Noche Oscura (Predeterminado)",
|
220 |
"theme_blue": "Azul Océano",
|
221 |
"theme_green": "Bosque Esmeralda",
|
222 |
"theme_pink": "Rosa Apasionado",
|
kimi-locale/fr.json
CHANGED
@@ -213,8 +213,8 @@
|
|
213 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
214 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
215 |
"test_api_key": "Tester la Clé API",
|
216 |
-
"theme_purple": "Mystic Purple
|
217 |
-
"theme_dark": "Nuit Sombre",
|
218 |
"theme_blue": "Bleu Océan",
|
219 |
"theme_green": "Forêt Émeraude",
|
220 |
"theme_pink": "Rose Passion",
|
|
|
213 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
214 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
215 |
"test_api_key": "Tester la Clé API",
|
216 |
+
"theme_purple": "Mystic Purple",
|
217 |
+
"theme_dark": "Nuit Sombre (Défaut)",
|
218 |
"theme_blue": "Bleu Océan",
|
219 |
"theme_green": "Forêt Émeraude",
|
220 |
"theme_pink": "Rose Passion",
|
kimi-locale/it.json
CHANGED
@@ -215,8 +215,8 @@
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "Testa API Key",
|
218 |
-
"theme_purple": "Mystic Purple
|
219 |
-
"theme_dark": "Notte Scura",
|
220 |
"theme_blue": "Blu Oceano",
|
221 |
"theme_green": "Foresta Smeraldo",
|
222 |
"theme_pink": "Rosa Appassionato",
|
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "Testa API Key",
|
218 |
+
"theme_purple": "Mystic Purple",
|
219 |
+
"theme_dark": "Notte Scura (Predefinito)",
|
220 |
"theme_blue": "Blu Oceano",
|
221 |
"theme_green": "Foresta Smeraldo",
|
222 |
"theme_pink": "Rosa Appassionato",
|
kimi-locale/ja.json
CHANGED
@@ -215,8 +215,8 @@
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "APIキーをテスト",
|
218 |
-
"theme_purple": "ミスティックパープル
|
219 |
-
"theme_dark": "ダークナイト",
|
220 |
"theme_blue": "オーシャンブルー",
|
221 |
"theme_green": "エメラルドフォレスト",
|
222 |
"theme_pink": "パッショネートピンク",
|
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "APIキーをテスト",
|
218 |
+
"theme_purple": "ミスティックパープル",
|
219 |
+
"theme_dark": "ダークナイト (デフォルト)",
|
220 |
"theme_blue": "オーシャンブルー",
|
221 |
"theme_green": "エメラルドフォレスト",
|
222 |
"theme_pink": "パッショネートピンク",
|
kimi-locale/zh.json
CHANGED
@@ -215,8 +215,8 @@
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "测试 API 密钥",
|
218 |
-
"theme_purple": "神秘紫
|
219 |
-
"theme_dark": "暗夜",
|
220 |
"theme_blue": "海洋蓝",
|
221 |
"theme_green": "翡翠森林",
|
222 |
"theme_pink": "热情粉",
|
|
|
215 |
"llm_base_url_placeholder": "https://api.openai.com/v1/chat/completions",
|
216 |
"llm_model_id_placeholder": "gpt-4o-mini | llama-3.1-8b-instruct | ...",
|
217 |
"test_api_key": "测试 API 密钥",
|
218 |
+
"theme_purple": "神秘紫",
|
219 |
+
"theme_dark": "暗夜 (默认)",
|
220 |
"theme_blue": "海洋蓝",
|
221 |
"theme_green": "翡翠森林",
|
222 |
"theme_pink": "热情粉",
|
kimi-plugins/sample-theme/theme.css
CHANGED
@@ -104,11 +104,6 @@
|
|
104 |
--feature-title-color: #6366f1;
|
105 |
--feature-text-color: #a5b4fc;
|
106 |
|
107 |
-
/* Scrollbar */
|
108 |
-
--scrollbar-thumb-bg: rgba(59, 130, 246, 0.4);
|
109 |
-
--scrollbar-thumb-hover-bg: rgba(59, 130, 246, 0.6);
|
110 |
-
--scrollbar-thumb-active-bg: rgba(59, 130, 246, 0.8);
|
111 |
-
|
112 |
/* Text Colors */
|
113 |
--text-primary: #e0e7ef;
|
114 |
--text-secondary: #a5b4fc;
|
|
|
104 |
--feature-title-color: #6366f1;
|
105 |
--feature-text-color: #a5b4fc;
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
/* Text Colors */
|
108 |
--text-primary: #e0e7ef;
|
109 |
--text-secondary: #a5b4fc;
|