[Client] line thiknessの設定はデバイスに保存するように
This commit is contained in:
parent
e68c6175ce
commit
84f1ce866b
|
@ -414,8 +414,8 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
lineWidth: {
|
lineWidth: {
|
||||||
get() { return this.$store.state.settings.lineWidth; },
|
get() { return this.$store.state.device.lineWidth; },
|
||||||
set(value) { this.$store.dispatch('settings/set', { key: 'lineWidth', value }); }
|
set(value) { this.$store.commit('device/set', { key: 'lineWidth', value }); }
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchOnScroll: {
|
fetchOnScroll: {
|
||||||
|
|
|
@ -414,11 +414,11 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void,
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region line width
|
//#region line width
|
||||||
document.documentElement.style.setProperty('--lineWidth', `${os.store.state.settings.lineWidth}px`);
|
document.documentElement.style.setProperty('--lineWidth', `${os.store.state.device.lineWidth}px`);
|
||||||
os.store.watch(s => {
|
os.store.watch(s => {
|
||||||
return s.settings.lineWidth;
|
return s.device.lineWidth;
|
||||||
}, v => {
|
}, v => {
|
||||||
document.documentElement.style.setProperty('--lineWidth', `${os.store.state.settings.lineWidth}px`);
|
document.documentElement.style.setProperty('--lineWidth', `${os.store.state.device.lineWidth}px`);
|
||||||
});
|
});
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
|
|
|
@ -267,8 +267,8 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
lineWidth: {
|
lineWidth: {
|
||||||
get() { return this.$store.state.settings.lineWidth; },
|
get() { return this.$store.state.device.lineWidth; },
|
||||||
set(value) { this.$store.dispatch('settings/set', { key: 'lineWidth', value }); }
|
set(value) { this.$store.commit('device/set', { key: 'lineWidth', value }); }
|
||||||
},
|
},
|
||||||
|
|
||||||
contrastedAcct: {
|
contrastedAcct: {
|
||||||
|
|
|
@ -21,7 +21,6 @@ const defaultSettings = {
|
||||||
showClockOnHeader: true,
|
showClockOnHeader: true,
|
||||||
useShadow: true,
|
useShadow: true,
|
||||||
roundedCorners: false,
|
roundedCorners: false,
|
||||||
lineWidth: 1,
|
|
||||||
circleIcons: true,
|
circleIcons: true,
|
||||||
contrastedAcct: true,
|
contrastedAcct: true,
|
||||||
showFullAcct: false,
|
showFullAcct: false,
|
||||||
|
@ -53,6 +52,7 @@ const defaultDeviceSettings = {
|
||||||
darkmode: false,
|
darkmode: false,
|
||||||
darkTheme: 'dark',
|
darkTheme: 'dark',
|
||||||
lightTheme: 'light',
|
lightTheme: 'light',
|
||||||
|
lineWidth: 1,
|
||||||
themes: [],
|
themes: [],
|
||||||
enableSounds: true,
|
enableSounds: true,
|
||||||
soundVolume: 0.5,
|
soundVolume: 0.5,
|
||||||
|
|
Loading…
Reference in New Issue