mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
dashboard: inherit text color from the Chart defaults for the inline gauge plugin (https://github.com/opnsense/core/issues/7488)
This commit is contained in:
parent
eac8af8e7f
commit
b74baecf13
@ -115,6 +115,7 @@ export default class BaseGaugeWidget extends BaseWidget {
|
||||
let fontSize = (height / divisor).toFixed(2);
|
||||
ctx.font = fontSize + "em SourceSansProSemiBold";
|
||||
ctx.textBaseline = "middle";
|
||||
ctx.fillStyle = Chart.defaults.color;
|
||||
|
||||
let textX = Math.round((width - ctx.measureText(primaryText).width) / 2);
|
||||
let textY = (height * 0.66);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user