feat: reactive font size for ace editor + i18n support for font size settings strings

This commit is contained in:
liyasthomas
2021-08-14 21:40:56 +05:30
parent 691629890f
commit 9f639378ec
22 changed files with 60 additions and 43 deletions

View File

@@ -66,7 +66,7 @@ function updateThemes() {
onBeforeMount(() => {
document.documentElement.setAttribute("data-accent", themeColor.value)
$colorMode.preference = bgColor.value
document.documentElement.setAttribute("data-font-size", fontSize.value.code)
document.documentElement.setAttribute("data-font-size", fontSize.value)
})
// Listen for updates
@@ -75,7 +75,7 @@ function updateThemes() {
)
watch(bgColor, () => ($colorMode.preference = bgColor.value))
watch(fontSize, () =>
document.documentElement.setAttribute("data-font-size", fontSize.value.code)
document.documentElement.setAttribute("data-font-size", fontSize.value)
)
}
@@ -154,7 +154,6 @@ export default defineComponent({
this.$toast.show(this.$t("app.new_version_found").toString(), {
icon: "info",
duration: 0,
theme: "toasted-primary",
action: [
{
text: this.$t("reload").toString(),