mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
Beautify with js-beautify 1.10.2
This commit is contained in:
parent
9d1e631ec2
commit
5d15efdc4d
@ -29,7 +29,7 @@ const N_ = function (e) {
|
|||||||
|
|
||||||
|
|
||||||
let PopupTeaMenuItem = GObject.registerClass(
|
let PopupTeaMenuItem = GObject.registerClass(
|
||||||
class PopupTeaMenuItem extends PopupMenu.PopupBaseMenuItem {
|
class PopupTeaMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||||
_init(sTeaname, nBrewtime, params) {
|
_init(sTeaname, nBrewtime, params) {
|
||||||
super._init(params);
|
super._init(params);
|
||||||
|
|
||||||
@ -49,10 +49,10 @@ class PopupTeaMenuItem extends PopupMenu.PopupBaseMenuItem {
|
|||||||
|
|
||||||
this._delegate = this;
|
this._delegate = this;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let TeaTime = GObject.registerClass(
|
let TeaTime = GObject.registerClass(
|
||||||
class TeaTime extends PanelMenu.Button {
|
class TeaTime extends PanelMenu.Button {
|
||||||
_init() {
|
_init() {
|
||||||
super._init(1.0, "TeaTime");
|
super._init(1.0, "TeaTime");
|
||||||
|
|
||||||
@ -302,10 +302,9 @@ class TeaTime extends PanelMenu.Button {
|
|||||||
this._logo.setScaling(scaling);
|
this._logo.setScaling(scaling);
|
||||||
this._graphicalTimer.setScaling(scaling);
|
this._graphicalTimer.setScaling(scaling);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function init(metadata) {
|
function init(metadata) {}
|
||||||
}
|
|
||||||
|
|
||||||
let _TeaTime;
|
let _TeaTime;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ const Me = ExUt.getCurrentExtension();
|
|||||||
const Utils = Me.imports.utils;
|
const Utils = Me.imports.utils;
|
||||||
|
|
||||||
var TwoColorIcon = GObject.registerClass(
|
var TwoColorIcon = GObject.registerClass(
|
||||||
class TwoColorIcon extends St.DrawingArea {
|
class TwoColorIcon extends St.DrawingArea {
|
||||||
_init(size, drawingObject) {
|
_init(size, drawingObject) {
|
||||||
super._init({
|
super._init({
|
||||||
reactive: true,
|
reactive: true,
|
||||||
@ -92,7 +92,7 @@ class TwoColorIcon extends St.DrawingArea {
|
|||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var TeaPot = {
|
var TeaPot = {
|
||||||
width: 484,
|
width: 484,
|
||||||
|
10
src/prefs.js
10
src/prefs.js
@ -27,7 +27,7 @@ const Columns = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var TeaTimePrefsWidget = GObject.registerClass(
|
var TeaTimePrefsWidget = GObject.registerClass(
|
||||||
class TeaTimePrefsWidget extends Gtk.Grid {
|
class TeaTimePrefsWidget extends Gtk.Grid {
|
||||||
_init() {
|
_init() {
|
||||||
super._init({
|
super._init({
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
orientation: Gtk.Orientation.VERTICAL,
|
||||||
@ -96,9 +96,9 @@ class TeaTimePrefsWidget extends Gtk.Grid {
|
|||||||
this.attach(this.graphicalCountdownSwitch, 3, curRow, 2, 1);
|
this.attach(this.graphicalCountdownSwitch, 3, curRow, 2, 1);
|
||||||
curRow += 1;
|
curRow += 1;
|
||||||
|
|
||||||
this.attach(labelAS, 0 /*col*/ , curRow+1 /*row*/ , 1 /*col span*/ , 1 /*row span*/ );
|
this.attach(labelAS, 0 /*col*/ , curRow + 1 /*row*/ , 1 /*col span*/ , 1 /*row span*/ );
|
||||||
this.attach(this.alarmSoundFileButton, 1, curRow, 1, 2);
|
this.attach(this.alarmSoundFileButton, 1, curRow, 1, 2);
|
||||||
this.attach(this.alarmSoundSwitch, 3, curRow+1, 2, 1);
|
this.attach(this.alarmSoundSwitch, 3, curRow + 1, 2, 1);
|
||||||
curRow += 2;
|
curRow += 2;
|
||||||
|
|
||||||
this.treeview = new Gtk.TreeView({
|
this.treeview = new Gtk.TreeView({
|
||||||
@ -153,7 +153,7 @@ class TeaTimePrefsWidget extends Gtk.Grid {
|
|||||||
//});
|
//});
|
||||||
// this.toolbar.get_style_context().add_class("inline-toolbar");
|
// this.toolbar.get_style_context().add_class("inline-toolbar");
|
||||||
// this.attach(this.toolbar, 0 /*col*/ , curRow /*row*/ , 3 /*col span*/ , 1 /*row span*/ );
|
// this.attach(this.toolbar, 0 /*col*/ , curRow /*row*/ , 3 /*col span*/ , 1 /*row span*/ );
|
||||||
this.addButton = Gtk.Button.new_from_icon_name("list-add-symbolic", 0 /* size: 0 - inherit */);
|
this.addButton = Gtk.Button.new_from_icon_name("list-add-symbolic", 0 /* size: 0 - inherit */ );
|
||||||
this.addButton.connect("clicked", this._addTea.bind(this));
|
this.addButton.connect("clicked", this._addTea.bind(this));
|
||||||
this.attach(this.addButton, 2 /*col*/ , curRow /*row*/ , 2 /*col span*/ , 1 /*row span*/ );
|
this.attach(this.addButton, 2 /*col*/ , curRow /*row*/ , 2 /*col span*/ , 1 /*row span*/ );
|
||||||
this.removeButton = Gtk.Button.new_from_icon_name("list-remove-symbolic", 0);
|
this.removeButton = Gtk.Button.new_from_icon_name("list-remove-symbolic", 0);
|
||||||
@ -300,7 +300,7 @@ class TeaTimePrefsWidget extends Gtk.Grid {
|
|||||||
|
|
||||||
this._inhibitUpdate = false;
|
this._inhibitUpdate = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function init() {}
|
function init() {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user