fix(app): preserve persisted theme styles after startup
Module-level style composites could materialize the temporary adaptive theme before persisted settings loaded. Keep Unistyles reads in render and guard against eager module-scope access.
This commit is contained in:
@@ -418,7 +418,8 @@ function CopyableInfoRow({
|
||||
if (copied || isHovered) {
|
||||
iconUniProps = foregroundColorMapping;
|
||||
}
|
||||
const textStyle = copied || isHovered ? cardInfoTextHoveredCombined : styles.cardInfoText;
|
||||
const textStyle =
|
||||
copied || isHovered ? [styles.cardInfoText, styles.cardInfoTextHovered] : styles.cardInfoText;
|
||||
|
||||
return (
|
||||
<Pressable
|
||||
@@ -506,7 +507,9 @@ function ChecksSummaryContent({
|
||||
const { t } = useTranslation();
|
||||
const { passed, failed, pending } = getChecksSummaryCounts(checks);
|
||||
|
||||
const labelStyle = hovered ? checksSummaryLabelHoveredCombined : styles.checksSummaryLabel;
|
||||
const labelStyle = hovered
|
||||
? [styles.checksSummaryLabel, styles.checksSummaryLabelHovered]
|
||||
: styles.checksSummaryLabel;
|
||||
const iconUniProps = hovered ? foregroundColorMapping : foregroundMutedColorMapping;
|
||||
const icon = getForgePresentation(normalizeForge(forge)).icon;
|
||||
|
||||
@@ -670,10 +673,3 @@ const styles = StyleSheet.create((theme) => ({
|
||||
color: theme.colors.statusSuccess,
|
||||
},
|
||||
}));
|
||||
|
||||
const checksSummaryLabelHoveredCombined = [
|
||||
styles.checksSummaryLabel,
|
||||
styles.checksSummaryLabelHovered,
|
||||
];
|
||||
|
||||
const cardInfoTextHoveredCombined = [styles.cardInfoText, styles.cardInfoTextHovered];
|
||||
|
||||
Reference in New Issue
Block a user