From 9dbbe4c664a37c73a48429cd6984b3266a7c672a Mon Sep 17 00:00:00 2001
From: jakobst1n <jakob.stendahl@outlook.com>
Date: Mon, 6 Mar 2023 11:44:25 +0000
Subject: Add color options

---
 UiO_profile_fp.sty | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

(limited to 'UiO_profile_fp.sty')

diff --git a/UiO_profile_fp.sty b/UiO_profile_fp.sty
index d08ac60..2c5b596 100644
--- a/UiO_profile_fp.sty
+++ b/UiO_profile_fp.sty
@@ -43,6 +43,17 @@
 \ExecuteOptions{norsk}
 \ProcessOptions \relax
 
+\definecolor{uiopfp@blue}{RGB}{124, 155, 206}
+\definecolor{uiopfp@light@blue}{RGB}{223, 231, 243}
+\definecolor{uiopfp@pink}{RGB}{251, 102, 102}
+\definecolor{uiopfp@light@pink}{RGB}{253, 224, 225}
+\definecolor{uiopfp@green}{RGB}{116, 198, 165}
+\definecolor{uiopfp@light@green}{RGB}{197, 228, 207}
+\definecolor{uiopfp@gray}{RGB}{220, 221, 223}
+\definecolor{uiopfp@grey}{RGB}{220, 221, 223}
+\definecolor{uiopfp@light@gray}{RGB}{255, 255, 255}
+\definecolor{uiopfp@light@grey}{RGB}{255, 255, 255}
+
 \RequirePackage{tikz}
 \RequirePackage[export]{adjustbox}
 \RequirePackage{color, eso-pic, graphicx, xifthen, keyval}
@@ -72,7 +83,7 @@
 % Default values:
 \def \uiopfp@author {\@author}
 \def \uiopfp@bind {0}
-\def \uiopfp@color {blue}
+\def \uiopfp@color {gray}
 \providecommand{\uiopfp@date}{\uiopfp@term~\uiopfp@year}
 \def \uiopfp@dept {\csname uiopfp@dept@\uiopfp@lang \endcsname}
 \def \uiopfp@fac {\csname uiopfp@fac@\uiopfp@lang \endcsname}
@@ -127,7 +138,7 @@
   \begin{titlepage}
     \begin{tikzpicture}[remember picture,overlay]
       % Bakgrunn
-      \node (back names) [shape=rectangle, fill=UiOFrontpageBackground, minimum height=\paperheight, minimum width=\paperwidth, anchor=south west] at (current page.south west) {};
+      \node (back names) [shape=rectangle, fill={uiopfp@light@\uiopfp@color}, minimum height=\paperheight, minimum width=\paperwidth, anchor=south west] at (current page.south west) {};
 
       % Segl
       \node[inner sep=0pt, anchor=south east] (uioname) at ([shift={(-10mm,10mm)}]back names.south east) {
@@ -143,7 +154,7 @@
       };
 
       % "Ribbon" bakgrunn
-      \node (names) [shape=rectangle, fill=UiOFrontpagePrimary, minimum height=.25\paperheight, minimum width=\paperwidth, anchor=north west] at (current page.north west) {};
+      \node (names) [shape=rectangle, fill={uiopfp@\uiopfp@color}, minimum height=.25\paperheight, minimum width=\paperwidth, anchor=north west] at (current page.north west) {};
 
       % Navnetrekk
       \node[inner sep=0pt, anchor=north west] (uioname) at ([shift={(10mm,-10mm)}]names.north west) {
-- 
cgit v1.2.3

