new gesture/toolbar actions

This commit is contained in:
Fabian Freund
2026-08-04 16:16:25 +02:00
parent dbfcd1daaa
commit 31b863427f
8 changed files with 89 additions and 2 deletions
@@ -162,6 +162,12 @@ enum GestureAction {
),
// Open
showHome(
'Home',
'Open the home screen',
Icons.home_outlined,
GestureActionCategory.open,
),
showHistory(
'History',
'Open browsing history',
@@ -176,6 +182,12 @@ enum GestureAction {
),
// App
toggleTabBar(
'Hide / Show Tab Bar',
'Hide the tab bar, or bring it back',
MdiIcons.dockBottom,
GestureActionCategory.app,
),
moveToBackground(
'Minimize',
'Send WebLibre to the background',
@@ -259,8 +259,10 @@ const _$GestureActionEnumMap = {
GestureAction.decreaseFontSize: 'decreaseFontSize',
GestureAction.toggleBookmark: 'toggleBookmark',
GestureAction.translatePage: 'translatePage',
GestureAction.showHome: 'showHome',
GestureAction.showHistory: 'showHistory',
GestureAction.showBookmarks: 'showBookmarks',
GestureAction.toggleTabBar: 'toggleTabBar',
GestureAction.moveToBackground: 'moveToBackground',
GestureAction.quitBrowser: 'quitBrowser',
};