Skip to content

Commit f64d8af

Browse files
committed
feat: add "toggle navbar" to view menu
1 parent 9646f8f commit f64d8af

11 files changed

Lines changed: 24 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Configure window opacity for focused and blurred states. Windows become semi-tra
7070

7171
### Navigation Bar
7272

73-
A minimal 40px navigation bar provides essential controls: back, forward, reload, URL display, mute toggle, and find-in-page — without the bloat of a full browser. The navigation bar can also be disabled by turning off the `frame` in the "Preferences".
73+
A minimal 40px navigation bar provides essential controls: back, forward, reload, URL display, mute toggle, and find-in-page — without the bloat of a full browser. The navigation bar can also be disabled by turning it off in the "Preferences".
7474

7575
<p align='center'>
7676
<img src="docs/img/readme/navbar.png" alt='Page Management'>
@@ -106,7 +106,7 @@ Fine-tune how your windows look and behave:
106106
- **Position** — 9 preset screen positions (corners, edges, center)
107107
- **Size** — Custom default width and height
108108
- **Opacity** — Separate focus and blur opacity levels
109-
- **Frame** — Show or hide the native window frame
109+
- **Navbar** — Show or hide the navigation bar for a more minimal look
110110
- **Shortcuts** — Global hotkeys to toggle visibility from anywhere
111111
- **Shared bounds** — All pages share the same window size and position
112112

src/locale/de.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const de: Strings = {
6363
handbook: 'Handbook',
6464
listPages: 'Seiten Auflisten',
6565
muteUnmute: 'Ton Aktivieren/Deaktivieren',
66+
navbar: 'Navigationsleiste',
6667
quickMenu: 'Schnellmenü',
6768
},
6869

