feat(chat): enhance chat settings and message bubble styles
All checks were successful
Frontend CI / ota-android (push) Successful in 12m37s
Frontend CI / build-and-push-web (push) Successful in 22m42s
Frontend CI / build-android-apk (push) Successful in 57m42s

- Introduced dynamic chat settings for font size and message bubble radius, improving user customization.
- Updated ChatScreen styles to support dynamic themes and responsive layouts.
- Refactored bubble styles to utilize dynamic properties for better visual consistency.
- Simplified chat settings management by integrating Zustand store for state management.

This update significantly enhances the chat interface and user experience by allowing personalized settings and improved visual elements.
This commit is contained in:
lafay
2026-04-01 16:30:44 +08:00
parent c771bd9755
commit 72842352d9
14 changed files with 507 additions and 109 deletions

View File

@@ -132,10 +132,10 @@ function createImageGridStyles(colors: AppColors) {
aspectRatio: 1,
},
gridItem2: {
width: '49%',
width: '48.5%',
},
gridItem3: {
width: '32.5%',
width: '31.8%',
},
masonryContainer: {
flexDirection: 'row',

View File

@@ -12,7 +12,7 @@ export interface Step {
title: string;
}
interface StepIndicatorProps {
export interface StepIndicatorProps {
steps: Step[];
currentStep: number;
containerStyle?: ViewStyle;

View File

@@ -201,7 +201,7 @@ export const VerificationCodeInput: React.FC<VerificationCodeInputProps> = ({
};
function createStyles(colors: AppColors) {
return {
return StyleSheet.create({
container: {
alignItems: 'center',
justifyContent: 'center',
@@ -225,7 +225,7 @@ function createStyles(colors: AppColors) {
},
cellFocused: {
borderColor: colors.primary.main,
backgroundColor: `${colors.primary.main}10`, // 10% 透明度的主色
backgroundColor: `${colors.primary.main}10`,
},
cellFilled: {
borderColor: colors.primary.main,
@@ -250,7 +250,7 @@ function createStyles(colors: AppColors) {
backgroundColor: colors.primary.main,
borderRadius: 1,
},
};
});
}
export default VerificationCodeInput;