This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
// Metro module 5109 (f5110).
import { Fonts } from "../../../Constants";
let c3074_1 = {
10: 10,
11: 11,
12: 12,
13: 13,
14: 14,
16: 16,
18: 17,
20: 20,
24: 25,
32: 34
};
let c3074_2 = {
10: 14,
11: 14,
12: 16,
13: 16,
14: 18,
16: 20,
18: 24,
20: 24,
24: 30,
32: 40
};
export default function createTextStyle(a0, a1, a2, a3) {
const fontSize = c3074_1[a2];
const r13 = {
fontFamily: a0,
fontSize,
lineHeight: c3074_2[a2]
};
if (a1 != null) {
r13.color = a1;
}
if (a3?.uppercase === true) {
r13.textTransform = "uppercase";
if (fontSize <= 14 && (a0 === Fonts.DISPLAY_EXTRABOLD || a0 === Fonts.DISPLAY_SEMIBOLD)) {
r13.letterSpacing = 0.2;
}
}
if (a3?.marginBottom != null) {
r13.marginBottom = a3.marginBottom;
}
return r13;
};