Set image quality

This commit is contained in:
redphx
2025-01-04 12:33:47 +07:00
parent 3fe6d97133
commit 097164b92e
7 changed files with 87 additions and 0 deletions

View File

@@ -192,6 +192,23 @@ export class GlobalSettingsStorage extends BaseSettingsStorage {
label: t('hide-system-menu-icon'),
default: false,
},
[PrefKey.UI_IMAGE_QUALITY]: {
label: t('image-quality'),
default: 90,
min: 10,
max: 90,
params: {
steps: 10,
exactTicks: 20,
customTextValue(value, min, max) {
if (value === 90) {
return t('default');
}
return value + '%';
},
},
},
[PrefKey.STREAM_COMBINE_SOURCES]: {
requiredVariants: 'full',

View File

@@ -151,6 +151,7 @@ const Texts = {
"how-to-fix": "How to fix",
"how-to-improve-app-performance": "How to improve app's performance",
"ignore": "Ignore",
"image-quality": "Image quality",
"import": "Import",
"in-game-controller-customization": "In-game controller customization",
"in-game-controller-shortcuts": "In-game controller shortcuts",