git ssb

16+

Dominic / patchbay



Commit deef6f4525d00a84b10de760ede55bf07c561630

set default accessibility settings better

mixmix committed on 8/13/2018, 9:48:19 AM
Parent: fd0e5304bd3777aa0d1bedb42467e378508b89cd

Files changed

app/html/settings/accessibility.jschanged
app/sync/initialise/settings.jschanged
app/html/settings/accessibility.jsView
@@ -14,15 +14,13 @@
1414 'app.html.settings': accessibility
1515 })
1616
1717 function accessibility () {
18- const invert = api.settings.obs.get('patchbay.accessibility.invert', false)
19- const saturation = api.settings.obs.get('patchbay.accessibility.saturation', 100)
20- const brightness = api.settings.obs.get('patchbay.accessibility.brightness', 100)
21- const contrast = api.settings.obs.get('patchbay.accessibility.contrast', 100)
18 + const invert = api.settings.obs.get('patchbay.accessibility.invert')
19 + const saturation = api.settings.obs.get('patchbay.accessibility.saturation')
20 + const brightness = api.settings.obs.get('patchbay.accessibility.brightness')
21 + const contrast = api.settings.obs.get('patchbay.accessibility.contrast')
2222
23- invert(console.log)
24-
2523 return {
2624 title: 'Accessibility',
2725 body: h('AccessibilityStyles', [
2826 h('div', { 'ev-click': () => invert.set(!invert()) }, [
@@ -44,5 +42,4 @@
4442 ])
4543 }
4644 }
4745 }
48-
app/sync/initialise/settings.jsView
@@ -9,9 +9,15 @@
99 })
1010
1111 const defaults = {
1212 patchbay: {
13- defaultTabs: ['/public', '/inbox', '/notifications']
13 + defaultTabs: ['/public', '/inbox', '/notifications'],
14 + accessibility: {
15 + invert: false,
16 + saturation: 100,
17 + brightness: 100,
18 + contrast: 100
19 + }
1420 },
1521 filter: {
1622 exclude: {
1723 channels: ''

Built with git-ssb-web