Skip to content

Commit

Permalink
style: use Roboto font family in charts (#1360)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas authored Feb 16, 2024
1 parent a277dfb commit dbe2c08
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/widgets/bedmesh/BedMeshChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ export default class BedMeshChart extends Mixins(BrowserMixin) {
legend: {
show: false
},
textStyle: {
fontFamily: 'Roboto'
},
darkMode,
tooltip: {
backgroundColor: labelBackground,
Expand Down Expand Up @@ -221,7 +224,7 @@ export default class BedMeshChart extends Mixins(BrowserMixin) {
<div>
<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${params.color};"></span>
<span style="font-size:16px;color:#666;font-weight:400;margin-left:2px">
${params.seriesName}
${this.$filters.startCase(params.seriesName)}
</span>
<div style="clear: both"></div>
<span style="font-size:16px;color:#666;font-weight:400;margin-left:2px">
Expand Down
3 changes: 3 additions & 0 deletions src/components/widgets/diagnostics/DiagnosticsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ export default class DiagnosticsCard extends Mixins(BrowserMixin) {
const options = {
grid,
color,
textStyle: {
fontFamily: 'Roboto'
},
legend: {
show: false
},
Expand Down
3 changes: 3 additions & 0 deletions src/components/widgets/thermals/ThermalChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ export default class ThermalChart extends Mixins(BrowserMixin) {
const options = {
grid,
textStyle: {
fontFamily: 'Roboto'
},
color,
legend: {
show: false,
Expand Down
5 changes: 4 additions & 1 deletion src/store/charts/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export const getters: GetterTree<ChartState, RootState> = {
return {
color,
grid,
textStyle: {
fontFamily: 'Roboto'
},
tooltip: {
...tooltip,
show: true,
Expand Down Expand Up @@ -107,7 +110,7 @@ export const getters: GetterTree<ChartState, RootState> = {
<div style="white-space: nowrap;">
${param.marker}
<span style="font-size:${fontSize}px;color:${fontColor};font-weight:400;margin-left:2px">
${param.seriesName}:
${Vue.$filters.startCase(param.seriesName)}:
</span>
<span style="float:right;margin-left:20px;font-size:${fontSize}px;color:${fontColor};font-weight:900">
${param.value[yDimension]}${ySuffix}
Expand Down

0 comments on commit dbe2c08

Please sign in to comment.