diff --git a/CHANGELOG.md b/CHANGELOG.md index 5856385..c8252d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ -### 1.2.1 -* Enhancement: Small quality of life improvement, displays the hotbar (if hidden) when opening macro compendiums +### 1.3.0 +* Enhancement: Adjusted all components to be closer to the edge of the screen +* Enhancement: Revised defaults for a refreshing minimal look and feel (See Screenshot) +* Enhancement: Display the Macro Hotbar (if hidden) when opening macro compendiums to be ready for Drag & Drop ### 1.2.0 * Support: Foundry VTT V9 Support (Not backwards Compatible) diff --git a/README.md b/README.md index 47acafa..96c5c1c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Extremely Configurable UI module, allows the user to hide, collapse or auto-hide This includes hiding Foundry's Logo, Players List, Scene Navigation and Macro Bar. (The following image is the default look and feel for upcoming Foundry V9) -![Example Image](./example13.png) +![Example Image](./example16.png) ## Special Minimal UI Companions diff --git a/example13.png b/example13.png deleted file mode 100644 index b9338c7..0000000 Binary files a/example13.png and /dev/null differ diff --git a/example16.png b/example16.png new file mode 100644 index 0000000..390b20d Binary files /dev/null and b/example16.png differ diff --git a/module.json b/module.json index e69c361..c5737c9 100644 --- a/module.json +++ b/module.json @@ -3,9 +3,9 @@ "title": "Minimal UI", "author": "JeansenVaars#2857", "description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.", - "version": "1.2.0", + "version": "1.3.0", "minimumCoreVersion": "9.233", - "compatibleCoreVersion": "9.235", + "compatibleCoreVersion": "9.238", "dependencies": [ {"name": "colorsettings"} ], @@ -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.2.0/foundryvtt-minimal-ui_1.2.0.zip" + "download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/1.3.0/foundryvtt-minimal-ui_1.3.0.zip" } diff --git a/modules/component/hotbar.js b/modules/component/hotbar.js index c7dbcee..9a31f03 100644 --- a/modules/component/hotbar.js +++ b/modules/component/hotbar.js @@ -11,7 +11,7 @@ export default class MinimalUIHotbar { static cssHotbarRightControlsLineHeight = '12px'; static cssHotbarRightControlsLineHeightDnDUi = '10px'; static cssHotbarControlsAutoHideHeight = '100%'; - static cssHotbarAutoHideHeight = '5px'; + static cssHotbarAutoHideHeight = '-5px'; static cssHotbarAutoHideShadow = '-1px'; static cssHotbarControlsMargin = '0px'; @@ -140,7 +140,7 @@ export default class MinimalUIHotbar { "right": game.i18n.localize("MinimalUI.HotbarPositionCenterRight"), "manual": game.i18n.localize("MinimalUI.HotbarPositionManual") }, - default: "center", + default: "default", onChange: MinimalUIHotbar.positionHotbar }); diff --git a/modules/component/navigation.js b/modules/component/navigation.js index c6006fd..b37214d 100644 --- a/modules/component/navigation.js +++ b/modules/component/navigation.js @@ -3,7 +3,7 @@ import '../../styles/component/navigation.css'; export default class MinimalUINavigation { - static cssSceneNavNoLogoStart = '20px'; + static cssSceneNavNoLogoStart = '8px'; static cssSceneNavSmallLogoStart = '75px'; static cssSceneNavBullseyeStart = '125px'; @@ -24,7 +24,7 @@ export default class MinimalUINavigation { "collapsed": game.i18n.localize("MinimalUI.SettingsCollapsed"), "hidden": game.i18n.localize("MinimalUI.SettingsHide") }, - default: "shown", + default: "collapsed", onChange: debouncedReload }); diff --git a/modules/component/players.js b/modules/component/players.js index 744c48b..1cbfffd 100644 --- a/modules/component/players.js +++ b/modules/component/players.js @@ -35,7 +35,7 @@ export default class MinimalUIPlayers { "small": game.i18n.localize("MinimalUI.SettingsSmall"), "standard": game.i18n.localize("MinimalUI.SettingsStandard") }, - default: "small", + default: "standard", onChange: debouncedReload }); @@ -158,9 +158,6 @@ export default class MinimalUIPlayers { break; } } - if (game.settings.get('minimal-ui', 'hotbar') === 'autohide') { - rootStyle.setProperty('--playerbot', '2px'); - } // DnD UI Special Compatibility if (game.modules.get('dnd-ui') && game.modules.get('dnd-ui').active) { rootStyle.setProperty('--playerwidthhv', MinimalUIPlayers.cssPlayersStandardWidth); diff --git a/modules/customization/theme.js b/modules/customization/theme.js index 72eefdb..feedd07 100644 --- a/modules/customization/theme.js +++ b/modules/customization/theme.js @@ -64,7 +64,7 @@ export default class MinimalUITheme { hint: game.i18n.localize("MinimalUI.TransparencyPercentageHint"), scope: "world", config: true, - default: 75, + default: 60, type: Number, onChange: _ => { const transparency = game.settings.get('minimal-ui', 'transparencyPercentage'); diff --git a/package-lock.json b/package-lock.json index c546aac..4b9f446 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "foundryvtt-minimal-ui", - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "dependencies": { "@rollup/plugin-json": "^4.1.0", diff --git a/package.json b/package.json index 9ba0b6c..3988e7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "foundryvtt-minimal-ui", - "version": "1.2.0", + "version": "1.3.0", "description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.", "main": "minimalui.js", "scripts": { diff --git a/styles/component/controls.css b/styles/component/controls.css index f1e8444..8d02d7d 100644 --- a/styles/component/controls.css +++ b/styles/component/controls.css @@ -8,13 +8,12 @@ --controlssubop: 100%; } -#controls ol.main-controls { - overflow: visible; -} - #controls { opacity: var(--opacitycontrols); transition: 2s; + position: absolute; + top: 75px; + left: -10px; } #controls:hover { @@ -22,6 +21,10 @@ transition: 0.5s; } +#controls ol.main-controls { + overflow: visible; +} + #controls ol .scene-control, #controls ol .control-tool { width: var(--controlsw); height: var(--controlsh); @@ -39,6 +42,7 @@ margin-left: var(--controlssubmargin); transition: 2s; opacity: var(--controlssubop); + display: grid; } #controls:hover ol.sub-controls.active { diff --git a/styles/component/players.css b/styles/component/players.css index 536328a..40a2400 100644 --- a/styles/component/players.css +++ b/styles/component/players.css @@ -6,7 +6,8 @@ --playerslh: 20px; --playerbennies: none; --playerh3w: unset; - --playerbot: 10px; + --playerbot: -8px; + --playerleft: -8px; --playerpingdisplay: initial; } @@ -18,6 +19,7 @@ #players { bottom: var(--playerbot); + left: var(--playerleft); font-size: var(--playerfsize); visibility: var(--playervis); opacity: var(--opacity);