add: builtin ProductSans font and option to toggle

This commit is contained in:
RainyXeon
2024-07-09 21:16:35 +07:00
committed by ThePedroo
parent 341d4944b4
commit 59ac30d3cc
17 changed files with 202 additions and 3 deletions

View File

@@ -175,17 +175,25 @@ androidComponents.onVariants { variant ->
set.add(Pair(root.file("webroot/js/list/settings.js").asFile, null))
set.add(Pair(root.file("webroot/js/list/language.js").asFile, null))
set.add(Pair(root.file("webroot/js/switcher/fontChanger.js").asFile, null))
set.add(Pair(root.file("webroot/lang/en_US.json").asFile, null))
set.add(Pair(root.file("webroot/lang/ja_JP.json").asFile, null))
set.add(Pair(root.file("webroot/lang/pt_BR.json").asFile, null))
set.add(Pair(root.file("webroot/lang/ro_RO.json").asFile, null))
set.add(Pair(root.file("webroot/lang/ru_RU.json").asFile, null))
set.add(Pair(root.file("webroot/lang/vi_VN.json").asFile, null))
set.add(Pair(root.file("webroot/lang/zh_CN.json").asFile, null))
set.add(Pair(root.file("webroot/lang/zh_TW.json").asFile, null))
set.add(Pair(root.file("webroot/js/modal/language.js").asFile, null))
set.add(Pair(root.file("webroot/js/modal/errorHistory.js").asFile, null))
set.add(Pair(root.file("webroot/css/index.css").asFile, null))
set.add(Pair(root.file("webroot/css/fonts.css").asFile, null))
set.add(Pair(root.file("webroot/fonts/ProductSans-Italic.ttf").asFile, null))
set.add(Pair(root.file("webroot/fonts/ProductSans-Regular.ttf").asFile, null))
set.add(Pair(root.file("webroot/assets/mark.svg").asFile, null))
set.add(Pair(root.file("webroot/assets/tick.svg").asFile, null))

View File

@@ -132,11 +132,19 @@ extract "$ZIPFILE" 'webroot/lang/pt_BR.json' "$MODPATH/webroot/lang" true
extract "$ZIPFILE" 'webroot/lang/ro_RO.json' "$MODPATH/webroot/lang" true
extract "$ZIPFILE" 'webroot/lang/ru_RU.json' "$MODPATH/webroot/lang" true
extract "$ZIPFILE" 'webroot/lang/vi_VN.json' "$MODPATH/webroot/lang" true
extract "$ZIPFILE" 'webroot/lang/zh_CN.json' "$MODPATH/webroot/lang" true
extract "$ZIPFILE" 'webroot/lang/zh_TW.json' "$MODPATH/webroot/lang" true
extract "$ZIPFILE" 'webroot/js/modal/language.js' "$MODPATH/webroot/js/modal" true
extract "$ZIPFILE" 'webroot/js/modal/errorHistory.js' "$MODPATH/webroot/js/modal" true
extract "$ZIPFILE" 'webroot/js/switcher/fontChanger.js' "$MODPATH/webroot/js/switcher" true
extract "$ZIPFILE" 'webroot/css/index.css' "$MODPATH/webroot/css" true
extract "$ZIPFILE" 'webroot/css/fonts.css' "$MODPATH/webroot/css" true
extract "$ZIPFILE" 'webroot/fonts/ProductSans-Italic.ttf' "$MODPATH/webroot/fonts" true
extract "$ZIPFILE" 'webroot/fonts/ProductSans-Regular.ttf' "$MODPATH/webroot/fonts" true
extract "$ZIPFILE" 'webroot/assets/mark.svg' "$MODPATH/webroot/assets" true
extract "$ZIPFILE" 'webroot/assets/tick.svg' "$MODPATH/webroot/assets" true