File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ function initialize(data) {
41
41
// 'devtools.theme' preference, so make sure to properly
42
42
// convert it into class name.
43
43
document . body . classList . add ( "theme-" + data . theme ) ;
44
+ document . documentElement . classList . add ( "theme-" + data . theme ) ;
44
45
45
46
// Get content ready for rendering.
46
47
var store = new GripStore ( ) ;
Original file line number Diff line number Diff line change @@ -116,9 +116,15 @@ DataTooltip.prototype =
116
116
let data = JSON . stringify ( this . jQueryData ) ;
117
117
let theme = Services . prefs . getCharPref ( "devtools.theme" ) ;
118
118
119
+ // xxxHonza: can be removed as soon as Fx44 is the
120
+ // minimum requirement.
119
121
loadSheet ( win , "chrome://browser/skin/devtools/" + theme +
120
122
"-theme.css" , "author" ) ;
121
123
124
+ // Theme paths have changed in Fx44. Also, it should be enough
125
+ // to included only them variables.
126
+ loadSheet ( win , "resource://devtools/client/themes/variables.css" , "author" ) ;
127
+
122
128
// The tooltip is opened for clicked jQuery data, so pass
123
129
// it in together with the current active theme.
124
130
let input = Content . cloneIntoContentScope ( win , {
You can’t perform that action at this time.
0 commit comments