Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 0e83ada

Browse files
authored
Update M3 IconButton unselected focused opacity (#117321)
* Bottom App Bar M3 background color fix * update test * test update * remove whitespace * Update IconButton unselected focused opacity * Delete generated_plugins.cmake
1 parent 9afaf6b commit 0e83ada

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tools/gen_defaults/data/icon_button.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"md.comp.icon-button.state-layer.size": 40.0,
1919
"md.comp.icon-button.unselected.focus.icon.color": "onSurfaceVariant",
2020
"md.comp.icon-button.unselected.focus.state-layer.color": "onSurfaceVariant",
21-
"md.comp.icon-button.unselected.focus.state-layer.opacity": "md.sys.state.hover.state-layer-opacity",
21+
"md.comp.icon-button.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity",
2222
"md.comp.icon-button.unselected.hover.icon.color": "onSurfaceVariant",
2323
"md.comp.icon-button.unselected.hover.state-layer.color": "onSurfaceVariant",
2424
"md.comp.icon-button.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity",

packages/flutter/lib/src/material/icon_button.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ class _IconButtonDefaultsM3 extends ButtonStyle {
10111011
return _colors.onSurfaceVariant.withOpacity(0.08);
10121012
}
10131013
if (states.contains(MaterialState.focused)) {
1014-
return _colors.onSurfaceVariant.withOpacity(0.08);
1014+
return _colors.onSurfaceVariant.withOpacity(0.12);
10151015
}
10161016
if (states.contains(MaterialState.pressed)) {
10171017
return _colors.onSurfaceVariant.withOpacity(0.12);

0 commit comments

Comments
 (0)