Update style of the show/hide touch control button

This commit is contained in:
redphx
2024-05-11 21:12:14 +07:00
parent 0092417a6e
commit 5c9202119b
2 changed files with 16 additions and 4 deletions

View File

@@ -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 {