mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
Update style of the show/hide touch control button
This commit is contained in:
@@ -26,6 +26,7 @@ export class TouchControlAction extends BaseGameBarAction {
|
||||
icon: BxIcon.TOUCH_CONTROL_ENABLE,
|
||||
title: t('show-touch-controller'),
|
||||
onClick: onClick,
|
||||
classes: ['bx-activated'],
|
||||
});
|
||||
|
||||
const $btnDisable = createButton({
|
||||
@@ -35,10 +36,12 @@ export class TouchControlAction extends BaseGameBarAction {
|
||||
onClick: onClick,
|
||||
});
|
||||
|
||||
this.$content = CE('div', {'data-enabled': 'true'},
|
||||
this.$content = CE('div', {},
|
||||
$btnEnable,
|
||||
$btnDisable,
|
||||
);
|
||||
|
||||
this.reset();
|
||||
}
|
||||
|
||||
render(): HTMLElement {
|
||||
|
Reference in New Issue
Block a user