mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: Rename appearance to theme (#3237)
* refactor: Rename appearance to theme * fix * update changelog * rename theme_dark to theme--dark * add about migration
This commit is contained in:
parent
91c8b6ecbf
commit
f1daff2437
30 changed files with 324 additions and 382 deletions
|
@ -34,11 +34,11 @@ const ContextMenu = ({
|
|||
}: ContextMenuProps) => {
|
||||
const isDarkTheme = !!document
|
||||
.querySelector(".excalidraw")
|
||||
?.classList.contains("Appearance_dark");
|
||||
?.classList.contains("theme--dark");
|
||||
return (
|
||||
<div
|
||||
className={clsx("excalidraw", {
|
||||
"Appearance_dark Appearance_dark-background-none": isDarkTheme,
|
||||
"theme--dark theme--dark-background-none": isDarkTheme,
|
||||
})}
|
||||
>
|
||||
<Popover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue