mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Fix bugs with Clarity boost select box
This commit is contained in:
parent
2db246e081
commit
742fd24b8c
@ -105,6 +105,10 @@ div[class^=HUDButton-module__hiddenContainer] ~ div:not([class^=HUDButton-module
|
||||
font-family: var(--bx-promptfont-font);
|
||||
}
|
||||
|
||||
.bx-line-through {
|
||||
text-decoration: line-through
|
||||
}
|
||||
|
||||
select[multiple] {
|
||||
overflow: auto;
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ export class StreamPlayer {
|
||||
const filters = [];
|
||||
|
||||
const sharpness = this.#options.sharpness || 0;
|
||||
if (sharpness != 0) {
|
||||
if (this.#options.processing === StreamVideoProcessing.USM && sharpness != 0) {
|
||||
const level = (7 - ((sharpness / 2) - 1) * 0.5).toFixed(1); // 5, 5.5, 6, 6.5, 7
|
||||
const matrix = `0 -1 0 -1 ${level} -1 0 -1 0`;
|
||||
this.#$usmMatrix?.setAttributeNS(null, 'kernelMatrix', matrix);
|
||||
|
@ -689,5 +689,8 @@ export class StreamSettings {
|
||||
|
||||
document.documentElement.appendChild($overlay);
|
||||
document.documentElement.appendChild($container);
|
||||
|
||||
// Update video's settings
|
||||
onChangeVideoPlayerType();
|
||||
}
|
||||
}
|
||||
|
@ -82,6 +82,9 @@ export class BxSelectElement {
|
||||
$label.textContent = content;
|
||||
}
|
||||
|
||||
// Add line-through on disabled option
|
||||
$label.classList.toggle('bx-line-through', $option && $option.disabled);
|
||||
|
||||
// Hide checkbox when the selection is empty
|
||||
if (isMultiple) {
|
||||
$checkBox.checked = $option?.selected || false;
|
||||
@ -123,13 +126,16 @@ export class BxSelectElement {
|
||||
|
||||
const observer = new MutationObserver((mutationList, observer) => {
|
||||
mutationList.forEach(mutation => {
|
||||
mutation.type === 'childList' && render();
|
||||
if (mutation.type === 'childList' || mutation.type === 'attributes') {
|
||||
render();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
observer.observe($select, {
|
||||
subtree: true,
|
||||
childList: true,
|
||||
attributes: true,
|
||||
});
|
||||
|
||||
render();
|
||||
|
Loading…
x
Reference in New Issue
Block a user