Load gnome-shell.css at startup
https://bugzilla.gnome.org/show_bug.cgi?id=591245
This commit is contained in:
parent
e2aa2a00f0
commit
3e265b4bc6
0
data/gnome-shell.css
Normal file
0
data/gnome-shell.css
Normal file
@ -7,6 +7,7 @@ const GLib = imports.gi.GLib;
|
|||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Mainloop = imports.mainloop;
|
const Mainloop = imports.mainloop;
|
||||||
const Meta = imports.gi.Meta;
|
const Meta = imports.gi.Meta;
|
||||||
|
const Nbtk = imports.gi.Nbtk;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
@ -66,6 +67,10 @@ function start() {
|
|||||||
for (let i = 0; i < children.length; i++)
|
for (let i = 0; i < children.length; i++)
|
||||||
children[i].destroy();
|
children[i].destroy();
|
||||||
|
|
||||||
|
let style = Nbtk.Style.get_default();
|
||||||
|
let stylesheetPath = global.datadir + "/gnome-shell.css";
|
||||||
|
style.load_from_file(stylesheetPath);
|
||||||
|
|
||||||
global.connect('panel-run-dialog', function(panel) {
|
global.connect('panel-run-dialog', function(panel) {
|
||||||
// Make sure not more than one run dialog is shown.
|
// Make sure not more than one run dialog is shown.
|
||||||
getRunDialog().open();
|
getRunDialog().open();
|
||||||
|
Loading…
Reference in New Issue
Block a user