mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Highlight "Bypass region" row in unsupported regions
This commit is contained in:
parent
bedf82d363
commit
1375fb115d
5
dist/better-xcloud.pretty.user.js
vendored
5
dist/better-xcloud.pretty.user.js
vendored
File diff suppressed because one or more lines are too long
4
dist/better-xcloud.user.js
vendored
4
dist/better-xcloud.user.js
vendored
File diff suppressed because one or more lines are too long
@ -202,6 +202,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.bx-settings-important-row {
|
||||||
|
background: #733b00;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bx-settings-dialog-note {
|
.bx-settings-dialog-note {
|
||||||
|
@ -949,6 +949,11 @@ export class SettingsDialog extends NavigationDialog {
|
|||||||
}
|
}
|
||||||
$row.dataset.type = settingTabContent.group;
|
$row.dataset.type = settingTabContent.group;
|
||||||
|
|
||||||
|
// Highlight "Bypass region" row
|
||||||
|
if (!STATES.supportedRegion && setting.pref === GlobalPref.SERVER_BYPASS_RESTRICTION) {
|
||||||
|
$row.classList.add('bx-settings-important-row');
|
||||||
|
}
|
||||||
|
|
||||||
$tabContent.appendChild($row);
|
$tabContent.appendChild($row);
|
||||||
!prefDefinition?.unsupported && setting.onCreated && setting.onCreated(setting, $control);
|
!prefDefinition?.unsupported && setting.onCreated && setting.onCreated(setting, $control);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user