Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1321)

Unified Diff: third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js

Issue 2881453003: DevTools: update buttons to new style (Closed)
Patch Set: rebase over cleanup Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js b/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
index 44475267d74e85512c302f094088e782b24eae4b..7f4e908ba4f0636e4b1de48da19491d94f84a31c 100644
--- a/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
+++ b/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
@@ -75,7 +75,7 @@ Audits2.Audits2Panel = class extends UI.PanelWithSidebar {
'click', () => InspectorFrontendHost.openInNewTab('https://developers.google.com/web/tools/lighthouse/'));
var newButton = UI.createTextButton(
- Common.UIString('Perform an audit\u2026'), this._showLauncherUI.bind(this), 'material-button default');
+ Common.UIString('Perform an audit\u2026'), this._showLauncherUI.bind(this), '', true /* primary */);
landingCenter.appendChild(newButton);
this.setDefaultFocusedElement(newButton);
}
@@ -105,10 +105,10 @@ Audits2.Audits2Panel = class extends UI.PanelWithSidebar {
var buttonsRow = uiElement.createChild('div', 'audits2-dialog-buttons hbox');
this._startButton =
- UI.createTextButton(Common.UIString('Run audit'), this._start.bind(this), 'material-button default');
+ UI.createTextButton(Common.UIString('Run audit'), this._start.bind(this), '', true /* primary */);
this._updateStartButtonEnabled();
buttonsRow.appendChild(this._startButton);
- this._cancelButton = UI.createTextButton(Common.UIString('Cancel'), this._cancel.bind(this), 'material-button');
+ this._cancelButton = UI.createTextButton(Common.UIString('Cancel'), this._cancel.bind(this));
buttonsRow.appendChild(this._cancelButton);
this._dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.SetExactWidthMaxHeight);

Powered by Google App Engine
This is Rietveld 408576698