refactor: Migrate to Tweakcn themes and enhance UI consistency
- Replaced references to AppColorPalettes with TweakcnThemes across various files to standardize theme usage. - Updated the AppTheme and AppColorTokens to utilize TweakcnThemeDefinition for improved theme management. - Adjusted UI components in ChatPage, ChatsDrawer, AppCustomizationPage, and ProfilePage to align with the new theme structure, ensuring consistent styling and color application. - Removed the deprecated color_palettes.dart file to streamline the theme architecture.
This commit is contained in:
@@ -293,6 +293,8 @@ class ConduitCard extends StatelessWidget {
|
||||
final bool isSelected;
|
||||
final bool isElevated;
|
||||
final bool isCompact;
|
||||
final Color? backgroundColor;
|
||||
final Color? borderColor;
|
||||
|
||||
const ConduitCard({
|
||||
super.key,
|
||||
@@ -302,6 +304,8 @@ class ConduitCard extends StatelessWidget {
|
||||
this.isSelected = false,
|
||||
this.isElevated = false,
|
||||
this.isCompact = false,
|
||||
this.backgroundColor,
|
||||
this.borderColor,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -317,14 +321,14 @@ class ConduitCard extends StatelessWidget {
|
||||
? context.conduitTheme.buttonPrimary.withValues(
|
||||
alpha: Alpha.highlight,
|
||||
)
|
||||
: context.conduitTheme.cardBackground,
|
||||
: backgroundColor ?? context.conduitTheme.cardBackground,
|
||||
borderRadius: BorderRadius.circular(AppBorderRadius.card),
|
||||
border: Border.all(
|
||||
color: isSelected
|
||||
? context.conduitTheme.buttonPrimary.withValues(
|
||||
alpha: Alpha.standard,
|
||||
)
|
||||
: context.conduitTheme.cardBorder,
|
||||
: borderColor ?? context.conduitTheme.cardBorder,
|
||||
width: BorderWidth.standard,
|
||||
),
|
||||
boxShadow: isElevated ? ConduitShadows.card(context) : null,
|
||||
|
||||
Reference in New Issue
Block a user