2026-07-24 13:15:31 +05:30

95 lines
1.9 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { ThemeColors } from '../../theme';
export const getStyles = (colors: ThemeColors) =>
StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background,
},
headerRightBtn: {
paddingHorizontal: 12,
paddingVertical: 6,
},
clearAllText: {
fontSize: 14,
fontWeight: '600',
color: colors.icon,
},
listContent: {
paddingVertical: 8,
},
card: {
backgroundColor: colors.surface,
paddingVertical: 14,
paddingHorizontal: 16,
borderBottomWidth: 1,
borderBottomColor: colors.border,
flexDirection: 'row',
alignItems: 'flex-start',
},
unreadCard: {
backgroundColor: `${colors.icon}06`,
},
iconWrapper: {
width: 36,
height: 36,
borderRadius: 18,
justifyContent: 'center',
alignItems: 'center',
marginRight: 12,
marginTop: 2,
},
contentContainer: {
flex: 1,
},
titleRow: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 3,
},
title: {
fontSize: 14,
fontWeight: '600',
color: colors.text,
flex: 1,
},
unreadDot: {
width: 6,
height: 6,
borderRadius: 3,
backgroundColor: '#EF4444',
marginLeft: 6,
},
description: {
fontSize: 13,
color: colors.textSecondary,
lineHeight: 18,
marginBottom: 6,
},
time: {
fontSize: 11,
color: colors.textMuted,
},
emptyContainer: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingHorizontal: 32,
paddingTop: 100,
},
emptyTitle: {
fontSize: 16,
fontWeight: '600',
color: colors.text,
marginTop: 16,
marginBottom: 6,
},
emptySubtitle: {
fontSize: 13,
color: colors.textMuted,
textAlign: 'center',
lineHeight: 18,
},
});