Skip to content

Commit 962dda8

Browse files
TargetMisserCopilot
andcommitted
fix: remove orange shadow borders on cards in dark mode (v1.3.3)
shadowColor: c.primary caused visible orange elevation shadows on Android in dark mode, making cards appear to have orange borders. Fixed by using black shadow in dark mode and orange only in light mode. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 745ee40 commit 962dda8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ android {
9292
applicationId 'com.anonymous.FlightWorkApp'
9393
minSdkVersion rootProject.ext.minSdkVersion
9494
targetSdkVersion rootProject.ext.targetSdkVersion
95-
versionCode 4
96-
versionName "1.3.2"
95+
versionCode 5
96+
versionName "1.3.3"
9797

9898
buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
9999
}

src/screens/HomeScreen.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,29 +436,29 @@ function makeStyles(c: ThemeColors) {
436436
return StyleSheet.create({
437437
hiddenWV: { height: 1, width: 1, opacity: 0, position: 'absolute', top: -100 },
438438
topRow: { flexDirection: 'row', gap: 12, padding: 16, paddingBottom: 8 },
439-
weatherCard: { flex: 1, backgroundColor: c.card, borderRadius: 18, padding: 16, alignItems: 'center', shadowColor: c.primary, shadowOpacity: 0.12, shadowRadius: 12, elevation: 4, borderWidth: 1, borderColor: c.glassBorder },
439+
weatherCard: { flex: 1, backgroundColor: c.card, borderRadius: 18, padding: 16, alignItems: 'center', shadowColor: c.isDark ? '#000000' : c.primary, shadowOpacity: 0.12, shadowRadius: 12, elevation: 4, borderWidth: 1, borderColor: c.glassBorder },
440440
weatherEmoji: { fontSize: 28, marginBottom: 4 },
441441
weatherTemp: { fontSize: 28, fontWeight: '700', color: c.primaryDark },
442442
weatherDesc: { fontSize: 11, color: c.textSub, textAlign: 'center', marginTop: 2 },
443-
dateCard: { width: 90, backgroundColor: c.primaryDark, borderRadius: 18, padding: 14, alignItems: 'center', justifyContent: 'center', shadowColor: c.primary, shadowOpacity: 0.30, shadowRadius: 12, elevation: 6 },
443+
dateCard: { width: 90, backgroundColor: c.primaryDark, borderRadius: 18, padding: 14, alignItems: 'center', justifyContent: 'center', shadowColor: c.isDark ? '#000000' : c.primary, shadowOpacity: 0.30, shadowRadius: 12, elevation: 6 },
444444
dateToday: { fontSize: 10, color: 'rgba(255,255,255,0.6)', letterSpacing: 1.5, fontWeight: '700' },
445445
dateNum: { fontSize: 36, fontWeight: '700', color: '#fff', lineHeight: 40 },
446446
dateMonth: { fontSize: 12, color: 'rgba(255,255,255,0.7)', marginTop: 2 },
447447
sectionTitle: { fontSize: 13, fontWeight: '700', color: c.textSub, letterSpacing: 0.5, marginHorizontal: 16, marginTop: 16, marginBottom: 8 },
448-
shiftCard: { backgroundColor: c.card, borderRadius: 18, marginHorizontal: 16, padding: 16, flexDirection: 'row', gap: 14, shadowColor: c.primary, shadowOpacity: 0.10, shadowRadius: 12, elevation: 4, minHeight: 90, borderWidth: 1, borderColor: c.glassBorder },
448+
shiftCard: { backgroundColor: c.card, borderRadius: 18, marginHorizontal: 16, padding: 16, flexDirection: 'row', gap: 14, shadowColor: c.isDark ? '#000000' : c.primary, shadowOpacity: 0.10, shadowRadius: 12, elevation: 4, minHeight: 90, borderWidth: 1, borderColor: c.glassBorder },
449449
shiftStrip: { width: 4, borderRadius: 2, backgroundColor: c.primary, marginRight: 2 },
450450
shiftBadgeRow: { flexDirection: 'row', marginBottom: 8 },
451451
inProgressBadge: { backgroundColor: '#D1FAE5', paddingHorizontal: 10, paddingVertical: 3, borderRadius: 20 },
452452
inProgressText: { fontSize: 10, fontWeight: '700', color: '#059669' },
453453
shiftTitle: { fontSize: 17, fontWeight: '700', color: c.primaryDark, marginBottom: 4 },
454454
shiftTime: { fontSize: 22, fontWeight: '700', color: c.primary, marginBottom: 4 },
455-
timelineCard: { backgroundColor: c.card, borderRadius: 18, marginHorizontal: 16, marginTop: 12, padding: 16, shadowColor: c.primary, shadowOpacity: 0.08, shadowRadius: 10, elevation: 3, borderWidth: 1, borderColor: c.glassBorder },
455+
timelineCard: { backgroundColor: c.card, borderRadius: 18, marginHorizontal: 16, marginTop: 12, padding: 16, shadowColor: c.isDark ? '#000000' : c.primary, shadowOpacity: 0.08, shadowRadius: 10, elevation: 3, borderWidth: 1, borderColor: c.glassBorder },
456456
restRow: { flexDirection: 'row', alignItems: 'center' },
457457
restText: { fontSize: 18, fontWeight: '700', color: '#10b981' },
458458
emptyShift: { color: c.textSub, fontSize: 15, lineHeight: 24, textAlign: 'center', flex: 1 },
459-
uploadToggle: { flexDirection: 'row', alignItems: 'center', gap: 10, marginHorizontal: 16, marginTop: 16, backgroundColor: c.card, borderRadius: 18, paddingHorizontal: 16, paddingVertical: 14, shadowColor: c.primary, shadowOpacity: 0.08, shadowRadius: 8, elevation: 3, borderWidth: 1, borderColor: c.glassBorder },
459+
uploadToggle: { flexDirection: 'row', alignItems: 'center', gap: 10, marginHorizontal: 16, marginTop: 16, backgroundColor: c.card, borderRadius: 18, paddingHorizontal: 16, paddingVertical: 14, shadowColor: c.isDark ? '#000000' : c.primary, shadowOpacity: 0.08, shadowRadius: 8, elevation: 3, borderWidth: 1, borderColor: c.glassBorder },
460460
uploadToggleText: { flex: 1, fontSize: 15, fontWeight: '600', color: c.primaryDark },
461-
uploadSection: { marginHorizontal: 16, backgroundColor: c.card, borderRadius: 18, padding: 16, marginTop: 2, shadowColor: c.primary, shadowOpacity: 0.06, shadowRadius: 6, elevation: 2, borderWidth: 1, borderColor: c.glassBorder },
461+
uploadSection: { marginHorizontal: 16, backgroundColor: c.card, borderRadius: 18, padding: 16, marginTop: 2, shadowColor: c.isDark ? '#000000' : c.primary, shadowOpacity: 0.06, shadowRadius: 6, elevation: 2, borderWidth: 1, borderColor: c.glassBorder },
462462
uploadDesc: { fontSize: 13, color: c.textSub, lineHeight: 19, marginBottom: 14 },
463463
scanBtn: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', backgroundColor: c.primaryDark, borderRadius: 12, paddingVertical: 13, paddingHorizontal: 20 },
464464
scanBtnText: { color: '#fff', fontWeight: '700', fontSize: 15 },

0 commit comments

Comments
 (0)