diff --git a/files/assets/images/backgrounds/glitter/1.webp b/files/assets/images/backgrounds/glitter/1.webp new file mode 100644 index 000000000..6d0f22462 Binary files /dev/null and b/files/assets/images/backgrounds/glitter/1.webp differ diff --git a/files/assets/images/backgrounds/glitter/2.webp b/files/assets/images/backgrounds/glitter/2.webp new file mode 100644 index 000000000..dd3f0cef2 Binary files /dev/null and b/files/assets/images/backgrounds/glitter/2.webp differ diff --git a/files/assets/images/backgrounds/glitter/3.webp b/files/assets/images/backgrounds/glitter/3.webp new file mode 100644 index 000000000..84ec56ef0 Binary files /dev/null and b/files/assets/images/backgrounds/glitter/3.webp differ diff --git a/files/assets/images/backgrounds/glitter/4.webp b/files/assets/images/backgrounds/glitter/4.webp new file mode 100644 index 000000000..b39005b0c Binary files /dev/null and b/files/assets/images/backgrounds/glitter/4.webp differ diff --git a/files/assets/images/backgrounds/glitter/5.webp b/files/assets/images/backgrounds/glitter/5.webp new file mode 100644 index 000000000..ea0443181 Binary files /dev/null and b/files/assets/images/backgrounds/glitter/5.webp differ diff --git a/files/assets/images/backgrounds/glitter/6.webp b/files/assets/images/backgrounds/glitter/6.webp new file mode 100644 index 000000000..2c488fbcd Binary files /dev/null and b/files/assets/images/backgrounds/glitter/6.webp differ diff --git a/files/assets/js/settings_profile.js b/files/assets/js/settings_profile.js index bbc2d5ee8..3ff9126f7 100644 --- a/files/assets/js/settings_profile.js +++ b/files/assets/js/settings_profile.js @@ -11,6 +11,18 @@ function post(url) { function updatebgselection(){ var bgselector = document.getElementById("backgroundSelector"); const backgrounds = [ + { + folder: "glitter", + backgrounds: + [ + "1.webp", + "2.webp", + "3.webp", + "4.webp", + "5.webp", + "6.webp", + ] + }, { folder: "anime", backgrounds: diff --git a/files/helpers/const.py b/files/helpers/const.py index a3cb980d7..6437e5e0e 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -196,6 +196,7 @@ WPD_CHANNEL_ID = 1013990963846332456 PIN_AWARD_TEXT = " (pin award)" THEMES = ["4chan","classic","classic_dark","coffee","dark","dramblr","light","midnight","transparent","tron","win98"] +BACKGROUND_CATEGORIES = ["glitter", "anime", "fantasy", "solarpunk", "pixelart"] COMMENT_SORTS = ["hot", "new", "old", "top", "bottom", "controversial"] SORTS = COMMENT_SORTS + ["bump", "comments"] TIME_FILTERS = ["hour", "day", "week", "month", "year", "all"] diff --git a/files/routes/jinja2.py b/files/routes/jinja2.py index 7decd1154..47754f14d 100644 --- a/files/routes/jinja2.py +++ b/files/routes/jinja2.py @@ -66,5 +66,5 @@ def inject_constants(): "HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":IMAGE_FORMATS, "PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "SORTS":SORTS, "TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES, "TIERS_ID_TO_NAME":TIERS_ID_TO_NAME, - "DEFAULT_CONFIG_VALUE":DEFAULT_CONFIG_VALUE, "IS_LOCALHOST":IS_LOCALHOST, + "DEFAULT_CONFIG_VALUE":DEFAULT_CONFIG_VALUE, "IS_LOCALHOST":IS_LOCALHOST, "BACKGROUND_CATEGORIES":BACKGROUND_CATEGORIES, } diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index ed79fcbf7..58d56ed7c 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -57,7 +57,7 @@

Change the background for the website.