Skip to content

Commit

Permalink
rename isWindowMain to isMainWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-Samoticha committed Aug 15, 2023
1 parent 3e50ae4 commit 47e6974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/buttons/push_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@ class PushButtonState extends State<PushButton>
BoxDecoration _getBoxDecoration() {
// If the window isn’t currently the main window (that is, it is not in
// focus), make the button look as if it was a secondary button.
final isWindowMain = WindowMainStateListener.instance.isMainWindow;
final isMainWindow = WindowMainStateListener.instance.isMainWindow;

return _BoxDecorationBuilder.buildBoxDecoration(
accentColor: _accentColor,
isEnabled: widget.enabled,
isDarkModeEnabled: MacosTheme.of(context).brightness.isDark,
isSecondary: !isWindowMain || (widget.secondary ?? false),
isSecondary: !isMainWindow || (widget.secondary ?? false),
);
}

Expand Down

0 comments on commit 47e6974

Please sign in to comment.