Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
67865fc5
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "4b459e372fe7b205e6c380926f0b376b62bdb3bc"
Commit
67865fc5
authored
Mar 27, 2024
by
Danny Liu
Browse files
dynamically adjust --color-gray-950 value for OLED black sidebar
parent
572eefe1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
src/app.html
src/app.html
+1
-0
src/lib/components/chat/Settings/General.svelte
src/lib/components/chat/Settings/General.svelte
+2
-0
tailwind.config.js
tailwind.config.js
+1
-1
No files found.
src/app.html
View file @
67865fc5
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
(()
=>
{
(()
=>
{
if
(
localStorage
.
theme
.
includes
(
'
oled
'
))
{
if
(
localStorage
.
theme
.
includes
(
'
oled
'
))
{
document
.
documentElement
.
style
.
setProperty
(
'
--color-gray-900
'
,
'
#000000
'
);
document
.
documentElement
.
style
.
setProperty
(
'
--color-gray-900
'
,
'
#000000
'
);
document
.
documentElement
.
style
.
setProperty
(
'
--color-gray-950
'
,
'
#000000
'
);
document
.
documentElement
.
classList
.
add
(
'
dark
'
);
document
.
documentElement
.
classList
.
add
(
'
dark
'
);
}
}
else
if
(
else
if
(
...
...
src/lib/components/chat/Settings/General.svelte
View file @
67865fc5
...
@@ -99,6 +99,7 @@
...
@@ -99,6 +99,7 @@
if (themeToApply === 'dark' && !_theme.includes('oled')) {
if (themeToApply === 'dark' && !_theme.includes('oled')) {
document.documentElement.style.setProperty('--color-gray-900', '#171717');
document.documentElement.style.setProperty('--color-gray-900', '#171717');
document.documentElement.style.setProperty('--color-gray-950', '#0d0d0d');
}
}
themes
themes
...
@@ -121,6 +122,7 @@
...
@@ -121,6 +122,7 @@
localStorage.setItem('theme', _theme);
localStorage.setItem('theme', _theme);
if (_theme.includes('oled')) {
if (_theme.includes('oled')) {
document.documentElement.style.setProperty('--color-gray-900', '#000000');
document.documentElement.style.setProperty('--color-gray-900', '#000000');
document.documentElement.style.setProperty('--color-gray-950', '#000000');
document.documentElement.classList.add('dark');
document.documentElement.classList.add('dark');
}
}
applyTheme(_theme);
applyTheme(_theme);
...
...
tailwind.config.js
View file @
67865fc5
...
@@ -17,7 +17,7 @@ export default {
...
@@ -17,7 +17,7 @@ export default {
800
:
'
#333
'
,
800
:
'
#333
'
,
850
:
'
#262626
'
,
850
:
'
#262626
'
,
900
:
'
var(--color-gray-900, #171717)
'
,
900
:
'
var(--color-gray-900, #171717)
'
,
950
:
'
#0d0d0d
'
950
:
'
var(--color-gray-950,
#0d0d0d
)
'
}
}
},
},
typography
:
{
typography
:
{
...
...
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