Skip to content

Commit

Permalink
Merge branch 'release/6.0.0' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Dec 22, 2023
2 parents 374820f + b25a6d0 commit 482223c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/app/+stats/video/video-stats.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChartConfiguration, ChartData, ChartOptions, PluginOptionsByType, Scale, TooltipItem } from 'chart.js'
import { ChartConfiguration, ChartData, ChartOptions, PluginOptionsByType, Scale, TooltipItem, defaults as ChartJSDefaults } from 'chart.js'
import zoomPlugin from 'chartjs-plugin-zoom'
import { Observable, of } from 'rxjs'
import { SelectOptionsItem } from 'src/types'
Expand Down Expand Up @@ -35,6 +35,10 @@ type ChartBuilderResult = {

type Card = { label: string, value: string | number, moreInfo?: string, help?: string }

ChartJSDefaults.backgroundColor = getComputedStyle(document.body).getPropertyValue('--mainBackgroundColor')
ChartJSDefaults.borderColor = getComputedStyle(document.body).getPropertyValue('--greySecondaryBackgroundColor')
ChartJSDefaults.color = getComputedStyle(document.body).getPropertyValue('--mainForegroundColor')

@Component({
templateUrl: './video-stats.component.html',
styleUrls: [ './video-stats.component.scss' ],
Expand Down
2 changes: 2 additions & 0 deletions client/src/sass/bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

body {
--bs-border-color-translucent: #{pvar(--inputBorderColor)};

--bs-body-color: #{pvar(--mainForegroundColor)};
}

.accordion {
Expand Down

0 comments on commit 482223c

Please sign in to comment.