small ui improvements

This commit is contained in:
Fabian Freund
2026-03-11 15:18:00 +01:00
parent 19ec600949
commit f2fbd24123
4 changed files with 7 additions and 4 deletions
@@ -319,7 +319,7 @@ final List<ToolbarButtonDefinition> toolbarButtonRegistry = [
ToolbarButtonDefinition( ToolbarButtonDefinition(
spec: duplicateTabToolbarButtonSpec, spec: duplicateTabToolbarButtonSpec,
label: 'Duplicate Tab', label: 'Duplicate Tab',
icon: MdiIcons.tabPlus, icon: MdiIcons.contentDuplicate,
builder: (scope, context, ref) { builder: (scope, context, ref) {
return scope.isPreview return scope.isPreview
? CloneTabButtonView(onPressed: () {}, onLongPress: () {}) ? CloneTabButtonView(onPressed: () {}, onLongPress: () {})
@@ -117,7 +117,10 @@ class ContextualToolbarView extends StatelessWidget {
child: Row( child: Row(
children: buttons children: buttons
.map( .map(
(button) => SizedBox(width: _minButtonWidth, child: button), (button) => SizedBox(
width: _minButtonWidth,
child: Center(child: button),
),
) )
.toList(), .toList(),
), ),
@@ -817,7 +817,7 @@ class _CloneTabExpansion extends ConsumerWidget {
return Theme( return Theme(
data: Theme.of(context).copyWith(dividerColor: Colors.transparent), data: Theme.of(context).copyWith(dividerColor: Colors.transparent),
child: ExpansionTile( child: ExpansionTile(
leading: const Icon(MdiIcons.tabPlus), leading: const Icon(MdiIcons.contentDuplicate),
title: const Text('Clone Tab'), title: const Text('Clone Tab'),
children: [ children: [
_buildSubTile( _buildSubTile(
@@ -358,7 +358,7 @@ class TabMenu extends HookConsumerWidget {
}, },
), ),
], ],
leadingIcon: const Icon(MdiIcons.tabPlus), leadingIcon: const Icon(MdiIcons.contentDuplicate),
child: const Text('Clone Tab'), child: const Text('Clone Tab'),
), ),
if (enableContainer && settings.showContainerUi) if (enableContainer && settings.showContainerUi)