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

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

Issue 2881453003: DevTools: update buttons to new style (Closed)
Patch Set: a 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 69ad4d82c7329288beb694f19dccfcf22f539465..573de5703a3b8e9849f9895c40dc26a7e19287fb 100644
--- a/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
+++ b/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
@@ -72,8 +72,8 @@ Audits2.Audits2Panel = class extends UI.PanelWithSidebar {
link.addEventListener(
'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');
+ var newButton =
+ UI.createTextButton(Common.UIString('Perform an audit\u2026'), this._showLauncherUI.bind(this), 'primary');
landingCenter.appendChild(newButton);
}
@@ -101,10 +101,9 @@ Audits2.Audits2Panel = class extends UI.PanelWithSidebar {
this._statusView = this._createStatusView(uiElement);
var buttonsRow = uiElement.createChild('div', 'audits2-dialog-buttons hbox');
- this._startButton =
- UI.createTextButton(Common.UIString('Run audit'), this._start.bind(this), 'material-button default');
+ this._startButton = UI.createTextButton(Common.UIString('Run audit'), this._start.bind(this), 'primary');
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