Добавлена опция "Не включать строку статуса в обои"
This commit is contained in:
@@ -84,4 +84,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="q-mt-sm"/>
|
||||||
|
<div class="item row">
|
||||||
|
<div class="label-2"></div>
|
||||||
|
<div class="col row items-center">
|
||||||
|
<q-checkbox v-model="wallpaperIgnoreStatusBar" size="xs" label="Не включать строку статуса в обои" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<input type="file" ref="file" @change="loadWallpaperFile" style='display: none;'/>
|
<input type="file" ref="file" @change="loadWallpaperFile" style='display: none;'/>
|
||||||
|
|||||||
@@ -495,8 +495,18 @@ class TextPage extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setBackground() {
|
setBackground() {
|
||||||
this.background = `<div class="layout ${this.wallpaper}" style="width: ${this.realWidth}px; height: ${this.realHeight}px;` +
|
if (this.wallpaperIgnoreStatusBar) {
|
||||||
` background-color: ${this.backgroundColor}"></div>`;
|
this.background = `<div class="layout" style="width: ${this.realWidth}px; height: ${this.realHeight}px;` +
|
||||||
|
` background-color: ${this.backgroundColor}">` +
|
||||||
|
`<div class="layout ${this.wallpaper}" style="width: ${this.realWidth}px; height: ${this.scrollHeight}px; ` +
|
||||||
|
`top: ${(this.showStatusBar && this.statusBarTop ? this.statusBarHeight + 1 : 0)}px; position: relative;">` +
|
||||||
|
`</div>` +
|
||||||
|
`</div>`;
|
||||||
|
} else {
|
||||||
|
this.background = `<div class="layout ${this.wallpaper}" style="width: ${this.realWidth}px; height: ${this.realHeight}px;` +
|
||||||
|
` background-color: ${this.backgroundColor}"></div>`;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async onResize() {
|
async onResize() {
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ const settingDefaults = {
|
|||||||
textColor: '#000000',
|
textColor: '#000000',
|
||||||
backgroundColor: '#ebe2c9',
|
backgroundColor: '#ebe2c9',
|
||||||
wallpaper: '',
|
wallpaper: '',
|
||||||
|
wallpaperIgnoreStatusBar: false,
|
||||||
fontStyle: '',// 'italic'
|
fontStyle: '',// 'italic'
|
||||||
fontWeight: '',// 'bold'
|
fontWeight: '',// 'bold'
|
||||||
fontSize: 20,// px
|
fontSize: 20,// px
|
||||||
|
|||||||
Reference in New Issue
Block a user