Skip to content

Commit

Permalink
v1.3.3
Browse files Browse the repository at this point in the history
- Small fix for flavor text on chat card;
- Small fix for player list when icon size is larger;
- Changed order of settings;
  • Loading branch information
crlngn committed Feb 15, 2025
1 parent 7b6c4cf commit 286b0f7
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 46 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**Latest Version:** 1.3.2
**Latest Version:** 1.3.3

**Compatibility:**
- Foundry VTT version 12.328+
Expand Down
2 changes: 1 addition & 1 deletion dist/module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "crlngn-ui",
"title": "Carolingian UI",
"version": "1.3.2",
"version": "1.3.3",
"description": "Style changes and tweaks to improve look and feel of Foundry UI",
"url": "https://github.com/crlngn/crlngn-ui",
"manifest": "https://github.com/crlngn/crlngn-ui/releases/latest/download/module.json",
Expand Down
2 changes: 1 addition & 1 deletion dist/scripts/module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scripts/module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/styles/module.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crlngn-ui",
"version": "1.3.2",
"version": "1.3.3",
"description": "Tweaks and style adjustments to improve UI on Foundry",
"license": "MIT",
"private": true,
Expand Down
70 changes: 35 additions & 35 deletions src/constants/Settings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,20 @@ export const SETTINGS = {
requiresReload: true
},

customFont: {
tag: "custom-font",
label: "Custom fonts",
hint: "You can type the name of custom fonts loaded on Foundry core and they will be used throughout the interface. Names with spaces must be written with double quotes (\"Font Name\"). If the font doesn't load you haven't typed the name correctly, or the font was not found. Default value: "+`"Work Sans", Arial, sans-serif`,
propType: String,
inputType: SETTING_INPUT.text,
default: `"Work Sans", "Roboto", Arial, sans-serif`,
controlIconSize: {
tag: "conrol-icon-size",
label: "Size of control icons",
hint: "If you use a very large screen, you may want to change the size of the icons on left controls. This may affect some other UI elements",
propType: Number,
choices: {
1: "small",
2: "normal"
},
inputType: SETTING_INPUT.number,
default: 1,
scope: SETTING_SCOPE.client,
config: true,
requiresReload: true
},

debugMode: {
tag: "debug-mode",
label: "Debug Mode",
hint: "Enable or disable debug messages on browser console",
propType: Boolean,
inputType: SETTING_INPUT.checkbox,
default: false,
scope: SETTING_SCOPE.client,
config: true
},
config: true
} ,

sceneNavCollapsed: {
tag: "scene-nav-collapsed",
Expand Down Expand Up @@ -140,6 +132,18 @@ export const SETTINGS = {
requiresReload: false
},

customFont: {
tag: "custom-font",
label: "Custom fonts",
hint: "You can type the name of custom fonts loaded on Foundry core and they will be used throughout the interface. Names with spaces must be written with double quotes (\"Font Name\"). If the font doesn't load you haven't typed the name correctly, or the font was not found. Default value: "+`"Work Sans", Arial, sans-serif`,
propType: String,
inputType: SETTING_INPUT.text,
default: `"Work Sans", "Roboto", Arial, sans-serif`,
scope: SETTING_SCOPE.client,
config: true,
requiresReload: true
},

enableCameraStyles: {
tag: "enable-camera-styles",
label: "Enable floating camera dock",
Expand Down Expand Up @@ -196,19 +200,15 @@ export const SETTINGS = {
config: true
} ,

controlIconSize: {
tag: "conrol-icon-size",
label: "Size of control icons",
hint: "If you use a very large screen, you may want to change the size of the icons on left controls. This may affect some other UI elements",
propType: Number,
choices: {
1: "small",
2: "normal"
},
inputType: SETTING_INPUT.number,
default: 1,
scope: SETTING_SCOPE.client,
config: true
}
debugMode: {
tag: "debug-mode",
label: "Debug Mode",
hint: "Enable or disable debug messages on browser console",
propType: Boolean,
inputType: SETTING_INPUT.checkbox,
default: false,
scope: SETTING_SCOPE.client,
config: true
},

}
2 changes: 1 addition & 1 deletion src/module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "crlngn-ui",
"title": "Carolingian UI",
"version": "1.3.2",
"version": "1.3.3",
"description": "Style changes and tweaks to improve look and feel of Foundry UI",
"url": "https://github.com/crlngn/crlngn-ui",
"manifest": "https://github.com/crlngn/crlngn-ui/releases/latest/download/module.json",
Expand Down
1 change: 1 addition & 0 deletions src/styles/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ body.crlngn-chat {
letter-spacing: 0.02em;
font-size: var(--font-size-11);
line-height: 1.4;
margin: 0.5em 0;
/*display: none !important;*/
}

Expand Down
16 changes: 14 additions & 2 deletions src/styles/players-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ body.crlngn-ui {
& > ol {
max-height: 10vh;
max-width: var(--max-players-width);
min-width: var(--left-control-item-size);

li.player {
line-height: 1.2em;
Expand All @@ -124,16 +125,18 @@ body.crlngn-ui {
align-items: center;
justify-content: flex-start;
overflow: visible;
width: auto;
width: 100%;
max-width: 100%;
font-size: var(--font-size-12);
min-width: var(--left-control-item-size);
flex: 0 0 var(--left-control-item-size);

span.player-active {
display: flex;
width: 8px;
height: 8px;
flex: 0 0 8px;
margin: 0 13px;
margin: 0 calc((var(--left-control-item-size) - 8px) / 2);
border: 1px solid rgba(255,255,255,0.5);
}

Expand All @@ -145,6 +148,11 @@ body.crlngn-ui {
margin-left: calc(var(--left-control-item-size) * -1);
opacity: 0;
transition: opacity 0.15s ease-in-out;
flex: 0 0 var(--left-control-item-size);
}

i{
display: none;
}
}
}
Expand All @@ -160,6 +168,10 @@ body.crlngn-ui {
white-space: nowrap;
text-overflow: ellipsis;
}
&:not(.auto-hide) ol li i,
&:hover ol li i{
display: inline-flex;
}

}
}
Expand Down

0 comments on commit 286b0f7

Please sign in to comment.