diff --git a/lib/app/widgets/atoms/round_icon_button.dart b/lib/app/widgets/atoms/round_icon_button.dart index 7cb1a376..4b0e57f6 100644 --- a/lib/app/widgets/atoms/round_icon_button.dart +++ b/lib/app/widgets/atoms/round_icon_button.dart @@ -36,13 +36,16 @@ class RoundIconButton extends StatelessWidget { final theme = Theme.of(context); final colorScheme = theme.colorScheme; final bgColor = Color.alphaBlend( - backgroundColor ?? Colors.transparent, colorScheme.primary); + backgroundColor ?? Colors.transparent, + colorScheme.secondary, + ); final fgColor = Color.alphaBlend( foregroundColor ?? Colors.transparent, (ThemeData.estimateBrightnessForColor(bgColor) == Brightness.light ? Colors.black : Colors.white), ); + debugPrint('fgColor: $fgColor, bgColor: $bgColor'); return ElevatedButton( style: ElevatedButton.styleFrom( padding: EdgeInsets.zero, @@ -53,7 +56,7 @@ class RoundIconButton extends StatelessWidget { onPressed: onPressed, child: IconTheme.merge( child: icon, - data: IconThemeData(size: size / 2), + data: IconThemeData(size: size / 2, color: fgColor), ), ); } diff --git a/lib/app/widgets/cards/dynamic_action_card_mini.dart b/lib/app/widgets/cards/dynamic_action_card_mini.dart index d33b317a..646357b5 100644 --- a/lib/app/widgets/cards/dynamic_action_card_mini.dart +++ b/lib/app/widgets/cards/dynamic_action_card_mini.dart @@ -115,7 +115,7 @@ class DynamicActionCardMini extends StatelessWidget { color: Theme.of(context) .colorScheme .onSurface - .withOpacity(0.3), + .withValues(alpha: 0.3), ), child: starred ? starredIcon ?? @@ -204,4 +204,4 @@ class RectClipper extends CustomClipper { bool shouldReclip(covariant RectClipper oldClipper) => oldClipper.size.width != size.width || oldClipper.size.height != size.height; -} +} \ No newline at end of file