Skip to content

Commit

Permalink
YaruTitleBar: set an opaque background when the window is inactive (#599
Browse files Browse the repository at this point in the history
)

Fixes: #577
  • Loading branch information
jpnurmi committed Feb 5, 2023
1 parent 7d1493c commit f9d298e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/widgets/yaru_title_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class YaruTitleBar extends StatelessWidget implements PreferredSizeWidget {
};
final defaultBackgroundColor = MaterialStateProperty.resolveWith((states) {
if (!states.contains(MaterialState.focused)) {
return Colors.transparent;
return theme.colorScheme.background;
}
return light ? YaruColors.titleBarLight : YaruColors.titleBarDark;
});
Expand Down

0 comments on commit f9d298e

Please sign in to comment.