Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit a535039

Browse files
committed
[UPDATE] dark mode color to the new one
1 parent 1932b2a commit a535039

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def build_image_chart(collection, view):
194194
'data': list(map(lambda x: x[index], datas[1:]))
195195
})
196196

197-
bkg = '%232f3437' if dark_mode else 'white'
197+
bkg = '%23191919' if dark_mode else 'white'
198198
data = {
199199
'type': chart_type.lower().replace('chart', ''),
200200
'data': {

templates/chart.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838

3939
{% if dark_mode %}
4040
options['titleTextStyle'] = {color: 'white'};
41-
options['backgroundColor'] = 'rgb(47, 52, 55)';
41+
options['backgroundColor'] = '#191919';
4242
options['legend'] = {textStyle: {color: 'white'}};
43-
options['pieSliceBorderColor'] = 'rgb(47, 52, 55)';
43+
options['pieSliceBorderColor'] = '#191919';
4444
{% endif %}
4545

4646
// Instantiate and draw our chart, passing in some options.

templates/schema.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141

4242
{% if dark_mode %}
4343
options.titleTextStyle = { color: 'white' };
44-
options.backgroundColor = 'rgb(47, 52, 55)';
44+
options.backgroundColor = '#191919';
4545
options.legend = { textStyle: { color: 'white' } };
4646
options.hAxis = { textStyle: { color: 'white' } };
4747
options.vAxis = { textStyle: { color: 'white' } };
48-
options.pieSliceBorderColor = 'rgb(47, 52, 55)';
48+
options.pieSliceBorderColor = '#191919';
4949
{% endif %}
5050

5151
// Instantiate and draw our chart, passing in some options.

0 commit comments

Comments
 (0)