Добавлена опция "Не включать строку статуса в обои"
This commit is contained in:
@@ -84,4 +84,12 @@
|
||||
</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;'/>
|
||||
|
||||
@@ -495,10 +495,20 @@ class TextPage extends Vue {
|
||||
}
|
||||
|
||||
setBackground() {
|
||||
if (this.wallpaperIgnoreStatusBar) {
|
||||
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() {
|
||||
try {
|
||||
this.calcDrawProps();
|
||||
|
||||
@@ -107,6 +107,7 @@ const settingDefaults = {
|
||||
textColor: '#000000',
|
||||
backgroundColor: '#ebe2c9',
|
||||
wallpaper: '',
|
||||
wallpaperIgnoreStatusBar: false,
|
||||
fontStyle: '',// 'italic'
|
||||
fontWeight: '',// 'bold'
|
||||
fontSize: 20,// px
|
||||
|
||||
Reference in New Issue
Block a user