Add the ability to add/remove a chat background (Closes #1)
This commit is contained in:
parent
529aa72bdf
commit
c626c981aa
7 changed files with 60 additions and 3 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { __ID } from "../consts.mjs";
|
||||
import { chatSidebarBackground } from "../settings/chatSidebarBackground.mjs";
|
||||
import { startSidebarExpanded } from "../settings/startSidebarExpanded.mjs";
|
||||
|
||||
Hooks.once(`init`, () => {
|
||||
console.log(`${__ID} | Initializing`);
|
||||
|
||||
startSidebarExpanded.register();
|
||||
chatSidebarBackground.register();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,9 +1,15 @@
|
|||
import { __ID, inDev } from "../consts.mjs";
|
||||
import { startSidebarExpanded } from "../settings/startSidebarExpanded.mjs";
|
||||
|
||||
Hooks.once(`renderSidebar`, (app, _element, _context, _options) => {
|
||||
// #region Once
|
||||
Hooks.once(`renderSidebar`, (app) => {
|
||||
|
||||
// MARK: Sidebar Expansion
|
||||
if (startSidebarExpanded.value()) {
|
||||
if (inDev()) {
|
||||
console.log(`${__ID} | setting:startSidebarExpanded | Expanding Sidebar`);
|
||||
}
|
||||
app.toggleExpanded(true);
|
||||
}
|
||||
};
|
||||
});
|
||||
// #endregion Once
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue