|
|
@ -34,12 +34,5 @@ if [[ -z ${TP_THEME} ]]; then |
|
|
|
fi |
|
|
|
|
|
|
|
# Adding stylesheets |
|
|
|
if ! grep -q "${TP_DOMAIN}/css/base" /app/emby/dashboard-ui/index.html; then |
|
|
|
echo '---------------------------' |
|
|
|
echo '| Adding the stylesheet |' |
|
|
|
echo '---------------------------' |
|
|
|
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/emby\/emby-base.css'><\/body> /g" /app/emby/dashboard-ui/index.html |
|
|
|
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" /app/emby/dashboard-ui/index.html |
|
|
|
printf 'Stylesheet set to %s\n' "${TP_THEME} |
|
|
|
" |
|
|
|
fi |
|
|
|
printf '%s\n' "@import url('https://${TP_DOMAIN}/css/${THEME_TYPE}/${TP_THEME}.css');" "@import url('https://${TP_DOMAIN}/css/base/emby/emby-base.css');" > /app/emby/dashboard-ui/modules/themes/light/theme.css |
|
|
|
printf 'Stylesheet set to %s\n' "${TP_THEME}" |
|
|
|