git ssb

10+

Matt McKegg / patchwork



Commit dbe444113f2ca34fc436778abd48372dd514941d

Merge PR #679

Matt McKegg committed on 12/11/2017, 11:49:25 PM
Parent: 96020cb99ffeaf0eff3ad6dbd5ac52bfb640217f
Parent: 26f53e95ef79f594060f273929b9b44b2e9b3481

Files changed

locales/de.jsonchanged
locales/en.jsonchanged
locales/es.jsonchanged
locales/ki.jsonchanged
locales/pt-BR.jsonchanged
locales/pt.jsonchanged
main-window.jschanged
modules/page/html/render/settings.jschanged
locales/de.jsonView
@@ -175,6 +175,7 @@
175175 "other": "Du folgst %s Personen die dieser Person folgen."
176176 },
177177 "See less": "weniger zeigen",
178178 "See more": "mehr zeigen",
179 + "Font Size": "Schriftgröße",
179180 "pt-BR": "pt-BR"
180181 }
locales/en.jsonView
@@ -184,6 +184,7 @@
184184 "See less": "See less",
185185 "See more": "See more",
186186 "(missing message)": "(missing message)",
187187 "assigned a description to ": "assigned a description to ",
188- "Unread Message": "Unread Message"
189-}
188 + "Unread Message": "Unread Message",
189 + "Font Size": "Font Size"
190 +}
locales/es.jsonView
@@ -176,6 +176,7 @@
176176 "Cannot load thead": "No se puede cargar el hilo",
177177 "The author of this message could be outside of your follow range or they may be blocked.": "El autor de este mensaje podría estar fuera de su rango de seguimiento o puede estar bloqueado.",
178178 "You follow %s people that follow this person.": {"one":"Sigues a alguien que sigue a esta persona.","other":"Sigues a %s personas que siguen a esta persona."},
179179 "Followed by": "Seguido por",
180- "pt-BR": "Portugués Brasileño"
180 + "pt-BR": "Portugués Brasileño",
181 + "Font Size": "Tamaño de fuente"
181182 }
locales/ki.jsonView
@@ -79,6 +79,7 @@
7979 "Browse All": "Browse All",
8080 "Theme": "Theme",
8181 "Language": "Language",
8282 "Filters": "Filters",
83- " Hide following messages": " Hide following messages"
83 + " Hide following messages": " Hide following messages",
84 + "Font Size": "Font Size"
8485 }
locales/pt-BR.jsonView
@@ -139,6 +139,7 @@
139139 "en": "en",
140140 "on ": "on ",
141141 "Private Message": "Mensagem Privada",
142142 "Send Private Message": "Enviar Mensagem Privada",
143- "Publish Privately": "Publicar Privadamente"
143 + "Publish Privately": "Publicar Privadamente",
144 + "Font Size": "Tamanho da fonte"
144145 }
locales/pt.jsonView
@@ -140,6 +140,7 @@
140140 "en": "English",
141141 "on ": "em ",
142142 "Private Message": "Mensagem Privada",
143143 "Send Private Message": "Enviar Mensagem Privada",
144- "Publish Privately": "Publicar Privadamente"
144 + "Publish Privately": "Publicar Privadamente",
145 + "Font Size": "Tamanho da fonte"
145146 }
main-window.jsView
@@ -79,8 +79,16 @@
7979 })
8080 })
8181 )
8282
83 + document.head.appendChild(
84 + h('style', {
85 + innerHTML: computed(api.settings.obs.get('patchwork.fontSize', document.documentElement.style.fontSize), size => {
86 + return 'html, body {font-size: ' + size + ';}'
87 + })
88 + })
89 + )
90 +
8391 var container = h(`MainWindow -${process.platform}`, [
8492 h('div.top', [
8593 h('span.history', [
8694 h('a', {
modules/page/html/render/settings.jsView
@@ -21,8 +21,10 @@
2121 const currentTheme = api.settings.obs.get('patchwork.theme')
2222 const currentLang = api.settings.obs.get('patchwork.lang')
2323 const locales = api.intl.sync.locales()
2424 const localeNameLookup = api.intl.sync.localeNames()
25 + const currentFontSize = api.settings.obs.get('patchwork.fontSize')
26 + const fontSizes = ['8px', '10px', '12px', '14px', '16px', '18px', '20px']
2527 const filterFollowing = api.settings.obs.get('filters.following')
2628
2729 var prepend = [
2830 h('PageHeading', [
@@ -69,8 +71,24 @@
6971 ])
7072 ]),
7173
7274 h('section', [
75 + h('h2', i18n('Font Size')),
76 + h('select', {
77 + style: {
78 + 'font-size': '120%'
79 + },
80 + value: when(currentFontSize, currentFontSize, ''),
81 + 'ev-change': (ev) => api.settings.sync.set({
82 + patchwork: {fontSize: ev.target.value}
83 + })
84 + }, [
85 + h('option', {value: ''}, 'Default'),
86 + fontSizes.map(size => h('option', {value: size}, size))
87 + ])
88 + ]),
89 +
90 + h('section', [
7391 h('h2', i18n('Filters')),
7492 h('label', [
7593 h('input', {
7694 type: 'checkbox',

Built with git-ssb-web