From 888277e49db9f5831f0afe4dd3bcc82b7b84465f Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 25 May 2022 19:11:23 +0200 Subject: refactor: use setBackgroundColor instead of CSS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristóf Marussy --- packages/renderer/src/index.tsx | 1 - packages/renderer/src/style.css | 29 ----------------------------- 2 files changed, 30 deletions(-) delete mode 100644 packages/renderer/src/style.css (limited to 'packages/renderer') diff --git a/packages/renderer/src/index.tsx b/packages/renderer/src/index.tsx index 32fcee6..f1e8542 100644 --- a/packages/renderer/src/index.tsx +++ b/packages/renderer/src/index.tsx @@ -24,7 +24,6 @@ import { addDisposer } from 'mobx-state-tree'; import React, { Suspense, lazy } from 'react'; import { createRoot } from 'react-dom/client'; -import './style.css'; import Loading from './components/Loading.js'; import ThemeProvider from './components/ThemeProvider.js'; import { exposeToReduxDevtools, hotReload } from './devTools.js'; diff --git a/packages/renderer/src/style.css b/packages/renderer/src/style.css deleted file mode 100644 index d0bf2fb..0000000 --- a/packages/renderer/src/style.css +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2022 Kristóf Marussy - * - * This file is part of Sophie. - * - * Sophie is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * SPDX-License-Identifier: AGPL-3.0-only - */ - -body { - background-color: #fff; -} - -@media (prefers-color-scheme: dark) { - body { - background-color: #121212; - } -} -- cgit v1.2.3-54-g00ecf