From 27ffc3766831de69814184e5bb9980a05b592cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 12 Jul 2023 16:46:29 +0200 Subject: [PATCH] extensions-app: Style development window Libadwaita includes a standard style class to distinguish nightly/development versions from regular instances, but we never to around applying it. Do that now. Part-of: --- subprojects/extensions-app/js/main.js | 4 ++++ subprojects/extensions-app/js/misc/config.js.in | 1 + subprojects/extensions-app/js/misc/meson.build | 1 + 3 files changed, 6 insertions(+) diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js index 912471ae8..98690d0e0 100644 --- a/subprojects/extensions-app/js/main.js +++ b/subprojects/extensions-app/js/main.js @@ -10,6 +10,7 @@ const Package = imports.package; Package.initFormat(); +const Config = imports.misc.config; const ExtensionUtils = imports.misc.extensionUtils; const { ExtensionState, ExtensionType } = ExtensionUtils; @@ -94,6 +95,9 @@ var ExtensionsWindow = GObject.registerClass({ _init(params) { super._init(params); + if (Config.PROFILE === 'development') + this.add_css_class('devel'); + this._updatesCheckId = 0; this._exporter = new Shew.WindowExporter({ window: this }); diff --git a/subprojects/extensions-app/js/misc/config.js.in b/subprojects/extensions-app/js/misc/config.js.in index 4350f836f..cfca5b9f1 100644 --- a/subprojects/extensions-app/js/misc/config.js.in +++ b/subprojects/extensions-app/js/misc/config.js.in @@ -1 +1,2 @@ var PACKAGE_VERSION = '@PACKAGE_VERSION@'; +var PROFILE = '@PROFILE@'; diff --git a/subprojects/extensions-app/js/misc/meson.build b/subprojects/extensions-app/js/misc/meson.build index 85652ee4d..5494ada9d 100644 --- a/subprojects/extensions-app/js/misc/meson.build +++ b/subprojects/extensions-app/js/misc/meson.build @@ -3,5 +3,6 @@ config_js = configure_file( output: '@BASENAME@', configuration: { 'GETTEXT_VERSION': meson.project_version(), + 'PROFILE': get_option('profile'), } )