Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Parchment setting, vibrant panels,localization start, stylish text re…
Browse files Browse the repository at this point in the history
…names, remove sizes from headings, minro bug fixes
  • Loading branch information
AmazingVanish committed Feb 7, 2022
1 parent f925409 commit d716e5c
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 75 deletions.
22 changes: 16 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# RELEASE NOTES

## Version 1.2.0 - Parchment Setting

- Added a setting to enable/disable the parchment background (Thanks KSMI for the request)
- Made the panels more vibrant so they stand out more
- Removed a leftover from another project. Whooops! (Thanks SecretSquirrel77 for pointing it out)
- Fixed more font naming (Thanks SecretSquirrel77 for pointing it out)
- Added localization for the settings panel
- Modified the names of the Stylish Text to be more in line with standard naming conventions (Thanks weepingminotaur for the idea)
- Removed size settings for the Stylish Text to prepare for future changes and consistency

## Version 1.1.0 - More Stylings

- Use CSS Variables throughout
- Styled Entity Links
- Styled Encouter inputs
- Styled item bars
- Tweak box shadows
- Stlyed background of Enhanced entry icons boxes
- Use CSS Variables throughout
- Styled Entity Links
- Styled Encouter inputs
- Styled item bars
- Tweak box shadows
- Stlyed background of Enhanced entry icons boxes

## Version 1.0.0 - Initial Public Release

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Arius Planeswalker's Stylish Journal for Monk's Enhanced Journal

