Skip to content

Agent Zero AI framework

light mode colors rework

3clyp506d4c6bb4e9bc
diff --git a/webui/components/chat/input/bottom-actions.html b/webui/components/chat/input/bottom-actions.html
index 0ec1bc460..2fa4251a9 100644
--- a/webui/components/chat/input/bottom-actions.html
+++ b/webui/components/chat/input/bottom-actions.html
@@ -84,7 +84,7 @@
<style>
.text-buttons-row { width: 100%; display: flex; padding-top: var(--spacing-xs); margin-left: var(--spacing-xs); }
.text-button { background-color: transparent; border: none; border-radius: 5px; color: var(--color-text); font-family: "Rubik", Arial, Helvetica, sans-serif; font-size: 0.6rem; padding: 6px var(--spacing-sm); cursor: pointer; opacity: 0.8; -webkit-transition: all 0.3s; transition: all 0.3s; display: flex; align-items: center; gap: var(--spacing-xs); }
- .text-button:hover:not(:disabled) { opacity: 1; background-color: var(--color-secondary); border-radius: 4px; }
+ .text-button:hover:not(:disabled) { opacity: 1; background-color: var(--color-background-hover); border-radius: 4px; }
.text-button:active:not(:disabled) { opacity: 0.5; }
.text-button:disabled { opacity: 0.4; cursor: not-allowed; }
.text-button svg { width: 14px; height: 14px; flex-shrink: 0; }
diff --git a/webui/components/sidebar/left-sidebar.html b/webui/components/sidebar/left-sidebar.html
index 38290e0c4..f4d555d1d 100644
--- a/webui/components/sidebar/left-sidebar.html
+++ b/webui/components/sidebar/left-sidebar.html
@@ -168,6 +168,10 @@
cursor: pointer;
}
+ .light-mode #left-panel {
+ box-shadow: 1px 0 10px rgba(0, 0, 0, 0.1);
+ }
+
@media (max-width: 768px) {
#left-panel {
position: fixed;
diff --git a/webui/components/sidebar/tasks/tasks-list.html b/webui/components/sidebar/tasks/tasks-list.html
index 7fd1c860d..86ca62f54 100644
--- a/webui/components/sidebar/tasks/tasks-list.html
+++ b/webui/components/sidebar/tasks/tasks-list.html
@@ -135,7 +135,6 @@
}
.task-name { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 0; cursor: pointer; border-radius: 4px; transition: background-color 0.2s; font-size: var(--font-size-small); margin-bottom: 2px; }
- .light-mode .task-name:hover { background-color: rgba(0,0,0,0.05); }
.task-info-line { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 2px; }
.task-actions { display: flex; gap: 0.375rem; margin-left: auto; }
diff --git a/webui/components/sidebar/top-section/header-icons.html b/webui/components/sidebar/top-section/header-icons.html
index 575c438c3..0e79bc4ec 100644
--- a/webui/components/sidebar/top-section/header-icons.html
+++ b/webui/components/sidebar/top-section/header-icons.html
@@ -39,7 +39,7 @@
-webkit-transition: all var(--transition-speed) ease-in-out;
transition: all var(--transition-speed) ease-in-out;
}
- .toggle-sidebar-button:hover { background-color: var(--color-secondary); opacity: 1; }
+ .toggle-sidebar-button:hover { background-color: var(--color-background-hover); opacity: 1; }
.toggle-sidebar-button:active { opacity: 0.5; }
.toggle-sidebar-button .material-symbols-outlined {
font-size: 22px;
diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.html
index 8e2f4c407..25f429971 100644
--- a/webui/components/sidebar/top-section/quick-actions.html
+++ b/webui/components/sidebar/top-section/quick-actions.html
@@ -165,7 +165,7 @@
}
.config-button:hover {
- background-color: var(--color-secondary);
+ background-color: var(--color-background-hover);
opacity: 1;
z-index: 1;
position: relative;
@@ -234,13 +234,8 @@
color: #333333;
}
- .light-mode .config-button:hover {
- background-color: #d6dae8;
- }
-
- .light-mode .config-button:active {
- background-color: #bdc0cb;
- }
+ .light-mode .config-button:hover { background-color: var(--color-background-hover); }
+ .light-mode .config-button:active { background-color: var(--color-background-hover); }
/* Transition helpers */
.-translate-y-1 { transform: translateY(-0.25rem); }
diff --git a/webui/css/buttons.css b/webui/css/buttons.css
index cee7fbcb7..adfee2694 100644
--- a/webui/css/buttons.css
+++ b/webui/css/buttons.css
@@ -3,7 +3,7 @@
background: var(--color-panel);
font-weight: 500;
padding: 0.5rem 1.5rem;
- border-radius: 0.25rem;
+ border-radius: 6px;
cursor: pointer;
border: 1px solid var(--color-border);
color: var(--color-text);
@@ -213,12 +213,12 @@
.btn-icon-action:hover {
border-color: var(--color-primary);
- background-color: rgba(50, 69, 86, 0.56);
+ background-color: var(--color-background-hover);
}
.btn-icon-action:active {
- background-color: rgba(19, 26, 32, 0.56);
- color: rgba(253, 253, 253, 0.35);
+ background-color: var(--color-background-hover);
+ color: var(--color-primary);
}
.btn-icon-action.danger:hover {
diff --git a/webui/css/modals.css b/webui/css/modals.css
index 91c1445fb..4203ba412 100644
--- a/webui/css/modals.css
+++ b/webui/css/modals.css
@@ -381,29 +381,42 @@ input[type="range"] {
background: var(--color-border);
border-radius: 2px;
outline: none;
+ transition: all 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
- background: var(--color-text);
+ background: var(--color-primary);
border-radius: 50%;
cursor: pointer;
+ transition: all 0.2s ease;
}
+
input[type="range"]::-moz-range-thumb {
width: 16px;
height: 16px;
- background: var(--color-text);
+ background: var(--color-primary);
border-radius: 50%;
cursor: pointer;
border: none;
+ transition: all 0.2s ease;
}
+
.range-value {
min-width: 3em;
text-align: right;
}
+/* Light mode overrides */
+.light-mode input[type="range"]::-webkit-slider-thumb {
+ background: #777;
+}
+.light-mode input[type="range"]::-moz-range-thumb {
+ background: #777;
+}
+
/* Responsive Design */
@media (max-width: 1280px) {
.modal-container {
diff --git a/webui/css/settings.css b/webui/css/settings.css
index 6fffd5e72..2f539b550 100644
--- a/webui/css/settings.css
+++ b/webui/css/settings.css
@@ -47,7 +47,7 @@ textarea,
select {
width: 100%;
padding: 0.5rem;
- border: 1px solid var(--color-secondary);
+ border: 1px solid var(--color-border);
border-radius: 0.25rem;
background-color: var(--color-background);
color: var(--color-text);
@@ -56,11 +56,6 @@ select {
transition: all 0.3s ease;
}
-input[type="text"]:focus,
-input[type="password"]:focus {
- opacity: 1;
-}
-
textarea {
min-height: 100px;
font-family: 'Roboto Mono', monospace;
@@ -69,8 +64,19 @@ textarea {
background-clip: border-box;
}
+input[type="text"]:focus,
+input[type="number"]:focus,
+input[type="password"]:focus,
textarea:focus {
- background-color: #151515;
+ background-color: var(--color-background);
+ filter: brightness(1.2);
+}
+
+.light-mode input[type="text"]:focus,
+.light-mode input[type="number"]:focus,
+.light-mode input[type="password"]:focus,
+.light-mode textarea:focus {
+ filter: brightness(1.1);
}
/* Button Disabled State */
@@ -324,26 +330,6 @@ nav ul li a img {
max-width: 150px;
}
-/* Light mode overrides */
-.light-mode .settings-tab.active {
- /* color: var(--color-border); */
- /* box-shadow:
- 0 -4px 8px -2px var(--color-border),
- 4px 0 8px -2px var(--color-border),
- -4px 0 8px -2px var(--color-border); */
-}
-
-.light-mode .settings-tab:not(.active) {
- background-color: rgba(0, 0, 0, 0.03);
-}
-
-.light-mode .settings-tabs::before {
- background: linear-gradient(to right, var(--color-panel-light), transparent);
-}
-
-.light-mode .settings-tabs::after {
- background: linear-gradient(to left, var(--color-panel-light), transparent);
-}
/* Responsive Design for Settings Tabs */
@media (max-width: 640px) {
diff --git a/webui/index.css b/webui/index.css
index e5ed391de..7e635cc29 100644
--- a/webui/index.css
+++ b/webui/index.css
@@ -23,7 +23,7 @@
--color-input-focus-dark: #101010;
/* Light mode */
- --color-background-light: #dbdbdb;
+ --color-background-light: #fafafa;
--color-text-light: #333333;
--color-primary-light: #384653;
--color-secondary-light: #e8eaf6;
@@ -32,7 +32,7 @@
--color-highlight-light: #2563eb;
--color-message-text-light: #333333;
--color-panel-light: #f0f0f0;
- --color-border-light: #e0e0e0c7;
+ --color-border-light: #bdbdbdcf;
--color-input-light: #e4e4e4;
--color-input-focus-light: #dadada;
@@ -1397,7 +1397,7 @@ nav ul li a img {
top: 100%;
right: 0;
min-width: 180px;
- max-height: 400px;
+ max-height: 70vh;
overflow-y: auto;
background-color: var(--color-panel);
border: 1px solid var(--color-border);
@@ -1435,7 +1435,6 @@ nav ul li a img {
.dropdown-item:hover {
background-color: var(--color-background-hover);
opacity: 1;
- transform: translateX(-2px);
}
.dropdown-item:active {
@@ -1455,6 +1454,12 @@ nav ul li a img {
opacity: 0.8;
}
+.dropdown-item .material-symbols-outlined {
+ font-size: 18px;
+ flex-shrink: 0;
+ opacity: 0.8;
+}
+
/* Dropdown separator */
.dropdown-separator {
height: 1px;
@@ -1477,6 +1482,4 @@ nav ul li a img {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
-.light-mode .dropdown-item:hover {
- background-color: var(--color-secondary);
-}
+.light-mode .dropdown-item:hover { background-color: var(--color-background-hover); }