Hopefully have status line styled correctly at last
This commit is contained in:
parent
55bc13a7ad
commit
fd481b3921
1 changed files with 3 additions and 4 deletions
|
@ -100,10 +100,9 @@ class PiHole extends panelMenu.Button
|
|||
// Add status popup
|
||||
|
||||
// .. status
|
||||
this.StatusField = new popupMenu.PopupMenuItem("", {style_class:"pihole-status-line"});
|
||||
this.StatusField = new St.Label({style_class:'stage popup-menu pihole-label', text:""});
|
||||
this.setStatusText();
|
||||
this.StatusField.reactive = false;
|
||||
this.menu.addMenuItem(this.StatusField);
|
||||
this.addMenuItem( this.StatusField );
|
||||
|
||||
// .. sep
|
||||
this.menu.addMenuItem(new popupMenu.PopupSeparatorMenuItem());
|
||||
|
@ -360,7 +359,7 @@ class PiHole extends panelMenu.Button
|
|||
// Status text
|
||||
setStatusText()
|
||||
{
|
||||
let clutter_text = this.StatusField.label.get_clutter_text();
|
||||
let clutter_text = this.StatusField.get_clutter_text();
|
||||
clutter_text.set_markup( _("Pi-Hole Status") + ": <b>" + this.Status + "</b>" );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue