Skip to content

Commit 0ba2678

Browse files
committed
Remove "dark" draw option, keep only as URL parameter
1 parent 9b7fd46 commit 0ba2678

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

demo/examples_more.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@
225225
{ "name": "crown", "file": "tutorials_graphics.root", "item": "crown", "title": "TCrown, tutorials/graphics/crown.C" },
226226
{ "name": "zstd", "file": "zstd.root", "item": "ccdb_object", "zstd": true, "title": "File with ZSTD compression, required zstd-codec.js script" },
227227
{ "name": "pave", "file": "tpavetext.root", "item": "ccdb_object", "title": "Drawing of plain TPaveText with TLine and custom text lines alignment" },
228-
{ "name": "dark", "opt": "dark", "file": "hsimple.root", "item": "hpx;1", "title": "Invert colors of histogram drawing, same as settings.DarkMode = true", "notest": true }
228+
{ "name": "dark", "url": "?nobrowser&file=$$$hsimple.root&item=hpx;1&dark", "title": "Invert colors of histogram drawing, providing &dark in URL", "notest": true }
229229
]
230230
}

modules/hist2d/THistPainter.mjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,6 @@ class THistDrawOptions {
305305
return false;
306306
};
307307

308-
if (d.check('DARK')) this.darkMode = true;
309-
310308
if (d.check('FILL_', true) && d.getColor())
311309
this.histoFillColor = d.color;
312310

@@ -1183,10 +1181,6 @@ class THistPainter extends ObjectPainter {
11831181
fp.createXY2(opts);
11841182

11851183
return fp.drawAxes2(opts.second_x, opts.second_y);
1186-
} else if (this.options.darkMode) {
1187-
let pp = this.getPadPainter();
1188-
console.log('Apply dark mode', pp?.iscan);
1189-
if (pp?.changeDarkMode) pp.changeDarkMode(true);
11901184
}
11911185

11921186
if (this.options.adjustFrame) {

0 commit comments

Comments
 (0)