mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6949] feat(frontend): accent colors and an optional glassy style #6535
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6535
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6949
Author: @Plus98ir
Created: 10/26/2026
Status: 🔄 Open
Base:
main← Head:feat/accent-colors-glassy📝 Commits (7)
169d3c9feat(frontend): pick an accent color for the light, dark and ultra-dark themes6bd430bfeat(frontend): add an optional glassy style for every theme19b455bfix(frontend): overview sparklines follow the accent color; a wider glassy glow6cb36aefix(frontend): keep the mobile menu's search box full size; brighter dark accentsaa1baddfix(frontend): keep the accent popover on screen in the mobile menu7ad962cfix(frontend): size the mobile menu to its content50848b3fix(frontend): command palette and glass glow follow the accent again📊 Changes
24 files changed (+649 additions, -42 deletions)
View changed files
📝
frontend/src/components/command-palette/CommandPalette.css(+11 -11)📝
frontend/src/components/command-palette/CommandPalette.tsx(+1 -1)📝
frontend/src/components/form/DateTimePicker.tsx(+7 -6)📝
frontend/src/hooks/useTheme.tsx(+176 -18)📝
frontend/src/layouts/AppSidebar.css(+64 -0)📝
frontend/src/layouts/AppSidebar.tsx(+65 -4)📝
frontend/src/models/status.ts(+2 -1)📝
frontend/src/pages/index/VitalTile.tsx(+4 -1)➕
frontend/src/styles/glass.css(+106 -0)➕
frontend/src/test/accent-root-var.test.tsx(+59 -0)📝
internal/web/translation/ar-EG.json(+11 -0)📝
internal/web/translation/en-US.json(+11 -0)📝
internal/web/translation/es-ES.json(+11 -0)📝
internal/web/translation/fa-IR.json(+11 -0)📝
internal/web/translation/id-ID.json(+11 -0)📝
internal/web/translation/ja-JP.json(+11 -0)📝
internal/web/translation/pt-BR.json(+11 -0)📝
internal/web/translation/ru-RU.json(+11 -0)📝
internal/web/translation/sk-SK.json(+11 -0)📝
internal/web/translation/tr-TR.json(+11 -0)...and 4 more files
📄 Description
Summary
Adds an accent color picker (7 colors) and an optional "Glassy style" to the panel. Both work with the light, dark and ultra-dark themes and are saved per browser, the same way the theme is. With the defaults the panel looks exactly as it does today.
Why
Admins who run several panels want to tell them apart at a glance, and some want a softer look. Today the only appearance choice is light/dark/ultra-dark with a fixed blue.
What changes
colorPrimary, so buttons, links, the active menu item, tabs and switches follow it.Type of change
Areas affected
How was this tested?
npm run typecheck,npm run lint,npm run format:check,npm run buildand the unit tests pass (1422 tests).make genleavessrc/generatedunchanged.Screenshots / recordings
Accent picker (sidebar, light theme):
Glassy style, dark + green:
Glassy style, light + pink:
Glassy style, ultra-dark + orange (Inbounds):
Breaking changes
None. The defaults (blue accent, Glassy style off) keep today's look. Both choices live in
localStorageonly.Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.