Enhance Star Wars Journal with custom chat styles and UI tweaks
- Added a hook to apply custom CSS classes to chat messages based on flags in `asc-starwars.js`. - Updated `StarWarsStyleJournalSheet` to apply the 'asc-starwars' class and ensure the journal renders in a collapsed state by default. - Enhanced `asc-starwars-journal.css` to improve visual consistency: - Applied starry background and Star Wars-themed fonts to journal entries and chat messages. - Adjusted layout, padding, and width for better readability. - Added rounded borders, padding, and margins to message content for a polished look. These updates improve the thematic immersion and UI aesthetics of the Star Wars journal and chat features.
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
export class StarWarsStyleJournalSheet extends JournalSheet {
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: [...(super.defaultOptions.classes || []), 'asc-starwars-customsheet'],
|
||||
classes: [...(super.defaultOptions.classes || []), 'asc-starwars'],
|
||||
});
|
||||
}
|
||||
|
||||
// activateListeners(html) {
|
||||
// super.activateListeners(html);
|
||||
|
||||
// const sidebar = html.find('.journal-sidebar');
|
||||
// const aside = html.find('aside');
|
||||
// this.toggleSidebar()
|
||||
|
||||
// }
|
||||
async _render(force, options) {
|
||||
await super._render(force, {...options, collapsed:true});
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user