From f8cab9507cc5769bda6639a9f507f18f05931053 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+KaizIqbal@users.noreply.github.com> Date: Mon, 17 Aug 2020 11:26:11 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Reduce=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/config.ts | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/packages/round/src/config.ts b/packages/round/src/config.ts index 8aec7fa2..dcaa8442 100644 --- a/packages/round/src/config.ts +++ b/packages/round/src/config.ts @@ -16,6 +16,13 @@ const yellow = "#FDC43F"; const green = "#96C865"; const blue = "#4FADDF"; +const watchColors = { + color1: red, // top-right shape color + color2: yellow, // bottom-right shape color + color3: green, // bottom-left shape color + color4: green // top-left shape color +}; + // --------------------------------------- Schemes🌈 const colorSchemes: ColorSchema = { @@ -24,21 +31,28 @@ const colorSchemes: ColorSchema = { outline: white, watch: { background: black, - color1: red, - color2: yellow, - color3: green, - color4: blue + ...watchColors }, customize: { - "top_left_corner.svg": {}, - "top_right_corner.svg": {}, - "bottom_left_corner.svg": {}, - "bottom_right_corner.svg": {} + "top_right_corner.svg": { base: red }, + "bottom_right_corner.svg": { base: yellow }, + "bottom_left_corner.svg": { base: green }, + "top_left_corner.svg": { base: blue } } }, Classic: { base: black, - outline: white + outline: white, + watch: { + background: black, + ...watchColors + }, + customize: { + "top_right_corner.svg": { base: red }, + "bottom_right_corner.svg": { base: yellow }, + "bottom_left_corner.svg": { base: green }, + "top_left_corner.svg": { base: blue } + } } };