You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Inline button theme colors and refine GhostButtonTheme
This commit simplifies the `ButtonThemeOverride` by inlining theme-dependent color variables and cleaning up logic within `GhostButtonTheme`.
### Key Changes:
* **Refactor Color Variables:**
* Removed local variables (`bgColor`, `textColor`, `iconColor`) in favor of direct ternary expressions within `OutlineButtonTheme` and `SecondaryButtonTheme`. This improves clarity on how colors react to the current `isDarkMode` state.
* **`GhostButtonTheme` Adjustments:**
* Removed redundant `WidgetState.disabled` check for the background decoration.
* Simplified `textStyle` by removing an identical `hovered` state override, falling back to the default style.
* Updated `iconTheme` to explicitly handle the `disabled` state color, ensuring consistency with the text styling.
0 commit comments