mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Dark mode arrow
This commit is contained in:
4
public/v1/js/ff/charts.js
vendored
4
public/v1/js/ff/charts.js
vendored
@@ -410,13 +410,13 @@ function drawAChart(URL, container, chartType, options, colorData) {
|
|||||||
mode: 'vertical',
|
mode: 'vertical',
|
||||||
scaleID: 'x-axis-0',
|
scaleID: 'x-axis-0',
|
||||||
value: drawVerticalLine,
|
value: drawVerticalLine,
|
||||||
borderColor: 'red',
|
borderColor: lineColor,
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
label: {
|
label: {
|
||||||
backgroundColor: 'rgba(0,0,0,0)',
|
backgroundColor: 'rgba(0,0,0,0)',
|
||||||
fontFamily: "sans-serif",
|
fontFamily: "sans-serif",
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontColor: "#333",
|
fontColor: lineTextColor,
|
||||||
position: "right",
|
position: "right",
|
||||||
xAdjust: -20,
|
xAdjust: -20,
|
||||||
yAdjust: -125,
|
yAdjust: -125,
|
||||||
|
|||||||
@@ -169,6 +169,12 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||||
|
var lineColor = 'red';
|
||||||
|
var lineTextColor = '#000';
|
||||||
|
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||||
|
var lineColor = '#a00';
|
||||||
|
var lineTextColor = '#bec5cb';
|
||||||
|
}
|
||||||
var billCount = {{ billCount }};
|
var billCount = {{ billCount }};
|
||||||
var accountFrontpageUrl = '{{ route('chart.account.frontpage') }}';
|
var accountFrontpageUrl = '{{ route('chart.account.frontpage') }}';
|
||||||
var accountRevenueUrl = '{{ route('chart.account.revenue') }}';
|
var accountRevenueUrl = '{{ route('chart.account.revenue') }}';
|
||||||
|
|||||||
Reference in New Issue
Block a user