add long press actions on contextual buttons; move extension shortcut into contextual; disable reader view button in tab bar;
This commit is contained in:
@@ -78,7 +78,6 @@ class _TabBarLayoutSection extends StatelessWidget {
|
||||
children: [
|
||||
_TabBarPositionSection(),
|
||||
_TabBarLayoutModeSection(),
|
||||
_ShowExtensionShortcutTile(),
|
||||
_ShowContextualTabBarTile(),
|
||||
_CustomizeToolbarButtonsTile(),
|
||||
_AutoHideTabBarTile(),
|
||||
@@ -256,12 +255,6 @@ class _TabBarPreviewCard extends HookWidget {
|
||||
}
|
||||
|
||||
final mainToolbarActions = <Widget>[
|
||||
if (settings.showExtensionShortcut)
|
||||
IconButton(
|
||||
onPressed: () {},
|
||||
icon: const Icon(MdiIcons.puzzle),
|
||||
tooltip: 'Extensions',
|
||||
),
|
||||
if (showMainToolbarActionButtons) tabCountButton,
|
||||
if (showMainToolbarActionButtons) NavigationMenuButtonView(onTap: () {}),
|
||||
];
|
||||
@@ -639,34 +632,6 @@ class _CustomizeToolbarButtonsTile extends HookConsumerWidget {
|
||||
}
|
||||
}
|
||||
|
||||
class _ShowExtensionShortcutTile extends HookConsumerWidget {
|
||||
const _ShowExtensionShortcutTile();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final showExtensionShortcut = ref.watch(
|
||||
generalSettingsWithDefaultsProvider.select(
|
||||
(s) => s.showExtensionShortcut,
|
||||
),
|
||||
);
|
||||
|
||||
return SwitchListTile.adaptive(
|
||||
title: const Text('Show Extension Shortcut'),
|
||||
subtitle: const Text('Display an extension menu directly on the tab bar'),
|
||||
secondary: const Icon(MdiIcons.puzzleHeart),
|
||||
value: showExtensionShortcut,
|
||||
onChanged: (value) async {
|
||||
await ref
|
||||
.read(saveGeneralSettingsControllerProvider.notifier)
|
||||
.save(
|
||||
(currentSettings) =>
|
||||
currentSettings.copyWith.showExtensionShortcut(value),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _ShowQuickTabSwitcherBarTile extends HookConsumerWidget {
|
||||
const _ShowQuickTabSwitcherBarTile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user