From 56f94e4be5c6c8ffdc97ece343547ec40b5a98de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ka=C5=88kovsk=C3=BD?= Date: Tue, 20 Feb 2024 10:57:06 +0100 Subject: [PATCH] Introduce dark mode support --- src/index.js | 2 +- test/browser-layouts.json | 6 ++++++ test/reference | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 7742d6436b..048861269e 100644 --- a/src/index.js +++ b/src/index.js @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with Cockpit; If not, see . */ - +import "cockpit-dark-theme"; import "../pkg/lib/patternfly/patternfly-5-cockpit.scss"; import React from "react"; diff --git a/test/browser-layouts.json b/test/browser-layouts.json index 444a3cc6ec..eb1ce2e394 100644 --- a/test/browser-layouts.json +++ b/test/browser-layouts.json @@ -5,6 +5,12 @@ "theme": "light", "shell_size": [1920, 1200] }, + { + "name": "dark", + "theme": "dark", + "shell_size": [1920, 1200], + "content_size": [1920, 1200] + }, { "name": "rtl", "theme": "light", diff --git a/test/reference b/test/reference index e581fa467b..cdd95f676a 160000 --- a/test/reference +++ b/test/reference @@ -1 +1 @@ -Subproject commit e581fa467ba7953c83aa1b5cd738635d0e3d6bb2 +Subproject commit cdd95f676a333d125384018ee63c9568a5e73af1