[S] Auto opacity based on darkmode

This commit is contained in:
Hykilpikonna
2020-01-05 17:31:18 -05:00
parent 60a852815b
commit 44e4b615ba
+4
View File
@@ -1,4 +1,5 @@
import Constants from '@/constants';
import App from '@/components/app/app';
export default class GraphUtils
{
@@ -54,6 +55,9 @@ export default class GraphUtils
*/
static getGradeMarkAreas(opacity: number)
{
// TODO: Auto update after switching dark mode (possibly by refreshing)
opacity = App.instance.darkMode ? 0.1 : opacity;
return {
silent: true,
data: