1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-02 21:47:12 +02:00
This commit is contained in:
GilbN 2021-08-22 11:05:50 +00:00
parent a969686081
commit 2250a10dc9
3 changed files with 12 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,8 @@
[class*="NavBar-plexLogo-"] {
background-image: url("https://theme-park.dev/CSS/addons/plex/plex-alt-logo/SeekPng.com_your-logo-here-png_2467553.png");
background-position: 50%;
background-repeat: no-repeat;
background-size: contain;
margin: 0 10px;
width: 45px;
}

View File

@ -42,7 +42,9 @@ if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/CSS\/variables\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}"
if [[ -n ${TP_ADDON} ]]; then
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/CSS\/addons\/plex\/${TP_ADDON}\/${TP_ADDON}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
printf 'Added custom addon: %s\n\n' "${TP_ADDON}"
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/CSS\/addons\/plex\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
printf 'Added custom addon: %s\n\n' "${addon}"
done
fi
fi