ledplayer 将工具栏文件管理器和宫格设置移动到其他设置下面。工具栏新增窗口全屏和窗口恢复按钮

This commit is contained in:
fangxiang 2022-10-10 17:17:44 +08:00
parent 364f8cd54d
commit a41fd4dec0
3 changed files with 84 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -89,6 +89,33 @@
<q-btn <q-btn
stretch stretch
no-caps no-caps
v-if="$store.state.isLedPlayer()"
:disable="!$store.state.power_state"
flat
stack
icon="img:new_icon/full_screen_icon.png"
class="q-mr-sm"
:label="$t('full screen window')"
@click="fullscreenWindow"
/>
<q-btn
stretch
no-caps
v-if="$store.state.isLedPlayer()"
:disable="!$store.state.power_state"
flat
stack
icon="img:new_icon/exit_full_screen_icon.png"
class="q-mr-sm"
:label="$t('restore window size')"
@click="exitFullscreenWindow"
/>
<q-btn
stretch
no-caps
v-if="$store.state.isSpecialVideo()"
:disable="!$store.state.power_state" :disable="!$store.state.power_state"
flat flat
stack stack
@ -100,6 +127,7 @@
<q-btn <q-btn
stretch stretch
no-caps no-caps
v-if="$store.state.isSpecialVideo()"
:disable="!$store.state.power_state" :disable="!$store.state.power_state"
flat flat
stack stack
@ -262,6 +290,42 @@
class="q-mr-sm" class="q-mr-sm"
> >
<q-list style="background-color: #3e9acd" class="shadow-2 text-white"> <q-list style="background-color: #3e9acd" class="shadow-2 text-white">
<q-item
clickable
:disable="!$store.state.power_state"
v-if="$store.state.isLedPlayer()"
v-close-popup
@click="
($store.state.isSpecialVideo()
? $refs.special_video_grid_setting_dialog
: $refs.grid_setting_dialog
)?.showDialog()
"
>
<q-item-section avatar>
<!-- <q-icon name="image" /> -->
<q-icon name="img:new_icon/grid_setting.png" />
</q-item-section>
<q-item-section>
{{ $t("grid setting") }}
</q-item-section>
</q-item>
<q-item
clickable
:disable="!$store.state.power_state"
v-if="$store.state.isLedPlayer()"
v-close-popup
@click="$refs.file_manage_dialog.showDialogAsync()"
>
<q-item-section avatar>
<!-- <q-icon name="image" /> -->
<q-icon name="img:new_icon/file_manager.png" />
</q-item-section>
<q-item-section>
{{ $t("file manage") }}
</q-item-section>
</q-item>
<q-item <q-item
clickable clickable
v-close-popup v-close-popup
@ -848,6 +912,26 @@ export default defineComponent({
} catch {} } catch {}
} }
}, },
fullscreenWindow() {
const window = $store.state.windows.find(
(element) => element && element.uuid == $store.state.selected_window
);
if (window) {
GlobalData.getInstance()
.getCurrentClient()
?.windowFullScreen(window.window_id, true);
}
},
exitFullscreenWindow() {
const window = $store.state.windows.find(
(element) => element && element.uuid == $store.state.selected_window
);
if (window) {
GlobalData.getInstance()
.getCurrentClient()
?.windowFullScreen(window.window_id, false);
}
},
}; };
}, },
}); });