add long press actions on contextual buttons; move extension shortcut into contextual; disable reader view button in tab bar;
This commit is contained in:
@@ -91,7 +91,6 @@ class _ContentViewingSection extends StatelessWidget {
|
||||
SettingSection(name: 'Content Viewing'),
|
||||
_PdfViewerTile(),
|
||||
_EnableReaderModeTile(),
|
||||
_ReaderModeInTabBarTile(),
|
||||
_EnforceReaderModeTile(),
|
||||
],
|
||||
);
|
||||
@@ -416,34 +415,6 @@ class _EnforceReaderModeTile extends HookConsumerWidget {
|
||||
}
|
||||
}
|
||||
|
||||
class _ReaderModeInTabBarTile extends HookConsumerWidget {
|
||||
const _ReaderModeInTabBarTile();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final tabBarReaderView = ref.watch(
|
||||
generalSettingsWithDefaultsProvider.select((s) => s.tabBarReaderView),
|
||||
);
|
||||
|
||||
return SwitchListTile.adaptive(
|
||||
title: const Text('Reader Mode in Tab Bar'),
|
||||
subtitle: const Text(
|
||||
'Show reader mode button in the tab bar instead of only in the tab menu',
|
||||
),
|
||||
secondary: const Icon(MdiIcons.bookHeart),
|
||||
value: tabBarReaderView,
|
||||
onChanged: (value) async {
|
||||
await ref
|
||||
.read(saveGeneralSettingsControllerProvider.notifier)
|
||||
.save(
|
||||
(currentSettings) =>
|
||||
currentSettings.copyWith.tabBarReaderView(value),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _PdfViewerTile extends HookConsumerWidget {
|
||||
const _PdfViewerTile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user