From cb681fe43d3f46d78de2024b39b78d094912f645 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 17 Aug 2023 11:29:31 -0300 Subject: [PATCH] mainWindow: Use 'devel' CSS class for test instance This gives us a nice stripped headerbar style, and allows us to not have custom CSS applied to Polari. The custom CSS currently does not match 'devel', nor the rest of the platform. --- data/resources/style.css | 8 -------- src/mainWindow.js | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/data/resources/style.css b/data/resources/style.css index 5d9bcdeb..5c789ea4 100644 --- a/data/resources/style.css +++ b/data/resources/style.css @@ -170,14 +170,6 @@ treeview.polari-server-room-list { opacity: 0.3; } -/* Differentiate test instance from "normal" ones */ -window.test-instance .content-pane headerbar { - background-image: cross-fade(25% -gtk-icontheme('system-run-symbolic')); - background-repeat: no-repeat; - background-position: 1em center; - background-size: 4em; -} - /* Differentiate snapshot builds from regular ones */ window.snapshot headerbar { background: none; } window.snapshot .titlebar { diff --git a/src/mainWindow.js b/src/mainWindow.js index 1aebf569..a9fc1e49 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -76,7 +76,7 @@ class MainWindow extends Adw.ApplicationWindow { const app = this.application; if (app.isTestInstance) - this.add_css_class('test-instance'); + this.add_css_class('devel'); if (GLib.get_application_name().toLowerCase().includes('snapshot')) this.add_css_class('snapshot'); -- GitLab