iso-profiles-settings/tromjaro/gnome/desktop-overlay/etc/skel/.local/share/gnome-shell/extensions/unite@hardpixel.eu/overrides/prefs.js

32 lines
781 B
JavaScript

const GLib = imports.gi.GLib
const Me = imports.misc.extensionUtils.getCurrentExtension()
const Override = Me.imports.overrides.helper
const VERSION = Me.imports.overrides.helper.VERSION
var PrefsWidget = class PrefsWidget extends Override.Injection {
get active() {
return VERSION < 40
}
_init() {
this._replace('_loadTemplate')
}
_loadTemplate() {
const template = GLib.build_filenamev([Me.path, 'overrides', 'settings.ui'])
this._buildable.add_from_file(template)
this._container = this._getWidget('prefs_widget')
this.add(this._container)
if (VERSION >= 36) {
const fonts = this._getWidget('use-system-fonts-section')
fonts.set_no_show_all(true)
fonts.set_visible(false)
}
this.show_all()
}
}