feat(fillbar): option fond transparent (cle de couleur), l'opacite reste sur les boutons
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -6710,6 +6710,7 @@ Bridge.onFillBar = function (st) {
|
||||
$$('.fb-btn').forEach(c => { c.checked = keys.includes(c.dataset.key); });
|
||||
$('#fbStyle').value = st.icons ? 'icons' : 'text';
|
||||
$('#fbAlpha').value = String(parseInt(st.alpha, 10) || 60);
|
||||
$('#fbClear').checked = !!st.clear;
|
||||
};
|
||||
// Clic droit sur la barrette -> "Fill bar settings..." : l'exe a deja ramene la
|
||||
// fenetre. Les reglages s'ouvrent PAR-DESSUS une entree en cours d'edition,
|
||||
@@ -6728,7 +6729,8 @@ function fillBarPush() {
|
||||
+ '?on=' + ($('#fbOn').checked ? '1' : '0')
|
||||
+ '&buttons=' + encodeURIComponent(keys.join(',') || 'none')
|
||||
+ '&icons=' + ($('#fbStyle').value === 'icons' ? '1' : '0')
|
||||
+ '&alpha=' + encodeURIComponent($('#fbAlpha').value);
|
||||
+ '&alpha=' + encodeURIComponent($('#fbAlpha').value)
|
||||
+ '&clear=' + ($('#fbClear').checked ? '1' : '0');
|
||||
}
|
||||
|
||||
function openSettings() {
|
||||
@@ -8242,7 +8244,7 @@ async function init() {
|
||||
if (syncTest) syncTest.addEventListener('click', syncTestConnection);
|
||||
const syncQr = document.getElementById('syncQrBtn');
|
||||
if (syncQr) syncQr.addEventListener('click', syncQrToggle);
|
||||
['#fbOn', '#fbStyle', '#fbAlpha'].forEach(sel => {
|
||||
['#fbOn', '#fbStyle', '#fbAlpha', '#fbClear'].forEach(sel => {
|
||||
const el = $(sel);
|
||||
if (el) el.addEventListener('change', fillBarPush);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user