Commit 7b11fb39 by Kornkitt Poolsup

change to only open light theme to prevent green-page-error

parent 5fff48b3
No preview for this file type
#FileLock
#Tue Apr 20 12:01:31 ICT 2021
server=localhost\:59392
#Wed Apr 21 11:47:18 ICT 2021
server=localhost\:54985
hostName=localhost
method=file
id=178eda7a940a923fddcf46a2600cc85efa298922caf
id=178f2c102c821db578c01cd69320af784cf46b7a7b2
......@@ -10,3 +10,7 @@
2021.04.20 12:01:16 INFO time: initialize in 7.36s
2021.04.20 12:01:32 WARN Build server is not auto-connectable.
2021.04.20 12:01:32 WARN no build tool detected in workspace 'D:\Installation\Grafana\fordevonly\grafana'. The most common cause for this problem is that the editor was opened in the wrong working directory, for example if you use sbt then the workspace directory should contain build.sbt. 
2021.04.21 11:44:37 INFO Started: Metals version 0.10.1 in workspace 'D:\Installation\Grafana\fordevonly\grafana' for client vscode 1.55.2.
2021.04.21 11:44:44 INFO time: initialize in 7.99s
2021.04.21 11:47:20 WARN Build server is not auto-connectable.
2021.04.21 11:47:20 WARN no build tool detected in workspace 'D:\Installation\Grafana\fordevonly\grafana'. The most common cause for this problem is that the editor was opened in the wrong working directory, for example if you use sbt then the workspace directory should contain build.sbt. 
import darkTheme from './dark';
// import darkTheme from './dark';
import lightTheme from './light';
import { GrafanaTheme } from '@grafana/data';
let themeMock: ((name?: string) => GrafanaTheme) | null;
export const getTheme = (name?: string) =>
(themeMock && themeMock(name)) || (name === 'light' ? lightTheme : darkTheme);
(themeMock && themeMock(name)) || (name === 'light' ? lightTheme : lightTheme);
export const mockTheme = (mock: (name?: string) => GrafanaTheme) => {
themeMock = mock;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment