Add new TextStyle

This commit is contained in:
Lugiad 2025-06-26 01:39:57 +02:00 committed by GitHub
parent a5d5b0e8e7
commit 4923a30b01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,7 @@ export enum TextStyle {
SUMMARY_STATS_PINK, SUMMARY_STATS_PINK,
MONEY, // Money default styling (pale yellow) MONEY, // Money default styling (pale yellow)
MONEY_WINDOW, // Money displayed in Windows (needs different colors based on theme) MONEY_WINDOW, // Money displayed in Windows (needs different colors based on theme)
HEADER_LABEL,
STATS_LABEL, STATS_LABEL,
STATS_VALUE, STATS_VALUE,
SETTINGS_VALUE, SETTINGS_VALUE,
@ -268,6 +269,10 @@ export function getTextStyleOptions(
case TextStyle.MESSAGE: case TextStyle.MESSAGE:
styleOptions.fontSize = defaultFontSize styleOptions.fontSize = defaultFontSize
break; break;
case TextStyle.HEADER_LABEL:
styleOptions.fontSize = defaultFontSize
styleOptions.padding = { top: 6 };
break;
case TextStyle.SETTINGS_LABEL: { case TextStyle.SETTINGS_LABEL: {
shadowXpos = 3; shadowXpos = 3;
shadowYpos = 3; shadowYpos = 3;
@ -543,6 +548,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui
return !shadow ? "#78c850" : "#306850"; return !shadow ? "#78c850" : "#306850";
case TextStyle.SETTINGS_LABEL: case TextStyle.SETTINGS_LABEL:
case TextStyle.SETTINGS_LABEL_NAVBAR: case TextStyle.SETTINGS_LABEL_NAVBAR:
case TextStyle.HEADER_LABEL:
case TextStyle.PERFECT_IV: case TextStyle.PERFECT_IV:
return !shadow ? "#f8b050" : "#c07800"; return !shadow ? "#f8b050" : "#c07800";
case TextStyle.SETTINGS_SELECTED: case TextStyle.SETTINGS_SELECTED: