Skip to content
Snippets Groups Projects
Commit 2595c4b5 authored by Bob Mottram's avatar Bob Mottram
Browse files

Changing search background

parent 9d27874a
No related branches found
No related tags found
No related merge requests found
......@@ -172,12 +172,12 @@ function web_admin_background_color {
# change the search background
if [[ "$bg_color" == 'white' ]]; then
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_light.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|#f9f3f3|#0b0b0b|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|#144163|#fdfdfd|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|f9f3f3|0b0b0b|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|144163|fdfdfd|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
else
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_dark.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|#0b0b0b|#f9f3f3|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|#fdfdfd|#144163|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|0b0b0b|f9f3f3|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|fdfdfd|144163|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
fi
# change webmail theme
......
......@@ -53,6 +53,17 @@ function web_admin_background_color {
fi
done
# change the search background
if [[ "$bg_color" == 'white' ]]; then
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_light.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|f9f3f3|0b0b0b|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|144163|fdfdfd|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
else
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_dark.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|0b0b0b|f9f3f3|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|fdfdfd|144163|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
fi
# change webmail theme
if [ -f "/var/www/${local_hostname}/htdocs/mail/config/config.php" ]; then
if [[ "$bg_color" == 'white' ]]; then
......
......@@ -76,8 +76,8 @@
form input[type=submit] {
border:2px solid #456879;
border-radius:10px;
color: #f9f3f3;
background-color: #144163;
color: #0b0b0b;
background-color: #fdfdfd;
padding: 5px 4px;
text-align: center;
text-decoration: none;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment