File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 5959 // groups
6060 this . colors . groupBgDark = '#333333'
6161 this . colors . groupOutlineDark = '#cccccc'
62+ } else if ( ! hasProperty ( this . colors , 'surfaceLight' ) ) {
63+ // backward compatability
64+ if ( hasProperty ( this . colors , 'surface' ) ) {
65+ // set default values for light theme
66+ this . colors . surfaceLight = this . colors . surface
67+ this . colors . primaryLight = this . colors . primary
68+ // pages
69+ this . colors . bgPageLight = this . colors . bgPage
70+ // groups
71+ this . colors . groupBgLight = this . colors . groupBg
72+ this . colors . groupOutlineLight = this . colors . groupOutline
73+
74+ // set default values for dark theme
75+ this . colors . surfaceDark = '#111111'
76+ this . colors . primaryDark = this . colors . primary
77+ // pages
78+ this . colors . bgPageDark = '#222222'
79+ // groups
80+ this . colors . groupBgDark = '#333333'
81+ this . colors . groupOutlineDark = '#cccccc'
82+ }
6283 }
6384
6485 if ( ! this . sizes ) {
You can’t perform that action at this time.
0 commit comments