![Version](https://img.shields.io/github/v/tag/AmazingVanish/apsj4mej?label=Version&style=flat-square&color=2577a1) ![Latest Release Download Count](https://img.shields.io/github/downloads/AmazingVanish/apsj4mej/latest/module.zip?label=Downloads&style=flat-square&color=9b43a8) ![Supported Foundry Versions](https://img.shields.io/endpoint?url=https://foundryshields.com/version?url=https://raw.githubusercontent.com/AmazingVanish/apsj4mej/master/module.json&style=flat-square&color=ff6400) [![Discord Server](https://img.shields.io/badge/-Discord-%232c2f33?style=flat-square&logo=discord)](https://discord.gg/ge9GJXDsM2)
![All Releases Downloads](https://img.shields.io/github/downloads/AmazingVanish/apsj4mej/total?logo=GitHub) ![Latest Release Downloads](https://img.shields.io/github/downloads/AmazingVanish/apsj4mej/latest/total) ![GitHub Release (latest by date)](https://img.shields.io/github/v/release/AmazingVanish/apsj4mej) ![Supported Foundry Versions](https://img.shields.io/endpoint?url=https://foundryshields.com/version?url=https://raw.githubusercontent.com/AmazingVanish/apsj4mej/master/module.json&style=flat-square&color=ff6400) [![Discord Server](https://img.shields.io/badge/-Discord-%232c2f33?style=flat-square&logo=discord)](https://discord.gg/ge9GJXDsM2)

## Arius Planeswalker Presents Stylish Journal for Monk's Enhanced Journal

Expand Down Expand Up @@ -40,6 +40,10 @@ _Screenshot of an Encounter Entry_
![loot](https://raw.github.com/AmazingVanish/apsj4mej/master/media/apsj4mej-loot.webp)
_Screenshot of a Loot Entry_

## Known Issues

- Font Awesome icons do not display in Edit Mode

## License

Copyright © 2022 DreamScape Visionery, LLC. All rights reserved.
Expand Down
7 changes: 5 additions & 2 deletions languages/en.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"MODULE.hello": "hello"
}
"APSJ4MEJ.menuEnableParchmentName": "Enable Parchment",
"APSJ4MEJ.menuEnableParchmentHint": "Replace the default white parchment background with a more aged, brownish look.",
"APSJ4MEJ.menuTitleSizeName": "Choose the default size of your Stylish Titles",
"APSJ4MEJ.menuHeadingSizeName": "Choose the default size of your Stylish Headings"
}
Binary file modified media/apsj4mej-ss.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"library": "false",
"manifestPlusVersion": "1.2.0",
"minimumCoreVersion": "9",
"compatibleCoreVersion": 9,
"compatibleCoreVersion": "9.248",
"author": "Vanish",
"authors": [
{
Expand Down
79 changes: 69 additions & 10 deletions scripts/apsj4mej.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
Hooks.on('init', () => {
game.settings.register('apsj4mej', 'apsj4mejEnableParchment', {
name: game.i18n.format('APSJ4MEJ.menuEnableParchmentName'),
hint: game.i18n.format('APSJ4MEJ.menuEnableParchmentHint'),
scope: 'client',
config: true,
default: true,
type: Boolean,
onChange: () => window.location.reload(),
});

// game.settings.register('apsj4mej', 'apsj4mejTitleSize', {
// name: game.i18n.format('APSJ4MEJ.menuTitleSizeName'),
// scope: 'world',
// config: true,
// type: Number,
// default: '48',
// });

// game.settings.register('apsj4mej', 'apsj4mejHeadingSize', {
// name: game.i18n.format('APSJ4mEJ.menuHeadingSizeName'),
// scope: 'world',
// config: true,
// type: Number,
// default: '36',
// });

CONFIG.TinyMCE.plugins =
' advlist lists searchreplace textpattern template image table hr code save link';

Expand All @@ -9,31 +35,64 @@ Hooks.on('init', () => {
});

Hooks.on('ready', () => {
if (game.settings.get('apsj4mej', 'apsj4mejEnableParchment')) {
let innerHTML = '';
let style = document.createElement('style');
style.id = 'apsj4mej-changes';
innerHTML += `
.monks-enhanced-journal .mainbar {
background-image: url(modules/apsj4mej/assets/parchment-medium.webp);
}
.monks-enhanced-journal .directory-sidebar {
background-image: url(modules/apsj4mej/assets/parchment-medium.webp) !important;
}
.monks-enhanced-journal .tab-bar .journal-tab.active {
background-image: url(modules/apsj4mej/assets/parchment.webp);
}
.monks-journal-sheet .encounter-body {
background-image: url(modules/apsj4mej/assets/parchment-bloody.webp);
}
.monks-journal-sheet,
.monks-journal-sheet.sheet .person-container,
.monks-journal-sheet.sheet .place-container,
.monks-journal-sheet.sheet .quest-container,
.monks-journal-sheet.sheet .organization-container,
.monks-journal-sheet.sheet .shop-container,
.monks-journal-sheet.sheet .loot-container,
.monks-journal-sheet.sheet .poi-container {
background-image: url(modules/apsj4mej/assets/parchment.webp);
}
`;
style.innerHTML = innerHTML;
if (innerHTML != '') {
document.querySelector('head').appendChild(style);
}
}

CONFIG.TinyMCE.style_formats.push({
title: 'Stylish Text',
items: [
{
title: 'D&D Title',
title: 'Stylish Heading (Title)',
selector: 'h1,h2,h3,h4,h5,h6,th',
classes: 'dnd-title',
},
{
title: 'Adventure Title',
selector: 'h1,h2,h3,h4,h5,h6,th',
classes: 'adv-title',
},
{
title: 'D&D Heading',
title: 'Stylish Heading',
selector: 'h1,h2,h3,h4,h5,h6,th',
classes: 'dnd-heading',
},
{
title: 'D&D Data / DM',
selector: 'h1,h2,h3,h4,h5,h6,th,p,td',
title: 'Stylish Data',
selector: 'h1,h2,h3,h4,h5,h6,th',
classes: 'dnd-data',
},
{
title: 'D&D Text',
title: 'Stylish Paragraph',
selector: 'p,td',
classes: 'dnd-text',
},
Expand Down
80 changes: 25 additions & 55 deletions styles/apsj4mej.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:root {
--color-apsj-base-border: rgba(128, 0, 0, 1);
--color-apsj-base-background: rgba(128, 0, 0, 0.75);
--color-apsj-magic-border: rgba(92, 135, 185, 1);
--color-apsj-magic-border: rgb(92, 135, 185);
--color-apsj-light-background: rgba(255, 255, 255, 0.75);
--color-apsj-dark-background: rgba(64, 64, 64, 0.25);
}
Expand All @@ -13,28 +13,28 @@

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanity.otf') format('opentype');
src: url('../fonts/BookInsanity/BookInsanity.otf') format('opentype');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanityBold.otf') format('opentype');
src: url('../fonts/BookInsanity/BookInsanityBold.otf') format('opentype');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanityItalic.otf') format('opentype');
src: url('../fonts/BookInsanity/BookInsanityItalic.otf') format('opentype');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanityBoldItalic.otf')
src: url('../fonts/BookInsanity/BookInsanityBoldItalic.otf')
format('opentype');
font-weight: 700;
font-style: italic;
Expand Down Expand Up @@ -112,28 +112,25 @@
background-image: url(../assets/parchment-medium.webp) !important;
} */

.editor-content h1 {
font-size: xxx-large;
}

.editor-content h2 {
font-size: xx-large;
.editor-content table tbody tr td {
padding: 0 15px;
}

.editor-content h3 {
font-size: x-large;
.editor-content table tbody tr td:first-child {
white-space: nowrap;
}

.editor-content h4 {
font-size: large;
.editor-content blockquote {
margin-bottom: 1.5em;
}

.editor-content h5 {
font-size: medium;
.editor-content {
padding-right: 5px;
overflow-x: hidden;
}

.editor-content h6 {
font-size: small;
li > .entity-link {
line-height: 1.75em;
}

table thead {
Expand Down Expand Up @@ -170,33 +167,6 @@ a.inline-roll i {
Monk's Enhanced Journal Style Overrides
*/

.monks-enhanced-journal .mainbar {
background-image: url(../assets/parchment-medium.webp);
}

.monks-enhanced-journal .directory-sidebar {
background-image: url(../assets/parchment-medium.webp) !important;
}

.monks-enhanced-journal .tab-bar .journal-tab.active {
background-image: url(../assets/parchment.webp);
}

.monks-journal-sheet .encounter-body {
background-image: url(../assets/parchment-bloody.webp);
}

.monks-journal-sheet,
.monks-journal-sheet.sheet .person-container,
.monks-journal-sheet.sheet .place-container,
.monks-journal-sheet.sheet .quest-container,
.monks-journal-sheet.sheet .organization-container,
.monks-journal-sheet.sheet .shop-container,
.monks-journal-sheet.sheet .loot-container,
.monks-journal-sheet.sheet .poi-container {
background-image: url(../assets/parchment.webp);
}

.monks-journal-sheet .header-name {
font-family: 'Modesto Condensed';
}
Expand Down Expand Up @@ -298,35 +268,35 @@ a.inline-roll i {
}

.panel.info {
background: rgba(47, 80, 132, 0.75);
border: 1px solid var(--color-apsj-magic-border);
background: rgb(57, 90, 150);
border: 2px solid rgb(110, 150, 200);
}

.panel.info::before {
content: '\f05a';
}

.panel.note {
background: rgba(214, 150, 0, 0.75);
border: 1px solid #d69e07;
background: rgb(214, 150, 0);
border: 2px solid #f6be07;
}

.panel.note::before {
content: '\f044';
}

.panel.warning {
background: rgba(105, 0, 8, 0.75);
border: 1px solid #750003;
background: rgb(128, 0, 0);
border: 2px solid #d00000;
}

.panel.warning::before {
content: '\f06a';
}

.panel.bonus {
background: rgba(101, 155, 0, 0.75);
border: 1px solid #8ad304;
background: rgb(101, 155, 0);
border: 2px solid #8ad304;
}

.panel.bonus::before {
Expand Down Expand Up @@ -376,7 +346,7 @@ a.inline-roll i {
}

.block p {
font-family: 'Bookinsanity';
font-family: 'BookInsanity';
font-weight: 400;
}

Expand Down

0 comments on commit d716e5c

Please sign in to comment.