From 19bee3e274547289c5e5a0e89a59b478e8dd0d75 Mon Sep 17 00:00:00 2001 From: Clay Smalley Date: Wed, 4 May 2022 09:56:29 -0400 Subject: [PATCH 1/2] Replace diamond shield --- style/icons/shield40_diamond_white.svg | 3 +++ style/icons/shield40_us_nc.svg | 3 --- style/js/shield_defs.js | 11 ++++++----- 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 style/icons/shield40_diamond_white.svg delete mode 100644 style/icons/shield40_us_nc.svg diff --git a/style/icons/shield40_diamond_white.svg b/style/icons/shield40_diamond_white.svg new file mode 100644 index 000000000..57be62478 --- /dev/null +++ b/style/icons/shield40_diamond_white.svg @@ -0,0 +1,3 @@ + + + diff --git a/style/icons/shield40_us_nc.svg b/style/icons/shield40_us_nc.svg deleted file mode 100644 index 8a82f9fbf..000000000 --- a/style/icons/shield40_us_nc.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/style/js/shield_defs.js b/style/js/shield_defs.js index ba0cc87a3..41f140654 100644 --- a/style/js/shield_defs.js +++ b/style/js/shield_defs.js @@ -68,13 +68,14 @@ export function loadShields(shieldImages) { //Diamond shields var diamondShield = { - backgroundImage: shieldImages.shield40_us_nc, + backgroundImage: shieldImages.shield40_diamond_white, + textLayoutConstraint: ShieldText.ellipseTextConstraint, textColor: "black", padding: { - left: 5, - right: 5, - top: 5, - bottom: 5, + left: 2, + right: 2, + top: 4.5, + bottom: 4.5, }, }; From 44167c250c288f6ef4633a6bf2cbb6121248d774 Mon Sep 17 00:00:00 2001 From: Clay Smalley Date: Wed, 4 May 2022 17:22:38 -0400 Subject: [PATCH 2/2] Adjust spacing on diamond shield --- style/js/shield_defs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style/js/shield_defs.js b/style/js/shield_defs.js index 41f140654..2b8a42f1a 100644 --- a/style/js/shield_defs.js +++ b/style/js/shield_defs.js @@ -72,8 +72,8 @@ export function loadShields(shieldImages) { textLayoutConstraint: ShieldText.ellipseTextConstraint, textColor: "black", padding: { - left: 2, - right: 2, + left: 2.5, + right: 2.5, top: 4.5, bottom: 4.5, },