@@ -223,7 +224,7 @@ export const de: Strings = {
223224
clipboardUrlSession: 'Zwischenablage-URL-Sitzung',
224225
clipboardUrlSessionDesc: 'Legt die Sitzung fest, die für die Zwischenablage-URL-Seite verwendet wird. Leer lassen, um die Standardsitzung zu verwenden.',
225226

226-
showFrame: 'Titelleiste anzeigen',
227+
showNavbar: 'Navigationsleiste anzeigen',
227228
backgroundColor: 'Hintergrundfarbe',
228229
backgroundColorDesc: 'Hintergrundfarbe für ladende Fenster.',
229230
focusOpacity: 'Deckkraft bei Fokus',

src/locale/en.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const en = {
6363
handbook: 'Handbook',
6464
listPages: 'List Pages',
6565
muteUnmute: 'Mute / Unmute',
66+
navbar: 'Navbar',
6667
},
6768

6869
dialog: {
@@ -222,7 +223,7 @@ export const en = {
222223
clipboardUrlSession: 'Clipboard URL session',
223224
clipboardUrlSessionDesc: 'Set the session used by the Clipboard URL page. Leave empty to use the default session.',
224225

225-
showFrame: 'Show frame',
226+
showNavbar: 'Show navbar',
226227
backgroundColor: 'Background color',
227228
backgroundColorDesc: 'Background color for loading windows.',
228229
focusOpacity: 'Opacity when focused',

src/locale/es.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const es: Strings = {
6363
handbook: 'Handbook',
6464
listPages: 'Listar Páginas',
6565
muteUnmute: 'Activar/Desactivar Sonido',
66+
navbar: 'Barra de Navegación',
6667
quickMenu: 'Menú Rápido',
6768
},
6869

@@ -223,7 +224,7 @@ export const es: Strings = {
223224
clipboardUrlSession: 'Sesión de URL del portapapeles',
224225
clipboardUrlSessionDesc: 'Define la sesión utilizada por la página de URL del portapapeles. Dejar vacío para usar la sesión predeterminada.',
225226

226-
showFrame: 'Mostrar barra de título',
227+
showNavbar: 'Mostrar barra de navegación',
227228
backgroundColor: 'Color de fondo',
228229
backgroundColorDesc: 'Color de fondo para ventanas en carga.',
229230
focusOpacity: 'Opacidad cuando está enfocado',

src/locale/fr.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const fr: Strings = {
6363
handbook: 'Handbook',
6464
listPages: 'Lister les Pages',
6565
muteUnmute: 'Activer/Désactiver le Son',
66+
navbar: 'Barre de Navigation',
6667
quickMenu: 'Menu Rapide',
6768
},
6869

@@ -223,7 +224,7 @@ export const fr: Strings = {
223224
clipboardUrlSession: 'Session de l\'URL du presse-papiers',
224225
clipboardUrlSessionDesc: 'Définit la session utilisée par la page URL du presse-papiers. Laisser vide pour utiliser la session par défaut.',
225226

226-
showFrame: 'Afficher la barre de titre',
227+
showNavbar: 'Afficher la barre de navigation',
227228
backgroundColor: 'Couleur d\'arrière-plan',
228229
backgroundColorDesc: 'Couleur d\'arrière-plan pour les fenêtres en chargement.',
229230
focusOpacity: 'Opacité quand focalisé',

src/locale/it.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const it: Strings = {
6363
handbook: 'Handbook',
6464
listPages: 'Elenco Pagine',
6565
muteUnmute: 'Attiva/Disattiva Audio',
66+
navbar: 'Barra di Navigazione',
6667
quickMenu: 'Menu Rapido',
6768
},
6869

@@ -223,7 +224,7 @@ export const it: Strings = {
223224
clipboardUrlSession: 'Sessione URL degli appunti',
224225
clipboardUrlSessionDesc: 'Imposta la sessione utilizzata dalla pagina URL degli appunti. Lasciare vuoto per utilizzare la sessione predefinita.',
225226

226-
showFrame: 'Mostra barra del titolo',
227+
showNavbar: 'Mostra barra di navigazione',
227228
backgroundColor: 'Colore di sfondo',
228229
backgroundColorDesc: 'Colore di sfondo per le finestre in caricamento.',
229230
focusOpacity: 'Opacità con focus',

src/locale/pt-BR.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const ptBR: Strings = {
6363
handbook: 'Handbook',
6464
listPages: 'Listar Páginas',
6565
muteUnmute: 'Ativar/Desativar Som',
66+
navbar: 'Barra de Navegação',
6667
quickMenu: 'Menu Rápido',
6768
},
6869

@@ -223,7 +224,7 @@ export const ptBR: Strings = {
223224
clipboardUrlSession: 'Sessão da URL da área de transferência',
224225
clipboardUrlSessionDesc: 'Define a sessão utilizada pela página de URL da área de transferência. Deixe vazio para usar a sessão padrão.',
225226

226-
showFrame: 'Mostrar barra de título',
227+
showNavbar: 'Mostrar barra de navegação',
227228
backgroundColor: 'Cor de fundo',
228229
backgroundColorDesc: 'Cor de fundo para janelas em carregamento.',
229230
focusOpacity: 'Opacidade quando focado',

src/locale/pt-PT.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const ptPT: Strings = {
6363
handbook: 'Handbook',
6464
listPages: 'Listar Páginas',
6565
muteUnmute: 'Ativar/Desativar Som',
66+
navbar: 'Barra de Navegação',
6667
quickMenu: 'Menu Rápido',
6768
},
6869

@@ -223,7 +224,7 @@ export const ptPT: Strings = {
223224
clipboardUrlSession: 'Sessão do URL da área de transferência',
224225
clipboardUrlSessionDesc: 'Define a sessão utilizada pela página de URL da área de transferência. Deixe vazio para utilizar a sessão predefinida.',
225226

226-
showFrame: 'Mostrar barra de título',
227+
showNavbar: 'Mostrar barra de navegação',
227228
backgroundColor: 'Cor de fundo',
228229
backgroundColorDesc: 'Cor de fundo para janelas em carregamento.',
229230
focusOpacity: 'Opacidade com foco',

src/locale/ru.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const ru: Strings = {
6363
handbook: 'Handbook',
6464
listPages: 'Список Страниц',
6565
muteUnmute: 'Включить/Выключить Звук',
66+
navbar: 'Панель Навигации',
6667
quickMenu: 'Быстрое Меню',
6768
},
6869

@@ -223,7 +224,7 @@ export const ru: Strings = {
223224
clipboardUrlSession: 'Сессия URL из буфера обмена',
224225
clipboardUrlSessionDesc: 'Укажите сессию, используемую страницей URL из буфера обмена. Оставьте пустым для использования сессии по умолчанию.',
225226

226-
showFrame: 'Показывать заголовок окна',
227+
showNavbar: 'Показывать панель навигации',
227228
backgroundColor: 'Цвет фона',
228229
backgroundColorDesc: 'Цвет фона для загружающихся окон.',
229230
focusOpacity: 'Прозрачность в фокусе',

src/service/MenuService.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ class MenuService {
119119
if (currentPageSubmenu) {
120120
AppState.viewContextMenu = [
121121
{ label: s.openAnonymously, click: () => { FrameService.reopenAnonymously(); } },
122+
{
123+
type: 'checkbox', label: s.navbar,
124+
checked: !!Storage.getSettings(Settings.SHOW_FRAME),
125+
click: () => { FrameService.toggleNavbar(); },
126+
},
122127
{ type: 'separator' },
123128
{ label: s.window, submenu: currentPageSubmenu },
124129
{ label: s.handbook, submenu: windowMenuItems },

0 commit comments

Comments
 (0)