Skip to content

Commit

Permalink
Merge pull request #1360 from buttercup/fix/ui_light_mode
Browse files Browse the repository at this point in the history
Fix light mode
  • Loading branch information
perry-mitchell authored Aug 5, 2024
2 parents 9c8e8e7 + 08c6713 commit 3d5a71f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function App() {
>
<ThemeProvider theme={themeType === Theme.Dark ? themes.dark : themes.light}>
<DndProvider backend={HTML5Backend}>
<BaseContainer onCopy={() => userCopiedText(document.getSelection()?.toString() ?? "")}>
<BaseContainer className={`theme-${themeType}`} onCopy={() => userCopiedText(document.getSelection()?.toString() ?? "")}>
<Router>
<Switch>
<Route path="/add-vault">
Expand Down
2 changes: 0 additions & 2 deletions source/renderer/components/VaultEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import { t } from "../../shared/i18n/trans";
import { ATTACHMENTS_MAX_SIZE } from "../../shared/symbols";
import { Theme } from "../types";

// import "@buttercup/ui/dist/styles.css";

const BENCH_IMAGE = require("../../../resources/images/bench.png").default;

interface VaultEditorProps {
Expand Down
9 changes: 7 additions & 2 deletions source/renderer/components/vault/styles/vault-ui.sass
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ a

// Splitter
.split-pane-entries, .split-pane-entry-details
background-color: #252A31 //rgb(48, 64, 77);
.theme-dark
.split-pane-entries, .split-pane-entry-details
background-color: #252A31

.theme-light
.split-pane-entries, .split-pane-entry-details
background-color: #f6f7f9

0 comments on commit 3d5a71f

Please sign in to comment.