From f79c645ab5270057ad06f6fe961afe112aa108cf Mon Sep 17 00:00:00 2001 From: Lugiad <2070109+Adri1@users.noreply.github.com> Date: Thu, 26 Jun 2025 19:17:27 +0200 Subject: [PATCH] Add MOVE_LABEL TextStyle --- src/ui/text.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ui/text.ts b/src/ui/text.ts index 9a1a1d37f1a..2a3ce5d5c85 100644 --- a/src/ui/text.ts +++ b/src/ui/text.ts @@ -16,6 +16,7 @@ export enum TextStyle { PARTY, PARTY_RED, PARTY_CANCEL_BUTTON, + MOVE_LABEL, SUMMARY, SUMMARY_ALT, SUMMARY_HEADER, @@ -360,6 +361,19 @@ export function getTextStyleOptions( styleOptions.fontFamily = "pkmnems"; break; } + case TextStyle.MOVE_LABEL: { + switch (lang) { + case "ja": + styleOptions.fontSize = defaultFontSize - 16; + styleOptions.padding = { top: -12, bottom: 4 }; + break; + default: + styleOptions.fontSize = defaultFontSize - 30; + break; + } + styleOptions.fontFamily = "pkmnems"; + break; + } case TextStyle.EGG_LIST: styleOptions.fontSize = defaultFontSize - 34; break; @@ -507,6 +521,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui return !shadow ? "#f8f8f8" : "#6b5a73"; case TextStyle.PARTY: case TextStyle.PARTY_CANCEL_BUTTON: + case TextStyle.MOVE_LABEL: return !shadow ? "#f8f8f8" : "#707070"; case TextStyle.PARTY_RED: return !shadow ? "#f89890" : "#984038";