small ui improvements
This commit is contained in:
+1
-1
@@ -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: () {})
|
||||||
|
|||||||
+4
-1
@@ -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(),
|
||||||
),
|
),
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user