Minor update

This commit is contained in:
redphx 2024-07-08 17:45:38 +07:00
parent 10d0dedc0a
commit 962f4dec6d
4 changed files with 16 additions and 7 deletions

View File

@ -48,11 +48,17 @@
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
display: block; display: block;
color: #5dc21e;
flex: 1; flex: 1;
text-transform: none;
span {
color: #5dc21e !important;
}
&:focus { &:focus {
color: #83f73a; span {
color: #83f73a !important;
}
} }
} }

View File

@ -132,11 +132,12 @@ export function setupSettingsUi() {
const $wrapper = CE('div', {'class': 'bx-settings-wrapper'}, const $wrapper = CE('div', {'class': 'bx-settings-wrapper'},
CE('div', {'class': 'bx-settings-title-wrapper'}, CE('div', {'class': 'bx-settings-title-wrapper'},
CE('a', { createButton({
'class': 'bx-settings-title', classes: ['bx-settings-title'],
'href': 'https://github.com/redphx/better-xcloud/releases', style: ButtonStyle.FOCUSABLE | ButtonStyle.GHOST,
'target': '_blank', label: 'Better xCloud ' + SCRIPT_VERSION,
}, 'Better xCloud ' + SCRIPT_VERSION), url: 'https://github.com/redphx/better-xcloud/releases',
}),
createButton({ createButton({
icon: BxIcon.QUESTION, icon: BxIcon.QUESTION,
style: ButtonStyle.FOCUSABLE, style: ButtonStyle.FOCUSABLE,

View File

@ -36,6 +36,7 @@ type BxStates = {
}; };
userAgent: { userAgent: {
isTv: boolean;
capabilities: { capabilities: {
touch: boolean; touch: boolean;
}; };

View File

@ -25,6 +25,7 @@ export const STATES: BxStates = {
}, },
userAgent: { userAgent: {
isTv: isTv,
capabilities: { capabilities: {
touch: userAgentHasTouchSupport, touch: userAgentHasTouchSupport,
} }