Skip to content

Commit

Permalink
Fixed controls transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Dec 21, 2021
1 parent 4d978d3 commit 576c7b4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.3.2
* Bugfix: Fixed transparency not being set on left side controls after refresh (Thank you Brimcon)

### 1.3.1
* Enhancement: New Left Controls Behavior (experimental) - Auto-Hide Plus hides all non-active sub controls
* Bugfix: Fixed FPS Indicator on the wrong position (Thanks GambitTV)
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Minimal UI",
"author": "JeansenVaars#2857",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"version": "1.3.1",
"version": "1.3.2",
"minimumCoreVersion": "9.233",
"compatibleCoreVersion": "9.238",
"dependencies": [
Expand All @@ -30,5 +30,5 @@
],
"url": "https://github.com/saif-ellafi/foundryvtt-minimal-ui.git",
"manifest": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/module.json",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/1.3.1/foundryvtt-minimal-ui_1.3.1.zip"
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/1.3.2/foundryvtt-minimal-ui_1.3.2.zip"
}
1 change: 0 additions & 1 deletion modules/component/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default class MinimalUISidebar {
}
});
Hooks.on('collapseSidebar', function(_, isCollapsing) {
console.log(isCollapsing);
if (isCollapsing) {
rootStyle.setProperty('--fpsposx', '-5px');
rootStyle.setProperty('--fpsvis', 'unset');
Expand Down
2 changes: 2 additions & 0 deletions modules/customization/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export default class MinimalUITheme {
const transparency = game.settings.get('minimal-ui', 'transparencyPercentage');
if (transparency >= 0 && transparency <= 100) {
rootStyle.setProperty('--opacity', transparency.toString() + '%');
// Need one separate for controls to handle some click events - there is probably a better way
rootStyle.setProperty('--opacitycontrols', transparency.toString() + '%');
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion 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": "foundryvtt-minimal-ui",
"version": "1.3.1",
"version": "1.3.2",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"main": "minimalui.js",
"scripts": {
Expand Down

0 comments on commit 576c7b4

Please sign in to comment.