From ba06d4584ea5c8ca3dac021150679fc1a07978f6 Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Fri, 18 Sep 2026 11:14:41 +0100 Subject: [PATCH] feat(fillbar): bouton Settings sur la barrette (icone roue ou texte), reglable comme les autres Co-Authored-By: Claude Opus 5 --- delphi-backend/Source/PM.Bridge.pas | 10 +++++++++- index.html | 1 + js/app.js | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/delphi-backend/Source/PM.Bridge.pas b/delphi-backend/Source/PM.Bridge.pas index 5c7d9b6..ae7e54b 100644 --- a/delphi-backend/Source/PM.Bridge.pas +++ b/delphi-backend/Source/PM.Bridge.pas @@ -439,6 +439,7 @@ const LAZY_ID_OPEN = 105; LAZY_ID_ADD = 106; // nouvelle entree depuis la fenetre en avant (Ctrl+Shift+A) LAZY_ID_SEARCH = 107; // recherche rapide (Ctrl+Shift+Q) + LAZY_ID_SETTINGS = 108; // reglages, onglet Fill bar LAZY_MENU_ICONS = 1; // hors des valeurs d'opacite (25..100) du meme menu LAZY_MENU_SETTINGS = 2; // LE SONDAGE PLUTOT QUE TrackMouseEvent. La barrette a quatre fenetres @@ -462,7 +463,7 @@ const // Boutons affiches, dans l'ordre, et le choix icones/texte. Le X est toujours // la : c'est la seule facon de fermer la barrette la ou elle est. LAZY_BTNS_KEY = 'lazyButtons'; - LAZY_BTNS_DEFAULT = 'full,pwd,totp,add,search,open'; + LAZY_BTNS_DEFAULT = 'full,pwd,totp,add,search,open,settings'; LAZY_ICONS_KEY = 'lazyIcons'; LAZY_H = 40; @@ -1203,6 +1204,7 @@ begin LAZY_ID_ADD: LGlyph := #$E710; // Add LAZY_ID_SEARCH: LGlyph := #$E721; // Search LAZY_ID_OPEN: LGlyph := #$E8A7; // OpenInNewWindow + LAZY_ID_SETTINGS: LGlyph := #$E713; // Settings (roue) else LGlyph := #$E711; // Cancel (X) end; @@ -1386,6 +1388,11 @@ begin LAZY_ID_OPEN: if Assigned(FOnTrayRestore) then FOnTrayRestore(); LAZY_ID_ADD: FireNewEntryRequest; LAZY_ID_SEARCH: FireQuickSearchRequest; + LAZY_ID_SETTINGS: + begin + if Assigned(FOnTrayRestore) then FOnTrayRestore(); + if Assigned(FOnFillBarSettings) then FOnFillBarSettings(); + end; LAZY_ID_CLOSE: PostMessage(FMsgWindow, WM_LAZY_CLOSE, 0, 0); end; AMsg.Result := 0; @@ -1549,6 +1556,7 @@ begin // seule chose de l'application a l'ecran. Revenir au coffre ne doit pas // demander de retrouver l'icone du tray. AddButton('open', LAZY_ID_OPEN, 'Open', 'Open the vault', 56); + AddButton('settings', LAZY_ID_SETTINGS, 'Settings', 'Fill bar settings', 64); // Fermer la barrette sans passer par le menu du tray : elle flotte au-dessus // de tout, donc s'en debarrasser doit se faire la ou elle est. MakeButton(LAZY_ID_CLOSE, 'X', 'Close the fill bar', LX, 24); diff --git a/index.html b/index.html index 1162ee1..68b623d 100644 --- a/index.html +++ b/index.html @@ -762,6 +762,7 @@ +
diff --git a/js/app.js b/js/app.js index b7ed773..866748a 100644 --- a/js/app.js +++ b/js/app.js @@ -6703,7 +6703,7 @@ function fillBarRequest() { if (Bridge.active) window.location.href = 'cmd://fillbar/get'; } Bridge.onFillBar = function (st) { - const keys = (st.buttons || 'full,pwd,totp,add,search,open').split(','); + const keys = (st.buttons || 'full,pwd,totp,add,search,open,settings').split(','); $('#fbOn').checked = !!st.on; $$('.fb-btn').forEach(c => { c.checked = keys.includes(c.dataset.key); }); $('#fbStyle').value = st.icons ? 'icons' : 'text';