Skip to content

Commit

Permalink
demo: Change the menu icon to settings icon
Browse files Browse the repository at this point in the history
The menu icon does not give any clue what is in the menu.  A settings
icon is much clearer, and hopefully will make the demo settings easier
to discover.

Change-Id: I198a1f628d11533c8f97dc861c1e8ecb55fa46e1
  • Loading branch information
joeyparrish committed Oct 6, 2020
1 parent 1e1b3be commit e717396
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ shakaDemo.Main = class {

/** @private {?number} */
this.currentErrorSeverity_ = null;

// Override the icon for the MDL library's menu button.
// eslint-disable-next-line no-restricted-syntax
MaterialLayout.prototype.Constant_.MENU_ICON = 'settings';
}

/**
Expand Down
6 changes: 6 additions & 0 deletions externs/mdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ const MaterialLayout = class {
toggleDrawer() {}
};

/** @const */
MaterialLayout.prototype.Constant_ = {};

/** @type {string} */
MaterialLayout.prototype.Constant_.MENU_ICON;

/** @const {?MaterialLayout} */
Element.prototype.MaterialLayout;

0 comments on commit e717396

Please sign in to comment.