Fix alignment of button text
This commit is contained in:
parent
b2d3fd4bcc
commit
6b1023f5bc
13
extension.js
13
extension.js
@ -3,6 +3,7 @@ const MainLoop = imports.mainloop;
|
|||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const PanelMenu = imports.ui.panelMenu;
|
const PanelMenu = imports.ui.panelMenu;
|
||||||
const St = imports.gi.St;
|
const St = imports.gi.St;
|
||||||
|
const Clutter = imports.gi.Clutter;
|
||||||
|
|
||||||
const _minariSpecialDayNames = new Array(
|
const _minariSpecialDayNames = new Array(
|
||||||
'Hëður',
|
'Hëður',
|
||||||
@ -50,8 +51,15 @@ MinariDate.prototype = {
|
|||||||
_init: function() {
|
_init: function() {
|
||||||
PanelMenu.Button.prototype._init.call(this, 0.0);
|
PanelMenu.Button.prototype._init.call(this, 0.0);
|
||||||
|
|
||||||
this.label = new St.Label({ text: 'Initializing' });
|
this.panelContainer = new St.BoxLayout({style_class: "panel-box"});
|
||||||
this.actor.add_actor(this.label);
|
this.actor.add_actor(this.panelContainer);
|
||||||
|
this.actor.add_style_class_name('panel-status-button');
|
||||||
|
|
||||||
|
this.label = new St.Label({
|
||||||
|
text: 'Initializing',
|
||||||
|
y_align: Clutter.ActorAlign.CENTER
|
||||||
|
});
|
||||||
|
this.panelContainer.add(this.label);
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateDate: function() {
|
_updateDate: function() {
|
||||||
@ -192,4 +200,3 @@ function enable() {
|
|||||||
_indicator._updateDate();
|
_indicator._updateDate();
|
||||||
_timer = MainLoop.timeout_add_seconds(_updateInterval, Lang.bind(_indicator, _indicator._updateDate));
|
_timer = MainLoop.timeout_add_seconds(_updateInterval, Lang.bind(_indicator, _indicator._updateDate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user