Bug 588405 - Handle status menu button appearance in JavaScript
Make the ClutterText and ClutterTexture from the status menu button available to JavaScript, and from there improve the font definition of the user name. shell-status-menu.[ch]: Add public get_name() and get_icon() functions that return the user name label and icon texture, remove the markup from update_name_text(). panel.js: Set the font for the button consistently with that of the other panel labels.
This commit is contained in:
@ -93,6 +93,7 @@ Panel.prototype = {
|
||||
|
||||
let statusbox = new Big.Box();
|
||||
let statusmenu = this._statusmenu = new Shell.StatusMenu();
|
||||
statusmenu.get_name().fontName = 'Sans Bold 16px';
|
||||
statusbox.append(this._statusmenu, Big.BoxPackFlags.NONE);
|
||||
let statusbutton = new Button.Button(statusbox, PANEL_BUTTON_COLOR, PRESSED_BUTTON_BACKGROUND_COLOR,
|
||||
true, null, PANEL_HEIGHT);
|
||||
|
Reference in New Issue
Block a user