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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js

Issue 2520003006: [Devtools] Fix hover issue with darktheme in network (Closed)
Patch Set: [Devtools] Fix hover issue with darktheme in network Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
index 904fde4906f427632db86b33ff16df4cedea4c80..a0a23dcfce02a781034f089d806ba4cd90ce8d95 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
@@ -97,9 +97,10 @@ UI.TimelineGrid = class {
* @param {!CanvasRenderingContext2D} context
* @param {!UI.TimelineGrid.Calculator} calculator
* @param {number} paddingTop
+ * @param {number} headerHeight
* @param {number=} freeZoneAtLeft
*/
- static drawCanvasGrid(context, calculator, paddingTop, freeZoneAtLeft) {
+ static drawCanvasGrid(context, calculator, paddingTop, headerHeight, freeZoneAtLeft) {
context.save();
var ratio = window.devicePixelRatio;
context.scale(ratio, ratio);
@@ -109,11 +110,11 @@ UI.TimelineGrid = class {
var dividerOffsets = dividersData.offsets;
var precision = dividersData.precision;
- context.fillStyle = 'rgba(255, 255, 255, 0.5)';
- context.fillRect(0, 0, width, 15);
+ context.fillStyle = UI.themeSupport.patchColor('rgba(255, 255, 255, 0.5)', UI.ThemeSupport.ColorUsage.Background);
+ context.fillRect(0, 0, width, headerHeight);
- context.fillStyle = '#333';
- context.strokeStyle = 'rgba(0, 0, 0, 0.1)';
+ context.fillStyle = UI.themeSupport.patchColor('#333', UI.ThemeSupport.ColorUsage.Foreground);
+ context.strokeStyle = UI.themeSupport.patchColor('rgba(0, 0, 0, 0.1)', UI.ThemeSupport.ColorUsage.Foreground);
context.textBaseline = 'hanging';
context.font = '11px ' + Host.fontFamily();
context.lineWidth = 1;
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698