From ee676f7cb336fff5ace81f308ea2969f33737d0d Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Mar 2018 14:33:01 +0900 Subject: [PATCH] #1191 --- src/web/app/common/mios.ts | 3 ++- .../app/desktop/views/components/settings.vue | 7 +++++++ .../views/components/widget-container.vue | 15 ++++++++++++++- src/web/app/desktop/views/components/window.vue | 16 +++++++++++++++- 4 files changed, 38 insertions(+), 3 deletions(-) diff --git a/src/web/app/common/mios.ts b/src/web/app/common/mios.ts index bbe28960fd..cbb4400a73 100644 --- a/src/web/app/common/mios.ts +++ b/src/web/app/common/mios.ts @@ -289,7 +289,8 @@ export default class MiOS extends EventEmitter { me.client_settings = Object.assign({ fetchOnScroll: true, showMaps: true, - showPostFormOnTopOfTl: false + showPostFormOnTopOfTl: false, + gradientWindowHeader: false }, me.client_settings); // ローカルストレージにキャッシュ diff --git a/src/web/app/desktop/views/components/settings.vue b/src/web/app/desktop/views/components/settings.vue index 3e2d6850b7..d09b325323 100644 --- a/src/web/app/desktop/views/components/settings.vue +++ b/src/web/app/desktop/views/components/settings.vue @@ -34,6 +34,7 @@ 位置情報が添付された投稿のマップを自動的に展開します。 +
@@ -258,6 +259,12 @@ export default Vue.extend({ value: v }); }, + onChangeGradientWindowHeader(v) { + (this as any).api('i/update_client_setting', { + name: 'gradientWindowHeader', + value: v + }); + }, onChangeDisableViaMobile(v) { (this as any).api('i/update_client_setting', { name: 'disableViaMobile', diff --git a/src/web/app/desktop/views/components/widget-container.vue b/src/web/app/desktop/views/components/widget-container.vue index 7b4e1f55f0..c08e58e218 100644 --- a/src/web/app/desktop/views/components/widget-container.vue +++ b/src/web/app/desktop/views/components/widget-container.vue @@ -1,6 +1,6 @@