I am using the classicthesis style which loads scrlayer-scrpage. I like most parts about this style but want to change a few things. One thing I used to do in other documents is to place a colored box next to the page number in the footer. I normally did it like this:
\documentclass[a4paper,11pt,fleqn]{book}
\usepackage{color}
\usepackage{fontspec}
\setlength{\textwidth}{146.8mm} % = 210mm - 37mm - 26.2mm
\setlength{\oddsidemargin}{11.6mm} % 37mm - 1in (from hoffset)
\setlength{\evensidemargin}{0.8mm} % = 26.2mm - 1in (from hoffset)
\setlength{\topmargin}{-2.2mm} % = 0mm -1in + 23.2mm
\setlength{\textheight}{221.9mm} % = 297mm -29.5mm -31.6mm - 14mm (12 to accomodate footline with pagenumber)
\setlength{\headheight}{14pt}
\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[EL]{\makebox[0pt][r]{\color{Black}\rule[0pt]{0.55\marginparwidth} {6pt}\makebox[0.16\marginparwidth][r]{\bfseries\sffamily\color{black}\fontspec[] {MetaBoldLF-Roman}\thepage}}}%
\fancyfoot[OR]{\makebox[0pt][l]{\makebox[0.16\marginparwidth][1]{\bfseries\sffamily\color{black}\fontspec[]{MetaBoldLF-Roman}\thepage}\color{Blac}\rule[0pt]{0.55\marginparwidth}{6pt}}}%
\fancypagestyle{plain}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[EL]{\makebox[0pt][r]{\color{black}\rule[0pt] {0.55\marginparwidth}{6pt}\makebox[0.16\marginparwidth][r] {\bfseries\sffamily\color{black}\fontspec[]{MetaBoldLF-Roman}\thepage}}}%
\fancyfoot[OR]{\makebox[0pt][l]{\makebox[0.16\marginparwidth][l] {\bfseries\sffamily\color{black}\fontspec[]{MetaBoldLF-Roman}\thepage}\color{black}\rule[0pt]{0.55\marginparwidth}{6pt}}}}%
\fancypagestyle{addpagenumbersforpdfimports}{
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
\fancyfoot[EL]{\makebox[0pt][r]{\color{black}\rule[0pt] {0.55\marginparwidth}{6pt}\makebox[0.16\marginparwidth][r] {\bfseries\sffamily\color{black}\fontspec[]{MetaBoldLF-Roman}\thepage}}}%
\fancyfoot[OR]{\makebox[0pt][l]{\makebox[0.16\marginparwidth][l] {\bfseries\sffamily\color{black}\fontspec[]{MetaBoldLF-Roman}\thepage}\color{black}\rule[0pt]{0.55\marginparwidth}{6pt}}}}%
\begin{document}
\chapter{hello Word}
Hello world
\chapter{hello Word2}
Hello world 2
\end{document}
Can somebody help me translate this to the classicthesis file? Also want it to appear on the chapter starting pages.
classicthesis
usesscrlayer-scrpage
notscrpage2
.