diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d76873..b9f46b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 0.8.5 +* Bugfix: Minimize+ colors darkened +* Bugfix: Minimized a window that was pinned now stays pinned + ### 0.8.4 * Enhancement: Minimize+ Setting "Right Click" colours a minimized window to find it quickly later * Enhancement: Minimize+ Setting Mouse over minimized windows gives them shadow color diff --git a/module.json b/module.json index 8cb3517..5365544 100644 --- a/module.json +++ b/module.json @@ -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": "0.8.4", + "version": "0.8.5", "minimumCoreVersion": "0.7.9", "compatibleCoreVersion": "0.7.9", "dependencies": [ @@ -26,5 +26,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/latest/download/foundryvtt-minimal-ui_0.8.4.zip" + "download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/foundryvtt-minimal-ui_0.8.5.zip" } diff --git a/modules/feature/minimize.js b/modules/feature/minimize.js index 5e3fb05..8ca4f83 100644 --- a/modules/feature/minimize.js +++ b/modules/feature/minimize.js @@ -63,9 +63,13 @@ export default class MinimalUIMinimize { app.element.find(".close").append(``); if (game.settings.get('minimal-ui', 'enrichedMinimize') === 'enabled') { const header = app.element.find(".window-header"); + if (header.hasClass('minimized-was-pinned')) + header.addClass('minimized-pinned') header.on('contextmenu', function () { - if (header.hasClass('minimized-pinned')) + if (header.hasClass('minimized-pinned')) { header.removeClass('minimized-pinned') + header.removeClass('minimized-was-pinned') + } else header.addClass('minimized-pinned') }); @@ -84,8 +88,11 @@ export default class MinimalUIMinimize { app.element.find(".close").text(''); app.element.find(".close").append(`Close`); if (game.settings.get('minimal-ui', 'enrichedMinimize') === 'enabled') { - app.element.find(".window-header").removeClass('minimized-pinned'); - app.element.find(".window-header").off(); + const header = app.element.find(".window-header"); + if (header.hasClass('minimized-pinned')) + header.addClass('minimized-was-pinned'); + header.removeClass('minimized-pinned'); + header.off(); } } diff --git a/package.json b/package.json index aaa3795..f75dba9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "foundryvtt-minimal-ui", - "version": "0.8.4", + "version": "0.8.5", "description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.", "main": "minimalui.js", "scripts": { diff --git a/styles/feature/minimize.css b/styles/feature/minimize.css index ad961a0..130deb2 100644 --- a/styles/feature/minimize.css +++ b/styles/feature/minimize.css @@ -17,9 +17,11 @@ } .minimized-highlight { - background: var(--shadowcolor); + background-color: var(--shadowcolor); + mix-blend-mode: luminosity; } .minimized-pinned { - background: var(--bordercolor); + background-color: var(--bordercolor); + mix-blend-mode: luminosity; } \ No newline at end of file