From c6325f1859af217dd8cfe400ed684f4081c20424 Mon Sep 17 00:00:00 2001 From: yoannmultigaming Date: Thu, 19 Nov 2026 20:53:36 +0100 Subject: [PATCH] APmanageur Wi-Fi V1.0 --- index.html | 100 +++++++++++++++++++++++++++++++++++++---------- themes/light.css | 17 ++++++-- themes/macos.css | 14 +++++++ themes/winxp.css | 7 ++++ 4 files changed, 113 insertions(+), 25 deletions(-) diff --git a/index.html b/index.html index 8b3d44a..6813bf7 100644 --- a/index.html +++ b/index.html @@ -431,20 +431,85 @@ border: 1px solid var(--line) } - button[style*="var(--blue)"], button[style*="background: var(--blue)"], button[style*="background:var(--blue)"] { color: var(--blue-text, #071326); } + button.secondary[style*="color:var(--blue)"], + button.secondary[style*="color: var(--blue)"], + button.secondary[style*="border-color:var(--blue)"], + button.secondary[style*="border-color: var(--blue)"] { + color: var(--blue) !important; + } - button.backup-prov-btn, - .backup-prov-btn, - button.backup-prov-btn[style*="var(--blue)"], - button.backup-prov-btn:hover { + /* Boutons de sélection du fournisseur de stockage distant */ + .backup-prov-btn { + background: var(--panel2) !important; + border: 1px solid var(--line) !important; + color: var(--text) !important; + transition: all .15s ease; + user-select: none; + } + .backup-prov-btn span { + color: inherit !important; + } + .backup-prov-btn:hover:not(.active) { + background: var(--panel) !important; + border-color: var(--blue) !important; + color: var(--text) !important; + } + .backup-prov-btn.active { + border: 2px solid var(--blue) !important; + box-shadow: 0 0 0 1px var(--blue) !important; + font-weight: 700 !important; + background: rgba(92, 167, 255, 0.22) !important; color: #ffffff !important; } - button.backup-prov-btn span { - color: #ffffff !important; + .backup-prov-btn.active span { + color: inherit !important; + } + + /* Adaptation pour les thèmes clairs (Light, Windows XP, macOS Clair) */ + html[data-theme="light"] .backup-prov-btn, + html[data-theme="winxp"] .backup-prov-btn, + html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn, + html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn { + background: var(--panel2) !important; + border-color: var(--line) !important; + color: var(--text) !important; + } + html[data-theme="light"] .backup-prov-btn span, + html[data-theme="winxp"] .backup-prov-btn span, + html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn span, + html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn span { + color: var(--text) !important; + } + html[data-theme="light"] .backup-prov-btn.active, + html[data-theme="winxp"] .backup-prov-btn.active, + html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn.active, + html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn.active { + background: rgba(30, 110, 240, 0.12) !important; + border-color: var(--blue) !important; + color: var(--blue) !important; + } + html[data-theme="light"] .backup-prov-btn.active span, + html[data-theme="winxp"] .backup-prov-btn.active span, + html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn.active span, + html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn.active span { + color: var(--blue) !important; + } + + /* Thème Hacker */ + html[data-theme="hacker"] .backup-prov-btn.active { + background: rgba(0, 255, 65, 0.25) !important; + border-color: #00ff41 !important; + color: #00ff41 !important; + } + /* Thème Futuriste */ + html[data-theme="futuristic"] .backup-prov-btn.active { + background: rgba(0, 240, 255, 0.22) !important; + border-color: #00f0ff !important; + color: #e6f6ff !important; } #btnAuthPasskey { @@ -11611,20 +11676,13 @@ ${vpnBadgeTopo} }); document.querySelectorAll('.backup-prov-btn').forEach(btn => { const isSelected = (btn.getAttribute('data-provider') === prov); - if (isSelected) { - btn.style.borderColor = 'var(--blue)'; - btn.style.background = 'rgba(56,189,248,0.18)'; - btn.style.boxShadow = '0 0 0 1px var(--blue)'; - btn.style.setProperty('color', '#ffffff', 'important'); - btn.style.fontWeight = '600'; - } else { - btn.style.borderColor = 'var(--line)'; - btn.style.background = 'transparent'; - btn.style.boxShadow = 'none'; - btn.style.setProperty('color', '#ffffff', 'important'); - btn.style.fontWeight = 'normal'; - } - btn.querySelectorAll('span').forEach(sp => sp.style.setProperty('color', '#ffffff', 'important')); + btn.classList.toggle('active', isSelected); + btn.style.borderColor = ''; + btn.style.background = ''; + btn.style.boxShadow = ''; + btn.style.color = ''; + btn.style.fontWeight = ''; + btn.querySelectorAll('span').forEach(sp => { sp.style.color = ''; }); btn.disabled = !en; }); // Mettre à jour les boutons Distant dans la table des sauvegardes diff --git a/themes/light.css b/themes/light.css index 976b73b..0855f56 100644 --- a/themes/light.css +++ b/themes/light.css @@ -39,21 +39,30 @@ html[data-theme="light"] #startCaptureBtn, html[data-theme="light"] .stats-range-btn.active, html[data-theme="light"] .filter-chip.active, html[data-theme="light"] .settings-nav-btn.active, -html[data-theme="light"] button[style*="var(--blue)"], html[data-theme="light"] button[style*="background: var(--blue)"], html[data-theme="light"] button[style*="background:var(--blue)"], -html[data-theme="light"] .secondary[style*="var(--blue)"], html[data-theme="light"] .secondary[style*="background: var(--blue)"], html[data-theme="light"] .secondary[style*="background:var(--blue)"], -html[data-theme="light"] .pagination-btns button[style*="var(--blue)"], +html[data-theme="light"] .pagination-btns button[style*="background: var(--blue)"], html[data-theme="light"] .pagination-btns button[style*="background:var(--blue)"], html[data-theme="light"] .pagination-btns button.active, -html[data-theme="light"] .pagination button[style*="var(--blue)"], +html[data-theme="light"] .pagination button[style*="background: var(--blue)"], html[data-theme="light"] .pagination button[style*="background:var(--blue)"], html[data-theme="light"] .pagination button.active { color: #ffffff !important; } +/* Boutons secondaires avec bordure ou couleur d'accent bleue en thème clair */ +html[data-theme="light"] button.secondary[style*="border-color:var(--blue)"], +html[data-theme="light"] button.secondary[style*="border-color: var(--blue)"], +html[data-theme="light"] .secondary[style*="border-color:var(--blue)"], +html[data-theme="light"] .secondary[style*="border-color: var(--blue)"], +html[data-theme="light"] .secondary[style*="color:var(--blue)"], +html[data-theme="light"] .secondary[style*="color: var(--blue)"] { + color: var(--blue, #1e6ef0) !important; + background: var(--panel2) !important; +} + /* Onglets de sous-navigation inactifs en thème clair (ex: Network Topology) */ html[data-theme="light"] .settings-nav-btn:not(.active) { background: var(--panel2) !important; diff --git a/themes/macos.css b/themes/macos.css index 342bd39..607a9c2 100644 --- a/themes/macos.css +++ b/themes/macos.css @@ -372,6 +372,13 @@ html[data-theme="macos"] .pill-green { border: 1px solid #c2eccd !important; } +html[data-theme="macos"] .pill-blue, +html[data-theme="macos"] #networkModeBadge.pill-blue { + background: rgba(0, 113, 227, 0.12) !important; + color: #0071e3 !important; + border: 1px solid rgba(0, 113, 227, 0.25) !important; +} + html[data-theme="macos"] .lang-card { background: #ffffff !important; border: 1px solid #e5e5ea !important; @@ -963,6 +970,13 @@ html[data-theme="macos"][data-macos-mode="dark"] .pill-green { border-color: rgba(50, 215, 75, 0.35) !important; } +html[data-theme="macos"][data-macos-mode="dark"] .pill-blue, +html[data-theme="macos"][data-macos-mode="dark"] #networkModeBadge.pill-blue { + background: rgba(10, 132, 255, 0.18) !important; + color: #0a84ff !important; + border: 1px solid rgba(10, 132, 255, 0.35) !important; +} + html[data-theme="macos"][data-macos-mode="dark"] .lang-card { background: #28282a !important; border-color: #38383a !important; diff --git a/themes/winxp.css b/themes/winxp.css index b3996db..96e1d2c 100644 --- a/themes/winxp.css +++ b/themes/winxp.css @@ -397,6 +397,13 @@ html[data-theme="winxp"] .pill-green { border: 1px solid #388a1b !important; } +html[data-theme="winxp"] .pill-blue, +html[data-theme="winxp"] #networkModeBadge.pill-blue { + background: #dbeaff !important; + color: #003399 !important; + border: 1px solid #7f9db9 !important; +} + html[data-theme="winxp"] .lang-card { background: #ffffff !important; border: 1px solid #7f9db9 !important;