This commit is contained in:
syuilo
2018-04-29 18:16:02 +09:00
parent 9f22f924f1
commit ed130ca82c
2 changed files with 5 additions and 14 deletions

View File

@@ -4,7 +4,7 @@
<div class="main" ref="main" tabindex="-1" :data-is-modal="isModal" @mousedown="onBodyMousedown" @keydown="onKeydown" :style="{ width, height }">
<div class="body">
<header ref="header"
:class="{ withGradient }"
:class="{ withGradient: clientSettings.gradientWindowHeader }"
@contextmenu.prevent="() => {}" @mousedown.prevent="onHeaderMousedown"
>
<h1><slot name="header"></slot></h1>
@@ -91,13 +91,6 @@ export default Vue.extend({
},
canResize(): boolean {
return !this.isFlexible;
},
withGradient(): boolean {
return (this as any).os.isSignedIn
? (this as any).clientSettings.gradientWindowHeader != null
? (this as any).clientSettings.gradientWindowHeader
: false
: false;
}
},