From eebf5145d4305a6a9c4b60741cda449389238b16 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Fri, 22 Jul 2022 01:30:53 +0200
Subject: [PATCH] clean up tcbox table edges

---
 layout.sty | 21 ++++++++++++++++++---
 test.tex   |  1 -
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/layout.sty b/layout.sty
index c1ac492f..b6f5f49e 100644
--- a/layout.sty
+++ b/layout.sty
@@ -633,7 +633,12 @@ Roll & Result \\
 
 \it}{\normalfont\vspace{2em}}
 
-\newtcolorbox{xpchart}[1]{tabularx={l|p{.8\textwidth}},adjusted title=XP Rewards for #1,bottom=10pt}
+\newtcolorbox{xpchart}[1]{tabularx={l|p{.8\textwidth}},adjusted title=XP Rewards for #1,
+	bottom=10pt,
+	left=3pt,
+	right=3pt,
+	code={\rowcolors{3}{}{gray!10}}
+	}
 
 % this shows encounters, and the two counters below show the encounter number
 
@@ -642,6 +647,8 @@ Roll & Result \\
 	adjusted title=Encounters in #1,
 	tabularx={XXp{.6\textwidth}},
 	bottom=10pt,
+	left=3pt,
+	right=3pt,
 	code={\rowcolors{2}{}{gray!10}\setcounter{enc}{19}\setcounter{list}{18}}}
 
 \newcommand{\li}{\addtocounter{enc}{-1}\arabic{enc}&}
@@ -650,13 +657,21 @@ Roll & Result \\
 \newtcolorbox{rollchart}{
 	tabularx={p{.25\linewidth}X},
 	top=10pt,
-	bottom=10pt}
+	bottom=10pt,
+	left=3pt,
+	right=3pt,
+	code={\rowcolors{2}{}{gray!10}}
+	}
 
 \newtcolorbox{xpbox}[1]{
 	tabularx={lX},
 	bottom=10pt,
+	left=3pt,
+	right=3pt,
 	top=10pt,
-	equal height group=#1}
+	code={\rowcolors{2}{}{gray!10}},
+	equal height group=#1
+	}
 
 
 %%%%%%%%%%%%%%%%%%% COMMANDS %%%%%%%%%%%%%%%%%%%%
diff --git a/test.tex b/test.tex
index f4fffe6b..42913809 100644
--- a/test.tex
+++ b/test.tex
@@ -95,7 +95,6 @@ Roll & Result \\\hline
 		+4 & 50 \\
 \end{xpbox}
 
-
 \subsection{And further more\ldots}
 
 \lipsum[10]
-- 
GitLab