preamble.tex (1478B)
1 \usepackage{tikz} 2 \usetikzlibrary{shapes} 3 \usetikzlibrary{backgrounds} 4 5 % corporate colors 6 \definecolor{spbuTerracotta}{cmyk}{.08,.91,.92,.33} 7 \definecolor{spbuGray}{cmyk}{.21,.11,.09,.22} 8 9 \definecolor{spbuWhite1}{RGB}{245,246,245} 10 \definecolor{spbuWhite2}{RGB}{230,231,230} 11 \definecolor{spbuWhite3}{RGB}{217,218,217} 12 13 \definecolor{spbuWhiteRed2}{RGB}{255,231,230} 14 \definecolor{spbuWhiteRed3}{RGB}{255,160,160} 15 \definecolor{spbuRed}{RGB}{200,40,40} 16 17 \definecolor{spbuDarkGray}{HTML}{404040} 18 \definecolor{spbuDarkGray2}{HTML}{5F7177} 19 20 \definecolor{spbuGreen}{RGB}{40,160,40} 21 \definecolor{spbuBlue}{RGB}{40,40,160} 22 23 % physical layer 24 \tikzset{Node/.style={rectangle,draw=spbuDarkGray,line width=2pt}} 25 \tikzset{Switch/.style={circle,draw=gray,fill=gray,line width=4pt,solid}} 26 \tikzset{PhysicalLink/.style={draw=gray,line width=4pt,solid}} 27 \tikzset{NetworkLink/.style={draw=black,line width=2pt,dashed}} 28 29 % logical layer 30 \tikzset{Daemon/.style={ellipse,draw=spbuBlue,line width=2pt,solid,scale=0.65}} 31 \tikzset{DaemonLink/.style={draw=spbuBlue,line width=2pt,solid}} 32 33 % application layer 34 \tikzset{Process/.style={ellipse,draw=spbuGreen,line width=2pt,solid}} 35 \tikzset{ProcessEdge/.style={draw=spbuGreen,line width=2pt,solid}} 36 37 \tikzset{Task/.style={Process,anchor=center,draw=spbuGreen}} 38 \tikzset{TaskEdge/.style={ProcessEdge,draw=spbuGreen,solid,->}} 39 \tikzset{Label/.style={label distance=0.1cm,text=spbuTerracotta}} 40 \tikzset{TaskLabel/.style={label distance=0.1cm,text=spbuGreen}}