From 90cada307615bba1572f56105405023871635a11 Mon Sep 17 00:00:00 2001 From: AsaNehm <101250148+AsaNehm@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:37:04 +0200 Subject: [PATCH] Off-white background implementation (ROOT) To allow for seamless plots on the updated DUNE slides template, this adds the option to change the background color of plots to the same off-white (#f0f0f0) color. Function is called off_white.bkg and would be called like the other dunestyle functions --- src/root/cpp/include/DUNEStyle.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/root/cpp/include/DUNEStyle.h b/src/root/cpp/include/DUNEStyle.h index 430afa9..0e2f1db 100644 --- a/src/root/cpp/include/DUNEStyle.h +++ b/src/root/cpp/include/DUNEStyle.h @@ -418,7 +418,17 @@ namespace dunestyle return ret; } + // ---------------------------------------------------------------------------- + + /// Change the background color to an off-white color (#f0f0f0) for use on updated DUNE slide (new template) + void Off_white_bkg() + { + static const TColor __off_white(TColor::GetFreeColorIndex(), 0.94, 0.94, 0.94); + gStyle->SetCanvasColor(__off_white); + gStyle->SetTitleFillColor(__off_white); + gStyle->SetStatColor(__off_white); + } // ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------