move favicon closer to url bar

This commit is contained in:
Fabian Freund
2026-07-08 07:18:16 +02:00
parent 6742aa4d29
commit 77c9cfd0e7
2 changed files with 10 additions and 1 deletions
@@ -611,6 +611,9 @@ class RailAppBarTitleView extends StatelessWidget {
children: [
ToolbarButton(
onTap: onSiteSettingsTap,
// Match the pinned extension icons' vertical spacing so the favicon
// sits equally close to the address field on both sides.
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0),
child: Stack(
clipBehavior: Clip.none,
children: [
@@ -25,12 +25,18 @@ class ToolbarButton extends StatelessWidget {
final VoidCallback? onDoubleTap;
final VoidCallback? onLongPress;
/// Padding around the icon. Defaults to the horizontal-bar spacing; the
/// vertical rail passes a tighter value so the favicon sits as close to the
/// address field as the pinned extension icons do.
final EdgeInsetsGeometry padding;
const ToolbarButton({
super.key,
required this.child,
this.onTap,
this.onDoubleTap,
this.onLongPress,
this.padding = const EdgeInsets.symmetric(horizontal: 8.0, vertical: 15.0),
});
@override
@@ -43,7 +49,7 @@ class ToolbarButton extends StatelessWidget {
onDoubleTap: onDoubleTap,
onLongPress: onLongPress,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 15.0),
padding: padding,
child: IconTheme(
data: IconThemeData(color: iconColor),
child: child,