2025-11-12 00:13:26 +08:00
|
|
|
import { createThemeStyles, createResponsiveThemeStyles } from '@/theme';
|
2025-11-11 18:48:54 +08:00
|
|
|
import { Dimensions } from 'react-native';
|
|
|
|
|
|
|
|
|
|
// const { width } = Dimensions.get('window');
|
|
|
|
|
// const BANNER_HEIGHT = width * 0.32534; // 保持 32.534% 的宽高比
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 创建主题样式
|
|
|
|
|
*/
|
|
|
|
|
export const styles = createThemeStyles((colors) => ({
|
|
|
|
|
container: {
|
|
|
|
|
backgroundColor: colors.background,
|
2025-11-12 00:13:26 +08:00
|
|
|
paddingTop: 5,
|
2025-11-11 18:48:54 +08:00
|
|
|
borderBottomWidth: 1,
|
|
|
|
|
borderBottomColor: colors.border,
|
|
|
|
|
},
|
|
|
|
|
scrollView: {
|
|
|
|
|
paddingHorizontal: 12,
|
|
|
|
|
},
|
|
|
|
|
menuItem: {
|
2025-11-12 00:13:26 +08:00
|
|
|
paddingHorizontal: 12,
|
|
|
|
|
paddingVertical: 5,
|
2025-11-11 18:48:54 +08:00
|
|
|
marginRight: 8,
|
2025-11-12 00:13:26 +08:00
|
|
|
borderRadius: 0,
|
|
|
|
|
backgroundColor: 'transparent',
|
2025-11-11 18:48:54 +08:00
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
elevation: 1,
|
|
|
|
|
shadowColor: colors.cardShadow,
|
|
|
|
|
shadowOffset: { width: 0, height: 1 },
|
|
|
|
|
shadowOpacity: 0.1,
|
|
|
|
|
shadowRadius: 2,
|
2025-11-12 00:13:26 +08:00
|
|
|
borderBottomColor: 'transparent',
|
|
|
|
|
borderBottomWidth: 2,
|
2025-11-11 18:48:54 +08:00
|
|
|
},
|
|
|
|
|
menuItemActive: {
|
2025-11-12 00:13:26 +08:00
|
|
|
// backgroundColor: `${colors.tint}15`, // 主题色 + 20% 透明度
|
2025-11-11 18:48:54 +08:00
|
|
|
elevation: 2,
|
|
|
|
|
shadowOpacity: 0.15,
|
2025-11-12 00:13:26 +08:00
|
|
|
borderBottomColor: colors.tint,
|
|
|
|
|
borderRadius: 0,
|
2025-11-11 18:48:54 +08:00
|
|
|
},
|
|
|
|
|
menuText: {
|
2025-11-12 00:13:26 +08:00
|
|
|
fontSize: 14,
|
2025-11-11 18:48:54 +08:00
|
|
|
color: colors.text,
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
},
|
|
|
|
|
menuTextActive: {
|
2025-11-12 00:13:26 +08:00
|
|
|
color: colors.tint,
|
|
|
|
|
},
|
|
|
|
|
menuIcon: {
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
marginBottom: 4,
|
2025-11-11 18:48:54 +08:00
|
|
|
},
|
|
|
|
|
}));
|
2025-11-12 00:13:26 +08:00
|
|
|
|
|
|
|
|
export const themeStyles = createResponsiveThemeStyles({
|
|
|
|
|
menuItemActive: {
|
|
|
|
|
backgroundColor: '',
|
|
|
|
|
},
|
|
|
|
|
}, {
|
|
|
|
|
menuItemActive: {
|
|
|
|
|
backgroundColor: '',
|
|
|
|
|
},
|
|
|
|
|
}, {
|
|
|
|
|
menuItemActive: {
|
|
|
|
|
backgroundColor: '',
|
|
|
|
|
},
|
|
|
|
|
});
|