diff --git a/app/gui/NavigableToolButton.qml b/app/gui/NavigableToolButton.qml index 9839196c..97c0ea90 100644 --- a/app/gui/NavigableToolButton.qml +++ b/app/gui/NavigableToolButton.qml @@ -8,8 +8,12 @@ ToolButton { activeFocusOnTab: true icon.source: iconSource - icon.width: background.width - icon.height: background.height + // Size the icon from the button's height rather than its background. + // Material's background spans the full button width when the content + // isn't square, so binding the icon to it feeds the button's width back + // into its own implicit width and the toolbar layout grows without bound. + icon.width: height / 2 + icon.height: height / 2 // This determines the size of the Material highlight. We increase it // from the default because we use larger than normal icons for TV readability.