From 7f96bcf9fc4a8fd84e0ed8ccb79d7cdf3d46d58d Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 15 Aug 2013 12:04:54 -0400 Subject: [PATCH] Slight color change for task borders --- task.sty | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/task.sty b/task.sty index 8b43f82..8371bf1 100644 --- a/task.sty +++ b/task.sty @@ -1,7 +1,12 @@ % Task environment +\RequirePackage[usenames,dvipsnames]{xcolor} + \newcommand\taskname{Requisite} +% Tango Icon Theme Aluminum +\definecolor{taskrulecolor}{HTML}{2e3436} + \newcounter{taskc} \setcounter{taskc}{0} \renewcommand\thetaskc{\Roman{taskc}} @@ -18,27 +23,26 @@ } \newlength\taskspace - -\newlength\@@task@barwidth -\setlength\@@task@barwidth\textwidth -\addtolength\@@task@barwidth\marginparwidth -\addtolength\@@task@barwidth\marginparsep \newenvironment{task}[1][]% {% \goodbreak \setlength\taskspace{2ex}% \refstepcounter{taskc}% \vspace{-0.5\parskip}% - \leavevmode\llap{\rule{\marginparwidth}{2pt}}% - \rule{\textwidth}{2pt}% + \textcolor{taskrulecolor}{% + \leavevmode\llap{\rule{\marginparwidth}{2pt}}% + \rule{\textwidth}{2pt}% + }% \vspace{-0.5\baselineskip}% \begin{@task}[#1]% }% {% \end{@task}% \vspace{-0.85\baselineskip}% - \leavevmode\llap{\rule{\marginparwidth}{1pt}}% - \rule{\textwidth}{1pt}% + \textcolor{taskrulecolor}{% + \leavevmode\llap{\rule{\marginparwidth}{1pt}}% + \rule{\textwidth}{1pt}% + }% \ignorespaces }