Skip to content

Commit

Permalink
Fix light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Aug 5, 2024
1 parent 9c8e8e7 commit 08c6713
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 08c6713

Please sign in to comment.