Skip to content

Commit

Permalink
fix: Fix toolbar buttons color
Browse files Browse the repository at this point in the history
  • Loading branch information
r8 committed Aug 12, 2023
1 parent e19a1b6 commit f731890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/observers/themeWatcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useSetAtom } from "jotai";
import { themeAtom } from "../../store/themeAtom";

const getButtonBackgroundColor = () => {
let elem = parent.document.querySelector("h1.title");
let elem = parent.document.querySelector("button.ui__button");
let style = getComputedStyle(elem);

return style.color;
return style.backgroundColor;
};

const ThemeWatcher = () => {
Expand Down

0 comments on commit f731890

Please sign in to comment.