Skip to content

Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.

v1.0.7: light theme + AppImage catalog compliance

MoneyLisa9d6d1d7abcb1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c749fe..4e7daae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,16 @@ All notable changes to Snitch. / Toutes les modifications notables de Snitch.
The format follows [Keep a Changelog](https://keepachangelog.com/) — EN/FR.
+## [1.0.7] — 2026-10-22
+
+### Added / Ajouté
+
+- **Light theme / Thème clair** — honours `prefers-color-scheme` out of the box and can be overridden with the sun/moon toggle in the toolbar; the choice is persisted in `localStorage`. Implemented as a hue-preserving invert of the authored dark palette, so graphs, map and aurora stay coherent. / Respecte `prefers-color-scheme` par défaut et se remplace via le bouton soleil/lune de la barre d'outils ; le choix est persisté. Réalisé par inversion préservant la teinte de la palette sombre, donc graphe, carte et aurore restent cohérents.
+
+### Fixed / Corrigé
+
+- **AppImage catalog compliance / conformité au catalogue AppImage** — the Linux asset is now named `Snitch-x86_64.AppImage` (proper architecture naming) and electron-builder publishes GitHub update metadata (`latest-linux.yml` + `.zsync`), enabling auto-update through AppImageUpdate-compatible tools. / L'asset Linux est désormais nommé `Snitch-x86_64.AppImage` (nommage d'architecture correct) et electron-builder publie les métadonnées de mise à jour GitHub (`latest-linux.yml` + `.zsync`), permettant l'auto-mise à jour via les outils compatibles AppImageUpdate.
+
## [1.0.6] — 2026-10-21
### Added / Ajouté
diff --git a/backend/version.py b/backend/version.py
index e58560b..17f0b10 100644
--- a/backend/version.py
+++ b/backend/version.py
@@ -5,4 +5,4 @@ FR: Source unique de la version du backend (affichée dans /diagnostics).
À garder alignée avec electron/package.json et frontend/package.json.
"""
-__version__ = "1.0.6"
+__version__ = "1.0.7"
diff --git a/electron/package.json b/electron/package.json
index 051c65c..45dd457 100644
--- a/electron/package.json
+++ b/electron/package.json
@@ -1,6 +1,6 @@
{
"name": "snitch",
- "version": "1.0.6",
+ "version": "1.0.7",
"description": "Snitch — real-time network traffic visualizer / visualiseur de trafic réseau en temps réel",
"main": "main.js",
"license": "AGPL-3.0-or-later",
diff --git a/frontend/index.html b/frontend/index.html
index 1c8dfe2..fe6b310 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -37,7 +37,42 @@
}
::-webkit-scrollbar-thumb:hover { background: #4a4a4a; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
+
+ /* EN: Light theme — dark UIs get a faithful light variant by inverting
+ #root then rotating hue back, so accent colors keep their families
+ while surfaces flip to light. Canvases (map, graph, aurora) are
+ inverted along with the chrome: the data-viz palette was designed
+ for a dark base and still reads correctly inverted.
+ FR: Thème clair — l'UI sombre obtient une variante claire fidèle en
+ inversant #root puis en ré-ajustant la teinte, donc les accents
+ gardent leur famille pendant que les surfaces passent en clair. Les
+ canvas (carte, graphe, aurore) sont inversés avec le chrome : la
+ palette data-viz conçue sur base sombre reste lisible inversée. */
+ html[data-theme="light"] body { background: #e8eaed; }
+ html[data-theme="light"] #root {
+ filter: invert(0.93) hue-rotate(180deg);
+ }
+ /* EN: Native widgets + scrollbars follow the declared scheme.
+ FR: Widgets natifs + barres de défilement suivent le schéma déclaré. */
+ html[data-theme="light"] { color-scheme: light; }
+ html[data-theme="dark"] { color-scheme: dark; }
</style>
+ <script>
+ /* EN: Resolve theme before first paint — saved choice wins, else the
+ OS preference decides (dark is our authored default). No FOUC.
+ FR: Résoudre le thème avant le premier rendu — le choix sauvegardé
+ l'emporte, sinon la préférence OS décide (le sombre est notre défaut).
+ Pas de flash de couleur. */
+ (function () {
+ var t = null;
+ try { t = localStorage.getItem('snitch_theme'); } catch (e) {}
+ if (t !== 'light' && t !== 'dark') {
+ t = (window.matchMedia && matchMedia('(prefers-color-scheme: light)').matches)
+ ? 'light' : 'dark';
+ }
+ document.documentElement.dataset.theme = t;
+ })();
+ </script>
</head>
<body>
<div id="root"></div>
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 53f5891..50dfa13 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -13,7 +13,7 @@
* vue, panneaux) vit ici.
*/
import { useState, useMemo } from 'react'
-import { Hexagon, Globe, Wifi, Smartphone, Monitor, Cpu, ShieldCheck, Radio, Zap, HelpCircle, AlertTriangle, Square, Play, Filter, Mic, Camera, Download, ShieldOff, AppWindow } from 'lucide-react'
+import { Hexagon, Globe, Wifi, Smartphone, Monitor, Cpu, ShieldCheck, Radio, Zap, HelpCircle, AlertTriangle, Square, Play, Filter, Mic, Camera, Download, ShieldOff, AppWindow, Sun, Moon } from 'lucide-react'
import ForceGraph from './graph/ForceGraph'
import AuroraCurtain from './components/AuroraCurtain'
import MapView from './map/MapView'
@@ -191,6 +191,7 @@ export default function App() {
display: 'flex', alignItems: 'center', gap: 8,
}}>
<MediaBadge media={media} />
+ <ThemeToggle />
<LangToggle />
<ViewToggle view={view} onChange={setView} />
<ExportButton nodes={nodes} edges={edges} lanDevices={lanDevices} alerts={alerts} />
@@ -717,6 +718,35 @@ function CaptureToggle({ capturing, onToggle }) {
)
}
+/** EN: Light/dark theme toggle — persists to localStorage and flips the
+ * data-theme attribute read by the CSS in index.html. The boot script
+ * there already honours the OS preference when no choice is saved.
+ * FR: Bascule de thème clair/sombre — persistée dans localStorage et agit
+ * sur l'attribut data-theme lu par le CSS d'index.html. Le script de
+ * démarrage respecte déjà la préférence OS sans choix sauvegardé. */
+function ThemeToggle() {
+ const { t } = useT()
+ const [theme, setTheme] = useState(
+ () => document.documentElement.dataset.theme || 'dark')
+ const toggle = () => {
+ const next = theme === 'dark' ? 'light' : 'dark'
+ document.documentElement.dataset.theme = next
+ try { localStorage.setItem('snitch_theme', next) } catch (e) { /* ignore */ }
+ setTheme(next)
+ }
+ const Icon = theme === 'dark' ? Sun : Moon
+ return (
+ <button onClick={toggle} title={t('theme_toggle')} style={{
+ background: '#0f0f0f', border: '1px solid #2a2a2a', borderRadius: 20,
+ cursor: 'pointer', color: '#64748b',
+ padding: '5px 10px', display: 'flex', alignItems: 'center',
+ transition: 'background 0.15s',
+ }}>
+ <Icon size={13} />
+ </button>
+ )
+}
+
/** EN: EN/FR language toggle — the headline feature.
* FR: Bascule de langue EN/FR — la fonctionnalité vedette. */
function LangToggle() {
diff --git a/frontend/src/i18n.jsx b/frontend/src/i18n.jsx
index b89c2fc..87f17fb 100644
--- a/frontend/src/i18n.jsx
+++ b/frontend/src/i18n.jsx
@@ -210,6 +210,7 @@ const en = {
settings_saved: 'Saved',
close: 'Close',
settings_language: 'Language / Langue',
+ theme_toggle: 'Light / dark theme',
settings_retention: 'History retention',
settings_retention_hint: 'How long traffic & alert history is kept',
geo_title: 'Geolocation database',
@@ -446,6 +447,7 @@ const fr = {
settings_saved: 'Enregistré',
close: 'Fermer',
settings_language: 'Langue / Language',
+ theme_toggle: 'Thème clair / sombre',
settings_retention: 'Rétention de l\'historique',
settings_retention_hint: 'Durée de conservation du trafic et des alertes',
geo_title: 'Base de géolocalisation',