2022-07-16

This commit is contained in:
deathbybandaid 2022-07-16 07:41:58 -04:00
parent 43b01110c2
commit 618e929a50
6 changed files with 511 additions and 815 deletions

View File

@ -1,35 +1,19 @@
/* Desktop */
@media (min-width: 752px) {
.header-icon.px-3.m-0.d-none.d-md-block img {
.mantine-Avatar-root[class*="bazarr-"] img {
display: none !important;
}
.header-icon.px-3.m-0.d-none.d-md-block:before {
background-image: url("/theme.park/css/addons/bazarr/bazarr-4k-logo/bazarr4k.png");
display: inline-block;
width: 32px;
height: 32px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
/* Mobile */
@media (max-width: 767px) {
.sidebar-title.d-flex.align-items-center.d-md-none.container img {
display: none !important;
}
.sidebar-title.d-flex.align-items-center.d-md-none.container:before {
.mantine-Avatar-root[class*="bazarr-"]:before {
background-image: url("/theme.park/css/addons/bazarr/bazarr-4k-logo/bazarr4k.png");
display: inline-block;
width: 32px;
height: 32px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
content: "";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
#root>div>nav>div>div.mantine-Group-root.mantine-Group-child[class*="bazarr-"]>div>span:after {
content: " 4K";
}

View File

@ -37,30 +37,19 @@
}
/* HEADER */
.header-container .bg-primary {
.mantine-Header-root[class*="bazarr-"] {
background-color: var(--header-color) !important;
border-bottom: 1px solid var(--transparency-light-15);
}
/* SIDE MENU */
.sidebar-container {
.mantine-Navbar-root[class*="bazarr-"] {
background-color: var(--side-menu-color) !important;
color: white !important;
}
.sidebar-container .sidebar-button {
color: var(--side-menu-link-color) !important;
}
.sidebar-container .sidebar-button {
background-color: var(--side-menu-color) !important;
}
.sidebar-container .sidebar-button.sb-active, .sidebar-container .sidebar-button.sb-active:hover {
color: var(--side-menu-link-color) !important;
background-color: var(--side-menu-active) !important;
}
.sidebar-container .sidebar-button:hover {
background-color: var(--side-menu-active) !important;
color: var(--side-menu-link-color) !important;
#root>div>div>main>div>div.mantine-Group-root[class*="bazarr-"],
#root>div>div>main>div>div>div.mantine-Group-root[class*="bazarr-"],
#root>div>div>main>form>div.mantine-Group-root[class*="bazarr-"] {
background: #262626 !important;
}

File diff suppressed because it is too large Load Diff

View File

@ -108,7 +108,7 @@ p,
/* CARDS */
[class*="theme--"].v-card {
background: var(--transparency-dark-50);
background: var(--transparency-dark-35);
color: var(--text);
}
@ -223,6 +223,10 @@ p,
button>.v-btn--is-elevated .v-btn--has-bg.v-icon__svg {
fill: var(--button-text);
}
[class*="theme--"].v-btn.v-btn--has-bg .v-icon__svg {
fill: var(--button-text) !important;
}
.v-icon__svg{
fill: rgb(var(--accent-color)) !important;
}
@ -461,6 +465,13 @@ button>.v-btn--is-elevated .v-btn--has-bg.v-icon__svg {
color: var(--text-hover);
}
[class*="theme--"].v-data-table .v-data-table__empty-wrapper {
color: var(--text);
}
[class*="theme--"].v-tabs-items {
background-color: transparent;
}
/* TOOLTIP */
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title,
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
@ -497,3 +508,10 @@ button>.v-btn--is-elevated .v-btn--has-bg.v-icon__svg {
.v-speed-dial__list .v-icon__svg {
fill: var(--text-hover);
}
/* SETTING */
[class*="theme--"].v-list {
background: var(--transparency-light-05);
color: rgba(0,0,0,.87);
}

17
fetch.sh Normal file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Downloads all docker mod scripts
MODS=$(curl https://theme-park.dev/themes.json | jq -r '.["docker-mods"]')
if [[ "$0" == "bash" ]]; then
DIR="/tmp/theme-park-mods"
else
DIR="$0"
fi
mkdir -p "$DIR"
printf "\nSaving mods into $DIR\n\n"
jq -r 'to_entries | map(.key + "|" + (.value | tostring)) | .[]' <<< "$MODS" | \
while IFS='|' read key value; do
curl "$value" --create-dirs --output "$DIR/$key" --silent
echo "Fetched $key script"
done
chmod go+rx $DIR

View File

@ -61,7 +61,7 @@ def create_addons_json():
return dumps(ADDONS, sort_keys=True)
def create_json(app_folders: list = None, themes: list = None, community_themes: list = None, no_sub_folders=False):
def create_json(app_folders: list = None, themes: list = None, community_themes: list = None ,docker_mods: list = None, no_sub_folders=False) -> str:
if no_sub_folders:
THEMES_DICT = {}
theme_shas = subprocess.check_output(["git", "ls-files", "-s", "./css/theme-options/*.css"]) if isdir(".git") else []
@ -71,12 +71,12 @@ def create_json(app_folders: list = None, themes: list = None, community_themes:
THEMES = {
theme.split(".")[0].capitalize(): {
"url": f"{scheme}://{DOMAIN}/css/theme-options/{theme}?sha={THEME_SHAS.get(theme)}"
}for theme in themes
}for theme in themes if themes
}
COMMUNITY_THEMES = {
theme.split(".")[0].capitalize(): {
"url": f"{scheme}://{DOMAIN}/css/community-theme-options/{theme}?sha={COMMUNITY_THEME_SHAS.get(theme)}"
}for theme in community_themes
}for theme in community_themes if community_themes
}
THEMES_DICT.update(dict(sorted({
"themes": {
@ -111,12 +111,17 @@ def create_json(app_folders: list = None, themes: list = None, community_themes:
} for app in app_folders if isfile(f'./css/base/{app}/.deprecated')
}
}.items())))
APPS.update(dict(sorted({
"docker-mods": {
mod: f"{scheme}://{DOMAIN}/docker-mods/{mod}/root/etc/cont-init.d/98-themepark" for mod in docker_mods if docker_mods
}
}.items())))
THEMES = loads(create_json(themes=themes, community_themes=community_themes, no_sub_folders=True))
APPS.update(ADDONS)
APPS.update(THEMES)
return dumps(APPS)
def create_theme_options():
def create_theme_options() -> None:
app_shas = subprocess.check_output(["git", "ls-files", "-s", "./css/base/*base.css"]) if isdir(".git") else []
theme_shas = subprocess.check_output(["git", "ls-files", "-s", "./css/theme-options/*.css"]) if isdir(".git") else []
community_theme_shas = subprocess.check_output(["git", "ls-files", "-s", "./css/community-theme-options/*.css"]) if isdir(".git") else []
@ -145,6 +150,7 @@ scheme = env.get('TP_SCHEME','https') if env.get('TP_SCHEME') else 'https'
if __name__ == "__main__":
app_folders = [name for name in listdir('./css/base') if isdir(join('./css/base', name))]
themes = [name for name in listdir('./css/theme-options') if isfile(join('./css/theme-options', name))]
docker_mods = [name for name in listdir('./docker-mods') if isdir(join('./docker-mods', name))]
community_themes = [name for name in listdir('./css/community-theme-options') if isfile(join('./css/community-theme-options', name))]
develop = True if isdir(".git") and subprocess.check_output(["git", "symbolic-ref", "--short", "HEAD"]).decode('ascii').strip() == "develop" else False
if env_domain:
@ -153,7 +159,7 @@ if __name__ == "__main__":
with open("CNAME", "rt", closefd=True) as cname:
CNAME = cname.readline()
DOMAIN = CNAME if not develop else f"develop.{CNAME}"
apps = loads(create_json(app_folders=app_folders, themes=themes, community_themes=community_themes))
apps = loads(create_json(app_folders=app_folders, themes=themes, community_themes=community_themes, docker_mods=docker_mods))
with open("themes.json", "w") as outfile:
dump(apps, outfile, indent=2, sort_keys=True)
create_theme_options()