增加显示融合网格选项

This commit is contained in:
ljqing 2023-01-18 18:00:17 +08:00
parent ee96b91aef
commit 1862b885b3
3 changed files with 21 additions and 10 deletions

View File

@ -78,6 +78,9 @@
<span>{{ $t("disable blending params") }}</span>
<q-checkbox style="justify-content: flex-start"
v-model="disable_blending_params" @click="send_disable_blending_params" />
<span>{{ $t("show blending grids") }}</span>
<q-checkbox style="justify-content: flex-start"
v-model="show_blending_grids" @click="send_show_blending_grids" />
<div class="q-space" data-v-39efcd1f=""></div>
<q-btn color="white" @click="resetall" text-color="black" :label="$t('resetall config')" />
<div class="q-space" data-v-39efcd1f=""></div>
@ -150,6 +153,9 @@
const send_disable_blending_params = () => {
set?.SetBlendingOption(1, disable_blending_params.value ? 1 : 0);
};
const send_show_blending_grids = () => {
set?.SetBlendingOption(1000, show_blending_grids.value ? 1 : 0);
};
const resetall=()=>{
set?.ResetBlendingConfig()
}
@ -159,6 +165,7 @@
optionsstr.value = "FusionLocale";
const hide_desktop_value = ref(true);
const disable_blending_params = ref(false);
const show_blending_grids = ref(false);
const options = computed({
get() {
return optionsstr.value;
@ -240,7 +247,7 @@
set?.GetBlendingConfig("").then((res) => {
let tmp = JSON.parse(res ? res.config : "");
//console.log(tmp.options[0][1])
let local_options = [ [ref(0), hide_desktop_value], [ref(1), disable_blending_params] ];
let local_options = [ [ref(0), hide_desktop_value], [ref(1), disable_blending_params], [ref(1000), show_blending_grids] ];
let k:any;
for(k in local_options) {
let local_opt = local_options[k];
@ -261,6 +268,8 @@
hide_desktop_value,
send_disable_blending_params,
disable_blending_params,
send_show_blending_grids,
show_blending_grids,
clear,
show_dialog,
options,

View File

@ -427,4 +427,5 @@ export default {
"Whether to hide the desktop":"Whether to hide the desktop",
"resetall config":"resetall config",
"disable blending params":"Dsable blending params",
"show blending grids":"show grids",
};

View File

@ -696,4 +696,5 @@ export default {
"Whether to hide the desktop":"是否隐藏桌面",
"resetall config":"重置所有配置",
"disable blending params":"禁用融合参数",
"show blending grids":"显示网格",
};