Skip to content

Commit

Permalink
Fix graph ticks color based on dark desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Nov 3, 2023
1 parent abce842 commit f872852
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gui/constants/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { get } from 'svelte/store';
import { get_template_color } from '../helpers/color-helpers';
import { getCustomConfig } from '../config';
import { locale } from '../locale/i18n';
import { isDay } from '../stores/terrariumpi';
import { isDarkDesktop } from '../stores/terrariumpi';

const settings = getCustomConfig();

Expand All @@ -28,7 +28,7 @@ export const graphDefaultOpts = {
},
ticks: {
color: function () {
return get(isDay) ? '#6c757d' : '#adb5bd';
return get(isDarkDesktop) ? '#adb5bd' : '#6c757d';
},
},
},
Expand All @@ -41,7 +41,7 @@ export const graphDefaultOpts = {
},
ticks: {
color: function () {
return get(isDay) ? '#6c757d' : '#adb5bd';
return get(isDarkDesktop) ? '#adb5bd' : '#6c757d';
},
callback: function (value, index, ticks) {
let unit = null;
Expand Down Expand Up @@ -80,7 +80,7 @@ export const graphDefaultOpts = {
},
ticks: {
color: function () {
return get(isDay) ? '#6c757d' : '#adb5bd';
return get(isDarkDesktop) ? '#adb5bd' : '#6c757d';
},
callback: function (value, index, ticks) {
index = null;
Expand Down Expand Up @@ -121,7 +121,7 @@ export const graphDefaultOpts = {
},
labels: {
color: function () {
return get(isDay) ? '#6c757d' : '#adb5bd';
return get(isDarkDesktop) ? '#adb5bd' : '#6c757d';
},
},
},
Expand Down

0 comments on commit f872852

Please sign in to comment.