Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -6,6 +6,7 @@ import AdapterNameSelector from './audiovideo/AdapterNameSelector.vue'
|
||||
import DisplayOutputSelector from './audiovideo/DisplayOutputSelector.vue'
|
||||
import DisplayDeviceOptions from "./audiovideo/DisplayDeviceOptions.vue";
|
||||
import DisplayModesSettings from "./audiovideo/DisplayModesSettings.vue";
|
||||
import Checkbox from "../../Checkbox.vue";
|
||||
|
||||
const $t = inject('i18n').t;
|
||||
|
||||
@@ -76,11 +77,12 @@ const validateFallbackMode = (event) => {
|
||||
<div class="form-text pre-wrap">{{ $t('config.virtual_sink_desc') }}</div>
|
||||
</div>
|
||||
<!-- Install Steam Audio Drivers -->
|
||||
<div class="mb-3 form-check">
|
||||
<input type="checkbox" class="form-check-input" id="install_steam_audio_drivers" v-model="config.install_steam_audio_drivers" true-value="enabled" false-value="disabled"/>
|
||||
<label for="install_steam_audio_drivers" class="form-check-label">{{ $t('config.install_steam_audio_drivers') }}</label>
|
||||
<div class="form-text pre-wrap">{{ $t('config.install_steam_audio_drivers_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="install_steam_audio_drivers"
|
||||
locale-prefix="config"
|
||||
v-model="config.install_steam_audio_drivers"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<div class="mb-3 form-check">
|
||||
<input type="checkbox" class="form-check-input" id="keep_sink_default" v-model="config.keep_sink_default" true-value="enabled" false-value="disabled"/>
|
||||
@@ -107,11 +109,15 @@ const validateFallbackMode = (event) => {
|
||||
:config="config"
|
||||
/>
|
||||
|
||||
<DisplayDeviceOptions
|
||||
:platform="platform"
|
||||
:config="config"
|
||||
/>
|
||||
|
||||
<!-- Display Modes -->
|
||||
<DisplayModesSettings
|
||||
:platform="platform"
|
||||
:config="config"
|
||||
:min_fps_factor="min_fps_factor"
|
||||
/>
|
||||
|
||||
<!-- Fallback Display Mode -->
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import Checkbox from '../../Checkbox.vue'
|
||||
|
||||
const props = defineProps({
|
||||
platform: String,
|
||||
@@ -49,6 +50,7 @@ onMounted(() => {
|
||||
<div class="mb-3">
|
||||
<label for="locale" class="form-label">{{ $t('config.locale') }}</label>
|
||||
<select id="locale" class="form-select" v-model="config.locale">
|
||||
<option value="bg">Български (Bulgarian)</option>
|
||||
<option value="de">Deutsch (German)</option>
|
||||
<option value="en">English</option>
|
||||
<option value="en_GB">English, UK</option>
|
||||
@@ -57,10 +59,14 @@ onMounted(() => {
|
||||
<option value="fr">Français (French)</option>
|
||||
<option value="it">Italiano (Italian)</option>
|
||||
<option value="ja">日本語 (Japanese)</option>
|
||||
<option value="ko">한국어 (Korean)</option>
|
||||
<option value="pl">Polski (Polish)</option>
|
||||
<option value="pt">Português (Portuguese)</option>
|
||||
<option value="pt_BR">Português, Brasileiro (Portuguese, Brazilian)</option>
|
||||
<option value="ru">Русский (Russian)</option>
|
||||
<option value="sv">svenska (Swedish)</option>
|
||||
<option value="tr">Türkçe (Turkish)</option>
|
||||
<option value="uk">Українська (Ukranian)</option>
|
||||
<option value="zh">简体中文 (Chinese Simplified)</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.locale_desc') }}</div>
|
||||
@@ -93,7 +99,7 @@ onMounted(() => {
|
||||
<div id="global_prep_cmd" class="mb-3 d-flex flex-column">
|
||||
<label class="form-label">{{ $t('config.global_prep_cmd') }}</label>
|
||||
<div class="form-text">{{ $t('config.global_prep_cmd_desc') }}</div>
|
||||
<table class="table" v-if="globalPrepCmd.length > 0">
|
||||
<table class="table" v-if="config.global_prep_cmd.length > 0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><i class="fas fa-play"></i> {{ $t('_common.do_cmd') }}</th>
|
||||
@@ -105,19 +111,19 @@ onMounted(() => {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(c, i) in globalPrepCmd">
|
||||
<tr v-for="(c, i) in config.global_prep_cmd">
|
||||
<td>
|
||||
<input type="text" class="form-control monospace" v-model="c.do" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="form-control monospace" v-model="c.undo" />
|
||||
</td>
|
||||
<td v-if="platform === 'windows'">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" :id="'prep-cmd-admin-' + i" v-model="c.elevated"
|
||||
true-value="true" false-value="false" />
|
||||
<label :for="'prep-cmd-admin-' + i" class="form-check-label">{{ $t('_common.elevated') }}</label>
|
||||
</div>
|
||||
<td v-if="platform === 'windows'" class="align-middle">
|
||||
<Checkbox :id="'prep-cmd-admin-' + i"
|
||||
label="_common.elevated"
|
||||
desc=""
|
||||
v-model="c.elevated"
|
||||
></Checkbox>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-danger me-2" @click="removeCmd(globalPrepCmd, i)">
|
||||
@@ -199,11 +205,12 @@ onMounted(() => {
|
||||
</div>
|
||||
|
||||
<!-- Notify Pre-Releases -->
|
||||
<div class="mb-3 form-check">
|
||||
<input type="checkbox" class="form-check-input" id="notify_pre_releases" v-model="config.notify_pre_releases" true-value="enabled" false-value="disabled"/>
|
||||
<label for="notify_pre_releases" class="form-check-label">{{ $t('config.notify_pre_releases') }}</label>
|
||||
<div class="form-text">{{ $t('config.notify_pre_releases_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="notify_pre_releases"
|
||||
locale-prefix="config"
|
||||
v-model="config.notify_pre_releases"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import PlatformLayout from '../../PlatformLayout.vue'
|
||||
import Checkbox from "../../Checkbox.vue";
|
||||
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
@@ -13,14 +14,12 @@ const config = ref(props.config)
|
||||
<template>
|
||||
<div id="input" class="config-page">
|
||||
<!-- Enable Gamepad Input -->
|
||||
<div class="mb-3">
|
||||
<label for="controller" class="form-label">{{ $t('config.controller') }}</label>
|
||||
<select id="controller" class="form-select" v-model="config.controller">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.controller_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="controller"
|
||||
locale-prefix="config"
|
||||
v-model="config.controller"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Emulated Gamepad Type -->
|
||||
<div class="mb-3" v-if="config.controller === 'enabled' && platform !== 'macos'">
|
||||
@@ -44,63 +43,53 @@ const config = ref(props.config)
|
||||
<div class="form-text">{{ $t('config.gamepad_desc') }}</div>
|
||||
</div>
|
||||
|
||||
<div class="accordion" v-if="config.gamepad === 'ds4'">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#panelsStayOpen-collapseOne">
|
||||
{{ $t('config.gamepad_ds4_manual') }}
|
||||
</button>
|
||||
</h2>
|
||||
<div id="panelsStayOpen-collapseOne" class="accordion-collapse collapse show"
|
||||
aria-labelledby="panelsStayOpen-headingOne">
|
||||
<div class="accordion-body">
|
||||
<div>
|
||||
<label for="ds4_back_as_touchpad_click" class="form-label">{{ $t('config.ds4_back_as_touchpad_click') }}</label>
|
||||
<select id="ds4_back_as_touchpad_click" class="form-select"
|
||||
v-model="config.ds4_back_as_touchpad_click">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.ds4_back_as_touchpad_click_desc') }}</div>
|
||||
<!-- Additional options based on gamepad type -->
|
||||
<template v-if="config.controller === 'enabled'">
|
||||
<template v-if="config.gamepad === 'ds4' || (config.gamepad === 'auto' && platform === 'windows')">
|
||||
<div class="mb-3 accordion">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#panelsStayOpen-collapseOne">
|
||||
{{ $t(config.gamepad === 'ds4' ? 'config.gamepad_ds4_manual' : 'config.gamepad_auto') }}
|
||||
</button>
|
||||
</h2>
|
||||
<div id="panelsStayOpen-collapseOne" class="accordion-collapse collapse show"
|
||||
aria-labelledby="panelsStayOpen-headingOne">
|
||||
<div class="accordion-body">
|
||||
<!-- Auto options (Windows only) -->
|
||||
<template v-if="config.gamepad === 'auto'">
|
||||
<!-- DS4 motion -->
|
||||
<Checkbox class="mb-3"
|
||||
id="motion_as_ds4"
|
||||
locale-prefix="config"
|
||||
v-model="config.motion_as_ds4"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
<!-- DS4 touchpad -->
|
||||
<Checkbox class="mb-3"
|
||||
id="touchpad_as_ds4"
|
||||
locale-prefix="config"
|
||||
v-model="config.touchpad_as_ds4"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
</template>
|
||||
<!-- DS4 options (all platforms) -->
|
||||
<template v-if="config.gamepad === 'ds4'">
|
||||
<!-- DS4 back button as touchpad click -->
|
||||
<Checkbox class="mb-3"
|
||||
id="ds4_back_as_touchpad_click"
|
||||
locale-prefix="config"
|
||||
v-model="config.ds4_back_as_touchpad_click"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion" v-if="config.controller === 'enabled' && config.gamepad === 'auto' && platform === 'windows'">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#panelsStayOpen-collapseOne">
|
||||
{{ $t('config.gamepad_auto') }}
|
||||
</button>
|
||||
</h2>
|
||||
<div id="panelsStayOpen-collapseOne" class="accordion-collapse collapse show"
|
||||
aria-labelledby="panelsStayOpen-headingOne">
|
||||
<div class="accordion-body">
|
||||
<div>
|
||||
<label for="motion_as_ds4" class="form-label">{{ $t('config.motion_as_ds4') }}</label>
|
||||
<select id="motion_as_ds4" class="form-select"
|
||||
v-model="config.motion_as_ds4">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.motion_as_ds4_desc') }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="touchpad_as_ds4" class="form-label">{{ $t('config.touchpad_as_ds4') }}</label>
|
||||
<select id="touchpad_as_ds4" class="form-select"
|
||||
v-model="config.touchpad_as_ds4">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.touchpad_as_ds4_desc') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<!-- Home/Guide Button Emulation Timeout -->
|
||||
<div class="mb-3" v-if="config.controller === 'enabled'">
|
||||
@@ -112,14 +101,12 @@ const config = ref(props.config)
|
||||
|
||||
<!-- Enable Keyboard Input -->
|
||||
<hr>
|
||||
<div class="mb-3">
|
||||
<label for="keyboard" class="form-label">{{ $t('config.keyboard') }}</label>
|
||||
<select id="keyboard" class="form-select" v-model="config.keyboard">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.keyboard_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="keyboard"
|
||||
locale-prefix="config"
|
||||
v-model="config.keyboard"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Key Repeat Delay-->
|
||||
<div class="mb-3" v-if="config.keyboard === 'enabled' && platform === 'windows'">
|
||||
@@ -138,56 +125,49 @@ const config = ref(props.config)
|
||||
</div>
|
||||
|
||||
<!-- Always send scancodes -->
|
||||
<div class="mb-3" v-if="config.keyboard === 'enabled' && platform === 'windows'">
|
||||
<label for="always_send_scancodes" class="form-label">{{ $t('config.always_send_scancodes') }}</label>
|
||||
<select id="always_send_scancodes" class="form-select" v-model="config.always_send_scancodes">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.always_send_scancodes_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox v-if="config.keyboard === 'enabled' && platform === 'windows'"
|
||||
class="mb-3"
|
||||
id="always_send_scancodes"
|
||||
locale-prefix="config"
|
||||
v-model="config.always_send_scancodes"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Mapping Key AltRight to Key Windows -->
|
||||
<div class="mb-3" v-if="config.keyboard === 'enabled'">
|
||||
<label for="key_rightalt_to_key_win" class="form-label">{{ $t('config.key_rightalt_to_key_windows') }}</label>
|
||||
<select id="key_rightalt_to_key_win" class="form-select" v-model="config.key_rightalt_to_key_win">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.key_rightalt_to_key_win_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox v-if="config.keyboard === 'enabled'"
|
||||
class="mb-3"
|
||||
id="key_rightalt_to_key_win"
|
||||
locale-prefix="config"
|
||||
v-model="config.key_rightalt_to_key_win"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Enable Mouse Input -->
|
||||
<hr>
|
||||
<div class="mb-3">
|
||||
<label for="mouse" class="form-label">{{ $t('config.mouse') }}</label>
|
||||
<select id="mouse" class="form-select" v-model="config.mouse">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.mouse_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="mouse"
|
||||
locale-prefix="config"
|
||||
v-model="config.mouse"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- High resolution scrolling support -->
|
||||
<div class="mb-3" v-if="config.mouse === 'enabled'">
|
||||
<label for="high_resolution_scrolling" class="form-label">{{ $t('config.high_resolution_scrolling') }}</label>
|
||||
<select id="high_resolution_scrolling" class="form-select" v-model="config.high_resolution_scrolling">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.high_resolution_scrolling_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox v-if="config.mouse === 'enabled'"
|
||||
class="mb-3"
|
||||
id="high_resolution_scrolling"
|
||||
locale-prefix="config"
|
||||
v-model="config.high_resolution_scrolling"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Native pen/touch support -->
|
||||
<div class="mb-3" v-if="config.mouse === 'enabled'">
|
||||
<label for="native_pen_touch" class="form-label">{{ $t('config.native_pen_touch') }}</label>
|
||||
<select id="native_pen_touch" class="form-select" v-model="config.native_pen_touch">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.native_pen_touch_desc') }}</div>
|
||||
</div>
|
||||
|
||||
<Checkbox v-if="config.mouse === 'enabled'"
|
||||
class="mb-3"
|
||||
id="native_pen_touch"
|
||||
locale-prefix="config"
|
||||
v-model="config.native_pen_touch"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { computed, ref } from 'vue'
|
||||
import Checkbox from "../../Checkbox.vue";
|
||||
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
@@ -15,14 +16,12 @@ const effectivePort = computed(() => +config.value?.port ?? defaultMoonlightPort
|
||||
<template>
|
||||
<div id="network" class="config-page">
|
||||
<!-- UPnP -->
|
||||
<div class="mb-3">
|
||||
<label for="upnp" class="form-label">{{ $t('config.upnp') }}</label>
|
||||
<select id="upnp" class="form-select" v-model="config.upnp">
|
||||
<option value="disabled">{{ $t('_common.disabled_def') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.upnp_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="upnp"
|
||||
locale-prefix="config"
|
||||
v-model="config.upnp"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Address family -->
|
||||
<div class="mb-3">
|
||||
|
||||
@@ -1,45 +1,233 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { $tp } from '../../../platform-i18n'
|
||||
import PlatformLayout from '../../../PlatformLayout.vue'
|
||||
import Checkbox from "../../../Checkbox.vue";
|
||||
|
||||
const props = defineProps({
|
||||
platform: String,
|
||||
config: Object,
|
||||
display_mode_remapping: Array
|
||||
config: Object
|
||||
})
|
||||
|
||||
const config = ref(props.config)
|
||||
const display_mode_remapping = ref(props.display_mode_remapping)
|
||||
|
||||
// TODO: Sample for use in PR #2032
|
||||
function getRemappingType()
|
||||
{
|
||||
// Assuming here that at least one setting is set to "automatic"
|
||||
if (config.value.resolution_change !== 'automatic') {
|
||||
return "refresh_rate_only";
|
||||
}
|
||||
if (config.value.refresh_rate_change !== 'automatic') {
|
||||
return "resolution_only";
|
||||
}
|
||||
return "";
|
||||
const REFRESH_RATE_ONLY = "refresh_rate_only"
|
||||
const RESOLUTION_ONLY = "resolution_only"
|
||||
const MIXED = "mixed"
|
||||
|
||||
function canBeRemapped() {
|
||||
return (config.value.dd_resolution_option === "auto" || config.value.dd_refresh_rate_option === "auto")
|
||||
&& config.value.dd_configuration_option !== "disabled";
|
||||
}
|
||||
|
||||
function addRemapping(type) {
|
||||
let template = {
|
||||
type: type,
|
||||
received_resolution: "",
|
||||
received_fps: "",
|
||||
final_resolution: "",
|
||||
final_refresh_rate: "",
|
||||
};
|
||||
function getRemappingType() {
|
||||
// Assuming here that at least one setting is set to "auto" if other is not
|
||||
if (config.value.dd_resolution_option !== "auto") {
|
||||
return REFRESH_RATE_ONLY;
|
||||
}
|
||||
if (config.value.dd_refresh_rate_option !== "auto") {
|
||||
return RESOLUTION_ONLY;
|
||||
}
|
||||
return MIXED;
|
||||
}
|
||||
|
||||
display_mode_remapping.value.push(template);
|
||||
function addRemappingEntry() {
|
||||
const type = getRemappingType();
|
||||
let template = {};
|
||||
|
||||
if (type !== RESOLUTION_ONLY) {
|
||||
template["requested_fps"] = "";
|
||||
template["final_refresh_rate"] = "";
|
||||
}
|
||||
|
||||
if (type !== REFRESH_RATE_ONLY) {
|
||||
template["requested_resolution"] = "";
|
||||
template["final_resolution"] = "";
|
||||
}
|
||||
|
||||
config.value.dd_mode_remapping[type].push(template);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="mb-3">
|
||||
<!-- TODO: Implement on PR #2032 -->
|
||||
</div>
|
||||
<PlatformLayout :platform="platform">
|
||||
<template #windows>
|
||||
<div class="mb-3 accordion">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#panelsStayOpen-collapseOne">
|
||||
{{ $t('config.dd_options_header') }}
|
||||
</button>
|
||||
</h2>
|
||||
<div id="panelsStayOpen-collapseOne" class="accordion-collapse collapse show"
|
||||
aria-labelledby="panelsStayOpen-headingOne">
|
||||
<div class="accordion-body">
|
||||
|
||||
<!-- Configuration option -->
|
||||
<div class="mb-3">
|
||||
<label for="dd_configuration_option" class="form-label">
|
||||
{{ $t('config.dd_config_label') }}
|
||||
</label>
|
||||
<select id="dd_configuration_option" class="form-select" v-model="config.dd_configuration_option">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="verify_only">{{ $t('config.dd_config_verify_only') }}</option>
|
||||
<option value="ensure_active">{{ $t('config.dd_config_ensure_active') }}</option>
|
||||
<option value="ensure_primary">{{ $t('config.dd_config_ensure_primary') }}</option>
|
||||
<option value="ensure_only_display">{{ $t('config.dd_config_ensure_only_display') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Resolution option -->
|
||||
<div class="mb-3" v-if="config.dd_configuration_option !== 'disabled'">
|
||||
<label for="dd_resolution_option" class="form-label">
|
||||
{{ $t('config.dd_resolution_option') }}
|
||||
</label>
|
||||
<select id="dd_resolution_option" class="form-select" v-model="config.dd_resolution_option">
|
||||
<option value="disabled">{{ $t('config.dd_resolution_option_disabled') }}</option>
|
||||
<option value="auto">{{ $t('config.dd_resolution_option_auto') }}</option>
|
||||
<option value="manual">{{ $t('config.dd_resolution_option_manual') }}</option>
|
||||
</select>
|
||||
<div class="form-text"
|
||||
v-if="config.dd_resolution_option === 'auto' || config.dd_resolution_option === 'manual'">
|
||||
{{ $t('config.dd_resolution_option_ogs_desc') }}
|
||||
</div>
|
||||
|
||||
<!-- Manual resolution -->
|
||||
<div class="mt-2 ps-4" v-if="config.dd_resolution_option === 'manual'">
|
||||
<div class="form-text">
|
||||
{{ $t('config.dd_resolution_option_manual_desc') }}
|
||||
</div>
|
||||
<input type="text" class="form-control" id="dd_manual_resolution" placeholder="2560x1440"
|
||||
v-model="config.dd_manual_resolution" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Refresh rate option -->
|
||||
<div class="mb-3" v-if="config.dd_configuration_option !== 'disabled'">
|
||||
<label for="dd_refresh_rate_option" class="form-label">
|
||||
{{ $t('config.dd_refresh_rate_option') }}
|
||||
</label>
|
||||
<select id="dd_refresh_rate_option" class="form-select" v-model="config.dd_refresh_rate_option">
|
||||
<option value="disabled">{{ $t('config.dd_refresh_rate_option_disabled') }}</option>
|
||||
<option value="auto">{{ $t('config.dd_refresh_rate_option_auto') }}</option>
|
||||
<option value="manual">{{ $t('config.dd_refresh_rate_option_manual') }}</option>
|
||||
</select>
|
||||
|
||||
<!-- Manual refresh rate -->
|
||||
<div class="mt-2 ps-4" v-if="config.dd_refresh_rate_option === 'manual'">
|
||||
<div class="form-text">
|
||||
{{ $t('config.dd_refresh_rate_option_manual_desc') }}
|
||||
</div>
|
||||
<input type="text" class="form-control" id="dd_manual_refresh_rate" placeholder="59.9558"
|
||||
v-model="config.dd_manual_refresh_rate" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- HDR option -->
|
||||
<div class="mb-3" v-if="config.dd_configuration_option !== 'disabled'">
|
||||
<label for="dd_hdr_option" class="form-label">
|
||||
{{ $t('config.dd_hdr_option') }}
|
||||
</label>
|
||||
<select id="dd_hdr_option" class="mb-3 form-select" v-model="config.dd_hdr_option">
|
||||
<option value="disabled">{{ $t('config.dd_hdr_option_disabled') }}</option>
|
||||
<option value="auto">{{ $t('config.dd_hdr_option_auto') }}</option>
|
||||
</select>
|
||||
<!-- HDR toggle -->
|
||||
<Checkbox id="dd_wa_hdr_toggle"
|
||||
locale-prefix="config"
|
||||
v-model="config.dd_wa_hdr_toggle"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
</div>
|
||||
|
||||
<!-- Config revert delay -->
|
||||
<div class="mb-3" v-if="config.dd_configuration_option !== 'disabled'">
|
||||
<label for="dd_config_revert_delay" class="form-label">
|
||||
{{ $t('config.dd_config_revert_delay') }}
|
||||
</label>
|
||||
<input type="number" class="form-control" id="dd_config_revert_delay" placeholder="3000" min="0"
|
||||
v-model="config.dd_config_revert_delay" />
|
||||
<div class="form-text">
|
||||
{{ $t('config.dd_config_revert_delay_desc') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Display mode remapping -->
|
||||
<div class="mb-3" v-if="canBeRemapped()">
|
||||
<label for="dd_mode_remapping" class="form-label">
|
||||
{{ $t('config.dd_mode_remapping') }}
|
||||
</label>
|
||||
<div id="dd_mode_remapping" class="d-flex flex-column">
|
||||
<div class="form-text">
|
||||
{{ $t('config.dd_mode_remapping_desc_1') }}<br>
|
||||
{{ $t('config.dd_mode_remapping_desc_2') }}<br>
|
||||
{{ $t('config.dd_mode_remapping_desc_3') }}<br>
|
||||
{{ $t(getRemappingType() === MIXED ? 'config.dd_mode_remapping_desc_4_final_values_mixed' : 'config.dd_mode_remapping_desc_4_final_values_non_mixed') }}<br>
|
||||
<template v-if="getRemappingType() === MIXED">
|
||||
{{ $t('config.dd_mode_remapping_desc_5_sops_mixed_only') }}<br>
|
||||
</template>
|
||||
<template v-if="getRemappingType() === RESOLUTION_ONLY">
|
||||
{{ $t('config.dd_mode_remapping_desc_5_sops_resolution_only') }}<br>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table" v-if="config.dd_mode_remapping[getRemappingType()].length > 0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" v-if="getRemappingType() !== REFRESH_RATE_ONLY">
|
||||
{{ $t('config.dd_mode_remapping_requested_resolution') }}
|
||||
</th>
|
||||
<th scope="col" v-if="getRemappingType() !== RESOLUTION_ONLY">
|
||||
{{ $t('config.dd_mode_remapping_requested_fps') }}
|
||||
</th>
|
||||
<th scope="col" v-if="getRemappingType() !== REFRESH_RATE_ONLY">
|
||||
{{ $t('config.dd_mode_remapping_final_resolution') }}
|
||||
</th>
|
||||
<th scope="col" v-if="getRemappingType() !== RESOLUTION_ONLY">
|
||||
{{ $t('config.dd_mode_remapping_final_refresh_rate') }}
|
||||
</th>
|
||||
<!-- Additional columns for buttons-->
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(value, idx) in config.dd_mode_remapping[getRemappingType()]">
|
||||
<td v-if="getRemappingType() !== REFRESH_RATE_ONLY">
|
||||
<input type="text" class="form-control monospace" v-model="value.requested_resolution"
|
||||
:placeholder="'1920x1080'" />
|
||||
</td>
|
||||
<td v-if="getRemappingType() !== RESOLUTION_ONLY">
|
||||
<input type="text" class="form-control monospace" v-model="value.requested_fps"
|
||||
:placeholder="'60'" />
|
||||
</td>
|
||||
<td v-if="getRemappingType() !== REFRESH_RATE_ONLY">
|
||||
<input type="text" class="form-control monospace" v-model="value.final_resolution"
|
||||
:placeholder="'2560x1440'" />
|
||||
</td>
|
||||
<td v-if="getRemappingType() !== RESOLUTION_ONLY">
|
||||
<input type="text" class="form-control monospace" v-model="value.final_refresh_rate"
|
||||
:placeholder="'119.95'" />
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-danger" @click="config.dd_mode_remapping[getRemappingType()].splice(idx, 1)">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<button class="ms-0 mt-2 btn btn-success" style="margin: 0 auto" @click="addRemappingEntry()">
|
||||
+ {{ $t('config.dd_mode_remapping_add') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template #linux>
|
||||
</template>
|
||||
<template #macos>
|
||||
</template>
|
||||
</PlatformLayout>
|
||||
</template>
|
||||
|
||||
@@ -6,23 +6,23 @@ import PlatformLayout from '../../../PlatformLayout.vue'
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
'config',
|
||||
'vdisplay',
|
||||
'min_fps_factor',
|
||||
])
|
||||
|
||||
const config = ref(props.config)
|
||||
|
||||
const resIn = ref("")
|
||||
const fpsIn = ref("")
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!--min_fps_factor-->
|
||||
<div class="mb-3">
|
||||
<!--min_fps_factor-->
|
||||
<div class="mb-3">
|
||||
<label for="qp" class="form-label">{{ $t('config.min_fps_factor') }}</label>
|
||||
<input type="number" min="1" max="3" class="form-control" id="min_fps_factor" placeholder="1" v-model="config.min_fps_factor" />
|
||||
<div class="form-text">{{ $t('config.min_fps_factor_desc') }}</div>
|
||||
</div>
|
||||
<label for="qp" class="form-label">{{ $t('config.min_fps_factor') }}</label>
|
||||
<input type="number" min="1" max="3" class="form-control" id="min_fps_factor" placeholder="1" v-model="config.min_fps_factor" />
|
||||
<div class="form-text">{{ $t('config.min_fps_factor_desc') }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.ms-item {
|
||||
background-color: var(--bs-dark-bg-subtle);
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import Checkbox from "../../../Checkbox.vue";
|
||||
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
@@ -25,7 +26,7 @@ const config = ref(props.config)
|
||||
</div>
|
||||
|
||||
<!-- AMD Rate Control group options -->
|
||||
<div class="accordion">
|
||||
<div class="mb-3 accordion">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse"
|
||||
@@ -49,21 +50,19 @@ const config = ref(props.config)
|
||||
</div>
|
||||
|
||||
<!-- AMF HRD Enforcement -->
|
||||
<div class="mb-3">
|
||||
<label for="amd_enforce_hrd" class="form-label">{{ $t('config.amd_enforce_hrd') }}</label>
|
||||
<select id="amd_enforce_hrd" class="form-select" v-model="config.amd_enforce_hrd">
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
<option value="disabled">{{ $t('_common.disabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.amd_enforce_hrd_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="amd_enforce_hrd"
|
||||
locale-prefix="config"
|
||||
v-model="config.amd_enforce_hrd"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- AMF Quality group options -->
|
||||
<div class="accordion">
|
||||
<div class="mb-3 accordion">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse"
|
||||
@@ -86,24 +85,20 @@ const config = ref(props.config)
|
||||
</div>
|
||||
|
||||
<!-- AMD Preanalysis -->
|
||||
<div class="mb-3">
|
||||
<label for="amd_preanalysis" class="form-label">{{ $t('config.amd_preanalysis') }}</label>
|
||||
<select id="amd_preanalysis" class="form-select" v-model="config.amd_preanalysis">
|
||||
<option value="disabled">{{ $t('_common.disabled_def') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.amd_preanalysis_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="amd_preanalysis"
|
||||
locale-prefix="config"
|
||||
v-model="config.amd_preanalysis"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
|
||||
<!-- AMD VBAQ -->
|
||||
<div class="mb-3">
|
||||
<label for="amd_vbaq" class="form-label">{{ $t('config.amd_vbaq') }}</label>
|
||||
<select id="amd_vbaq" class="form-select" v-model="config.amd_vbaq">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.amd_vbaq_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="amd_vbaq"
|
||||
locale-prefix="config"
|
||||
v-model="config.amd_vbaq"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- AMF Coder (H264) -->
|
||||
<div class="mb-3">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import Checkbox from "../../../Checkbox.vue";
|
||||
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
@@ -36,15 +37,12 @@ const config = ref(props.config)
|
||||
</div>
|
||||
|
||||
<!-- Allow Slow HEVC Encoding -->
|
||||
<div class="mb-3">
|
||||
<label for="qsv_slow_hevc" class="form-label">{{ $t('config.qsv_slow_hevc') }}</label>
|
||||
<select id="qsv_slow_hevc" class="form-select" v-model="config.qsv_slow_hevc">
|
||||
<option value="disabled">{{ $t('_common.disabled_def') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.qsv_slow_hevc_desc') }}</div>
|
||||
</div>
|
||||
|
||||
<Checkbox class="mb-3"
|
||||
id="qsv_slow_hevc"
|
||||
locale-prefix="config"
|
||||
v-model="config.qsv_slow_hevc"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import Checkbox from "../../../Checkbox.vue";
|
||||
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
@@ -60,7 +61,7 @@ const config = ref(props.config)
|
||||
</div>
|
||||
|
||||
<!-- Miscellaneous options -->
|
||||
<div class="accordion">
|
||||
<div class="mb-3 accordion">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse"
|
||||
@@ -72,48 +73,43 @@ const config = ref(props.config)
|
||||
aria-labelledby="panelsStayOpen-headingOne">
|
||||
<div class="accordion-body">
|
||||
<!-- NVENC Realtime HAGS priority -->
|
||||
<div class="mb-3" v-if="platform === 'windows'">
|
||||
<label for="nvenc_realtime_hags" class="form-label">{{ $t('config.nvenc_realtime_hags') }}</label>
|
||||
<select id="nvenc_realtime_hags" class="form-select" v-model="config.nvenc_realtime_hags">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">
|
||||
{{ $t('config.nvenc_realtime_hags_desc') }}<br>
|
||||
<br>
|
||||
<a href="https://devblogs.microsoft.com/directx/hardware-accelerated-gpu-scheduling/">HAGS</a>
|
||||
</div>
|
||||
</div>
|
||||
<Checkbox v-if="platform === 'windows'"
|
||||
class="mb-3"
|
||||
id="nvenc_realtime_hags"
|
||||
locale-prefix="config"
|
||||
v-model="config.nvenc_realtime_hags"
|
||||
default="true"
|
||||
>
|
||||
<br>
|
||||
<br>
|
||||
<a href="https://devblogs.microsoft.com/directx/hardware-accelerated-gpu-scheduling/">HAGS</a>
|
||||
</Checkbox>
|
||||
|
||||
<!-- Prefer lower encoding latency over power savings -->
|
||||
<div class="mb-3" v-if="platform === 'windows'">
|
||||
<label for="nvenc_latency_over_power" class="form-label">{{ $t('config.nvenc_latency_over_power') }}</label>
|
||||
<select id="nvenc_latency_over_power" class="form-select" v-model="config.nvenc_latency_over_power">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.nvenc_latency_over_power_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox v-if="platform === 'windows'"
|
||||
class="mb-3"
|
||||
id="nvenc_latency_over_power"
|
||||
locale-prefix="config"
|
||||
v-model="config.nvenc_latency_over_power"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- Present OpenGL/Vulkan on top of DXGI -->
|
||||
<div class="mb-3" v-if="platform === 'windows'">
|
||||
<label for="nvenc_opengl_vulkan_on_dxgi" class="form-label">{{ $t('config.nvenc_opengl_vulkan_on_dxgi') }}</label>
|
||||
<select id="nvenc_opengl_vulkan_on_dxgi" class="form-select" v-model="config.nvenc_opengl_vulkan_on_dxgi">
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.nvenc_opengl_vulkan_on_dxgi_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox v-if="platform === 'windows'"
|
||||
class="mb-3"
|
||||
id="nvenc_opengl_vulkan_on_dxgi"
|
||||
locale-prefix="config"
|
||||
v-model="config.nvenc_opengl_vulkan_on_dxgi"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
|
||||
<!-- NVENC H264 CAVLC -->
|
||||
<div>
|
||||
<label for="nvenc_h264_cavlc" class="form-label">{{ $t('config.nvenc_h264_cavlc') }}</label>
|
||||
<select id="nvenc_h264_cavlc" class="form-select" v-model="config.nvenc_h264_cavlc">
|
||||
<option value="disabled">{{ $t('_common.disabled_def') }}</option>
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.nvenc_h264_cavlc_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="nvenc_h264_cavlc"
|
||||
locale-prefix="config"
|
||||
v-model="config.nvenc_h264_cavlc"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
|
||||
<!-- NVENC Intra Refresh -->
|
||||
<div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import Checkbox from "../../../Checkbox.vue";
|
||||
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
@@ -12,14 +13,12 @@ const config = ref(props.config)
|
||||
<template>
|
||||
<div id="vaapi-encoder" class="config-page">
|
||||
<!-- Strict RC Buffer -->
|
||||
<div class="mb-3">
|
||||
<label for="vaapi_strict_rc_buffer" class="form-label">{{ $t('config.vaapi_strict_rc_buffer') }}</label>
|
||||
<select id="vaapi_strict_rc_buffer" class="form-select" v-model="config.vaapi_strict_rc_buffer">
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
<option value="disabled">{{ $t('_common.disabled_def') }}</option>
|
||||
</select>
|
||||
<div class="form-text">{{ $t('config.vaapi_strict_rc_buffer_desc') }}</div>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="vaapi_strict_rc_buffer"
|
||||
locale-prefix="config"
|
||||
v-model="config.vaapi_strict_rc_buffer"
|
||||
default="false"
|
||||
></Checkbox>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import Checkbox from "../../../Checkbox.vue";
|
||||
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
@@ -29,13 +30,13 @@ const config = ref(props.config)
|
||||
<option value="forced">{{ $t('config.vt_software_forced') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="vt_realtime" class="form-label">{{ $t('config.vt_realtime') }}</label>
|
||||
<select id="vt_realtime" class="form-select" v-model="config.vt_realtime">
|
||||
<option value="enabled">{{ $t('_common.enabled') }}</option>
|
||||
<option value="disabled">{{ $t('_common.disabled') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<Checkbox class="mb-3"
|
||||
id="vt_realtime"
|
||||
desc=""
|
||||
locale-prefix="config"
|
||||
v-model="config.vt_realtime"
|
||||
default="true"
|
||||
></Checkbox>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user