From 518877565b155d1a55307489b0ff497c4af69e51 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sun, 9 Aug 2020 14:18:28 +0800 Subject: [PATCH] Make accidentals more prominent Adjust metrics of styled accidentals. --- .../StyledAccidentalKey.tsx | 38 ++++++++----------- .../StyledNaturalKey/StyledNaturalKey.tsx | 2 +- tsconfig.json | 1 + 3 files changed, 17 insertions(+), 24 deletions(-) diff --git a/src/components/StyledAccidentalKey/StyledAccidentalKey.tsx b/src/components/StyledAccidentalKey/StyledAccidentalKey.tsx index 62fda53..6347818 100644 --- a/src/components/StyledAccidentalKey/StyledAccidentalKey.tsx +++ b/src/components/StyledAccidentalKey/StyledAccidentalKey.tsx @@ -107,9 +107,8 @@ const StyledAccidentalKey: React.FC = ({ keyChannels }) => {
= ({ keyChannels }) => {
@@ -157,6 +153,7 @@ const StyledAccidentalKey: React.FC = ({ keyChannels }) => {
= ({ keyChannels }) => {
@@ -204,18 +200,14 @@ const StyledAccidentalKey: React.FC = ({ keyChannels }) => {
diff --git a/src/components/StyledNaturalKey/StyledNaturalKey.tsx b/src/components/StyledNaturalKey/StyledNaturalKey.tsx index 703775f..50f0862 100644 --- a/src/components/StyledNaturalKey/StyledNaturalKey.tsx +++ b/src/components/StyledNaturalKey/StyledNaturalKey.tsx @@ -64,7 +64,7 @@ const StyledNaturalKey: React.FC = ({ keyChannels }) => { left: '0', maskImage: 'linear-gradient(to bottom, transparent, white)', WebkitMaskImage: 'linear-gradient(to bottom, transparent, white)', - backgroundColor: hasKeyChannels ? 'black' : LIGHT_COLOR, + backgroundColor: LIGHT_COLOR, opacity: hasKeyChannels ? 0.12 : 0.25, }} /> diff --git a/tsconfig.json b/tsconfig.json index 2cdd745..564494b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, + "noImplicitAny": true, "noFallthroughCasesInSwitch": true, "allowSyntheticDefaultImports": true, "moduleResolution": "node",