Tint bulk edit button when bulk edit state is select
This commit is contained in:
parent
778eb2be0e
commit
27bc93936f
|
@ -61,3 +61,7 @@
|
||||||
#character_context_menu li:hover {
|
#character_context_menu li:hover {
|
||||||
background-color: var(--SmartThemeBotMesBlurTintColor);
|
background-color: var(--SmartThemeBotMesBlurTintColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#bulkEditButton.bulk_edit_overlay_active {
|
||||||
|
color: var(--golden);
|
||||||
|
}
|
||||||
|
|
|
@ -347,12 +347,14 @@ class BulkEditOverlay {
|
||||||
this.#enableClickEventsForCharacters();
|
this.#enableClickEventsForCharacters();
|
||||||
this.clearSelectedCharacters();
|
this.clearSelectedCharacters();
|
||||||
this.disableContextMenu();
|
this.disableContextMenu();
|
||||||
|
this.#disableBulkEditButtonHighlight();
|
||||||
CharacterContextMenu.hide();
|
CharacterContextMenu.hide();
|
||||||
break;
|
break;
|
||||||
case CharacterGroupOverlayState.select:
|
case CharacterGroupOverlayState.select:
|
||||||
this.container.classList.add(BulkEditOverlay.selectModeClass);
|
this.container.classList.add(BulkEditOverlay.selectModeClass);
|
||||||
this.#disableClickEventsForCharacters();
|
this.#disableClickEventsForCharacters();
|
||||||
this.enableContextMenu();
|
this.enableContextMenu();
|
||||||
|
this.#enableBulkEditButtonHighlight();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -365,6 +367,10 @@ class BulkEditOverlay {
|
||||||
#disableClickEventsForCharacters = () => [...this.container.getElementsByClassName(BulkEditOverlay.characterClass)]
|
#disableClickEventsForCharacters = () => [...this.container.getElementsByClassName(BulkEditOverlay.characterClass)]
|
||||||
.forEach(element => element.addEventListener('click', this.toggleCharacterSelected));
|
.forEach(element => element.addEventListener('click', this.toggleCharacterSelected));
|
||||||
|
|
||||||
|
#enableBulkEditButtonHighlight = () => document.getElementById('bulkEditButton').classList.add('bulk_edit_overlay_active');
|
||||||
|
|
||||||
|
#disableBulkEditButtonHighlight = () => document.getElementById('bulkEditButton').classList.remove('bulk_edit_overlay_active');
|
||||||
|
|
||||||
toggleCharacterSelected = event => {
|
toggleCharacterSelected = event => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue