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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2841>
This commit is contained in:
parent
c67614b522
commit
27ffc37668
@ -10,6 +10,7 @@ const Package = imports.package;
|
|||||||
|
|
||||||
Package.initFormat();
|
Package.initFormat();
|
||||||
|
|
||||||
|
const Config = imports.misc.config;
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
|
|
||||||
const { ExtensionState, ExtensionType } = ExtensionUtils;
|
const { ExtensionState, ExtensionType } = ExtensionUtils;
|
||||||
@ -94,6 +95,9 @@ var ExtensionsWindow = GObject.registerClass({
|
|||||||
_init(params) {
|
_init(params) {
|
||||||
super._init(params);
|
super._init(params);
|
||||||
|
|
||||||
|
if (Config.PROFILE === 'development')
|
||||||
|
this.add_css_class('devel');
|
||||||
|
|
||||||
this._updatesCheckId = 0;
|
this._updatesCheckId = 0;
|
||||||
|
|
||||||
this._exporter = new Shew.WindowExporter({ window: this });
|
this._exporter = new Shew.WindowExporter({ window: this });
|
||||||
|
@ -1 +1,2 @@
|
|||||||
var PACKAGE_VERSION = '@PACKAGE_VERSION@';
|
var PACKAGE_VERSION = '@PACKAGE_VERSION@';
|
||||||
|
var PROFILE = '@PROFILE@';
|
||||||
|
@ -3,5 +3,6 @@ config_js = configure_file(
|
|||||||
output: '@BASENAME@',
|
output: '@BASENAME@',
|
||||||
configuration: {
|
configuration: {
|
||||||
'GETTEXT_VERSION': meson.project_version(),
|
'GETTEXT_VERSION': meson.project_version(),
|
||||||
|
'PROFILE': get_option('profile'),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user