From 9b875af7b9a6b6ab0499d28d15a9884b019a66f2 Mon Sep 17 00:00:00 2001 From: Iain Collins Date: Thu, 28 Apr 2022 18:01:15 +0100 Subject: [PATCH] Minor cosmetic improvements to ship instrumentation Improved apperance to more resemble UI elements seen in-game and added some transition animations. --- package.json | 2 +- .../panels/ship/ship-modules-panel.js | 18 +++--- src/web/css/form/checkbox.css | 29 +++++---- src/web/css/main.css | 9 ++- src/web/css/overrides/firefox.css | 8 +++ src/web/css/panels/ship-panel.css | 63 +++++-------------- 6 files changed, 57 insertions(+), 72 deletions(-) diff --git a/package.json b/package.json index d800c1a7..d1b77e06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "icarus", - "version": "0.12.1", + "version": "0.12.2", "description": "ICARUS Terminal for Elite Dangerous", "scripts": { "build": "npm run build:web && npm run build:app && npm run build:service && npm run build:package", diff --git a/src/web/components/panels/ship/ship-modules-panel.js b/src/web/components/panels/ship/ship-modules-panel.js index b355d259..06213559 100644 --- a/src/web/components/panels/ship/ship-modules-panel.js +++ b/src/web/components/panels/ship/ship-modules-panel.js @@ -129,7 +129,7 @@ export default function ShipModulesPanel ({ ship, selectedModule, setSelectedMod onChange={() => toggleSwitch('lights')} disabled /> - + @@ -141,7 +141,7 @@ export default function ShipModulesPanel ({ ship, selectedModule, setSelectedMod onChange={() => toggleSwitch('nightVision')} disabled /> - + @@ -153,7 +153,7 @@ export default function ShipModulesPanel ({ ship, selectedModule, setSelectedMod onChange={() => toggleSwitch('cargoHatch')} disabled /> - + @@ -165,7 +165,7 @@ export default function ShipModulesPanel ({ ship, selectedModule, setSelectedMod onChange={() => toggleSwitch('landingGear')} disabled /> - + @@ -177,7 +177,7 @@ export default function ShipModulesPanel ({ ship, selectedModule, setSelectedMod onChange={() => toggleSwitch('hardpoints')} disabled /> - + @@ -337,10 +337,12 @@ function NavigationInstrumentation ({ ship, cmdrStatus }) { maxHeight: '12rem', margin: 'auto', aspectRatio: '1', - background: 'var(--color-background-panel-translucent)', border: '.5rem double var(--color-info)', transform: `rotate(${ship.onBoard ? cmdrStatus?.heading ?? 0 : 0}deg)`, - borderRadius: '100rem' + opacity: ship.onBoard ? 1 : '.5', + borderRadius: '100rem', + boxShadow: 'inset 0 0 .25rem var(--color-info), 0 0 .25rem var(--color-info)', + transition: 'opacity .25s ease-in-out' }} >
@@ -408,6 +411,7 @@ function NavigationInstrumentation ({ ship, cmdrStatus }) { } function PowerDistribution ({ ship }) { + return (