Free, simple, and intuitive online database diagram editor and SQL generator.
JavaScript databasedatabase-designdatabase-diagramdatabase-schemadbmldiagram-editoreditorer-diagramerderdiagramindexeddbmariadbmcporacle-databaseoracle-dbpostgresqlschema-designsqlsql-serversqlite
Added button to switch theme
ClaPalo12fbeeceb025
diff --git a/src/components/EditorHeader/ControlPanel.jsx b/src/components/EditorHeader/ControlPanel.jsxindex 15344677..79883ae1 100644--- a/src/components/EditorHeader/ControlPanel.jsx+++ b/src/components/EditorHeader/ControlPanel.jsx@@ -1313,6 +1313,24 @@ export default function ControlPanel({<i className="fa-regular fa-calendar-check" /></button></Tooltip>+ <Divider layout="vertical" margin="8px" />+ <Tooltip content="Change theme" position="bottom">+ <button+ className="py-1 px-2 hover-2 rounded text-xl -mt-0.5"+ onClick={() => {+ const body = document.body;+ if (body.hasAttribute("theme-mode")) {+ if (body.getAttribute("theme-mode") === "light") {+ menu["View"]["Theme"].children[1]["Dark"]();+ } else {+ menu["View"]["Theme"].children[0]["Light"]();+ }+ }+ }}+ >+ <i className="fa-solid fa-circle-half-stroke" />+ </button>+ </Tooltip></div><buttononClick={() => invertLayout("header")}