Skip to content

Commit

Permalink
YaruPopupMenuButton: sync border with OutlinedButton (#539)
Browse files Browse the repository at this point in the history
* YaruPopupMenuButton: sync border with OutlinedButton

Ref: #244

* Update goldens
  • Loading branch information
jpnurmi committed Jan 18, 2023
1 parent 7565d9a commit 1776e0f
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/src/controls/yaru_popup_menu_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,19 @@ class _YaruPopupDecoration extends StatelessWidget {

@override
Widget build(BuildContext context) {
final side = OutlinedButtonTheme.of(context).style?.side?.resolve({});
return DefaultTextStyle(
style: TextStyle(
color: Theme.of(context).colorScheme.onSurface,
fontWeight: FontWeight.w500,
),
child: Container(
padding: childPadding,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(kYaruButtonRadius),
border: Border.all(color: Theme.of(context).dividerColor),
decoration: ShapeDecoration(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(kYaruButtonRadius),
side: side ?? BorderSide(color: Theme.of(context).dividerColor),
),
),
child: Row(
mainAxisSize: MainAxisSize.min,
Expand Down
Binary file modified test/controls/goldens/yaru_popup_menu_item-checked-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/controls/goldens/yaru_popup_menu_item-checked-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/controls/goldens/yaru_popup_menu_item-unchecked-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/controls/goldens/yaru_popup_menu_item-unchecked-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1776e0f

Please sign in to comment.