Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(ui): Improve dark theme #140

Merged
merged 12 commits into from
May 11, 2024
Prev Previous commit
Next Next commit
perf(ui): the ContextMenu retains its previous style in light mode
  • Loading branch information
mfz committed May 11, 2024
commit d4107e35b17746e8c08d10350b52e043bb0c063d
2 changes: 1 addition & 1 deletion packages/ui/src/components/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default {
.context-menu {
position: fixed;
z-index: 1;
border: 1px solid var(--default-border-color);
border: 1px solid var(--menu-border-color);
box-shadow: 0 0 1rem 0 var(--box-shadow-color);
border-radius: calc(1rem * 0.3);
min-width: 15rem;
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ html {
--primary-text-color: white;
--primary-background-color: #1a73e8;
--primary-hover-background-color: rgba(26, 115, 232, 0.5);
--menu-border-color: #82828240;
}

html.theme-dark {
Expand Down Expand Up @@ -192,6 +193,7 @@ html.theme-dark {
--primary-text-color: var(--text-color);
--primary-background-color: #1a73e8;
--primary-hover-background-color: rgba(26, 115, 232, 0.5);
--menu-border-color: #48484880;
}

* {
Expand Down