YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: tray icon for light and dark mode (#1613)
Divanshu Groverf7d348cb5937
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex ef2f74be2..228a4d367 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -180,18 +180,47 @@ dependencies = ["zbus 4.0.1",]+[[package]]+name = "ashpd"+version = "0.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "de3d60bee1a1d38c2077030f4788e1b4e31058d2e79a8cfc8f2b440bd44db290"+dependencies = [+ "async-fs",+ "async-net",+ "enumflags2",+ "futures-channel",+ "futures-util",+ "rand 0.8.5",+ "serde",+ "serde_repr",+ "url",+ "zbus 5.5.0",+]+[[package]]name = "async-broadcast"version = "0.7.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "20cd0e2e25ea8e5f7e9df04578dc6cf5c83577fd09b1a46aaf5c85e1c33f2a7e"dependencies = [- "event-listener",+ "event-listener 5.3.1","event-listener-strategy","futures-core","pin-project-lite",]+[[package]]+name = "async-channel"+version = "1.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35"+dependencies = [+ "concurrent-queue",+ "event-listener 2.5.3",+ "futures-core",+]+[[package]]name = "async-channel"version = "2.3.1"@@ -228,6 +257,21 @@ dependencies = ["futures-lite",]+[[package]]+name = "async-global-executor"+version = "2.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c"+dependencies = [+ "async-channel 2.3.1",+ "async-executor",+ "async-io",+ "async-lock",+ "blocking",+ "futures-lite",+ "once_cell",+]+[[package]]name = "async-io"version = "2.3.3"@@ -253,25 +297,36 @@ version = "3.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18"dependencies = [- "event-listener",+ "event-listener 5.3.1","event-listener-strategy","pin-project-lite",]+[[package]]+name = "async-net"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7"+dependencies = [+ "async-io",+ "blocking",+ "futures-lite",+]+[[package]]name = "async-process"version = "2.2.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f7eda79bbd84e29c2b308d1dc099d7de8dcc7035e48f4bf5dc4a531a44ff5e2a"dependencies = [- "async-channel",+ "async-channel 2.3.1","async-io","async-lock","async-signal","async-task","blocking","cfg-if 1.0.0",- "event-listener",+ "event-listener 5.3.1","futures-lite","rustix","tracing",@@ -307,6 +362,32 @@ dependencies = ["windows-sys 0.52.0",]+[[package]]+name = "async-std"+version = "1.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c634475f29802fde2b8f0b505b1bd00dfe4df7d4a000f0b36f7671197d5c3615"+dependencies = [+ "async-channel 1.9.0",+ "async-global-executor",+ "async-io",+ "async-lock",+ "crossbeam-utils",+ "futures-channel",+ "futures-core",+ "futures-io",+ "futures-lite",+ "gloo-timers",+ "kv-log-macro",+ "log",+ "memchr",+ "once_cell",+ "pin-project-lite",+ "pin-utils",+ "slab",+ "wasm-bindgen-futures",+]+[[package]]name = "async-stream"version = "0.3.6"@@ -569,7 +650,7 @@ version = "1.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea"dependencies = [- "async-channel",+ "async-channel 2.3.1","async-task","futures-io","futures-lite",@@ -1297,6 +1378,20 @@ dependencies = ["windows-sys 0.59.0",]+[[package]]+name = "dark-light"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "18e1a09f280e29a8b00bc7e81eca5ac87dca0575639c9422a5fa25a07bb884b8"+dependencies = [+ "ashpd 0.10.3",+ "async-std",+ "objc2",+ "objc2-foundation",+ "web-sys",+ "winreg 0.52.0",+]+[[package]]name = "darling"version = "0.20.10"@@ -1673,6 +1768,12 @@ dependencies = ["windows-sys 0.52.0",]+[[package]]+name = "event-listener"+version = "2.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"+[[package]]name = "event-listener"version = "5.3.1"@@ -1690,7 +1791,7 @@ version = "0.5.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1"dependencies = [- "event-listener",+ "event-listener 5.3.1","pin-project-lite",]@@ -2238,6 +2339,18 @@ dependencies = ["x11-dl",]+[[package]]+name = "gloo-timers"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994"+dependencies = [+ "futures-channel",+ "futures-core",+ "js-sys",+ "wasm-bindgen",+]+[[package]]name = "gobject-sys"version = "0.18.0"@@ -3087,6 +3200,15 @@ dependencies = ["selectors",]+[[package]]+name = "kv-log-macro"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"+dependencies = [+ "log",+]+[[package]]name = "lazy_static"version = "1.5.0"@@ -3245,6 +3367,9 @@ name = "log"version = "0.4.22"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"+dependencies = [+ "value-bag",+][[package]]name = "loop9"@@ -5063,7 +5188,7 @@ version = "0.15.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8af382a047821a08aa6bfc09ab0d80ff48d45d8726f7cd8e44891f7cb4a4278e"dependencies = [- "ashpd",+ "ashpd 0.9.1","block2","glib-sys","gobject-sys",@@ -5300,7 +5425,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "0.41.13"+version = "0.42.3"dependencies = ["anyhow","async-stream",@@ -5309,6 +5434,7 @@ dependencies = ["chrono","cocoa 0.26.0","core-foundation 0.10.0",+ "dark-light","dirs 5.0.1","fix-path-env","futures",@@ -7365,6 +7491,12 @@ version = "0.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"+[[package]]+name = "value-bag"+version = "1.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3ef4c4aa54d5d05a279399bfa921ec387b7aba77caf7a682ae8d86785b8fdad2"+[[package]]name = "vcpkg"version = "0.2.15"@@ -8344,7 +8476,7 @@ dependencies = ["blocking","derivative","enumflags2",- "event-listener",+ "event-listener 5.3.1","futures-core","futures-sink","futures-util",@@ -8383,7 +8515,7 @@ dependencies = ["async-trait","blocking","enumflags2",- "event-listener",+ "event-listener 5.3.1","futures-core","futures-lite","hex",@@ -8566,6 +8698,7 @@ dependencies = ["enumflags2","serde","static_assertions",+ "url","winnow 0.7.1","zvariant_derive 5.4.0","zvariant_utils 3.2.0",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 0c36393ba..84363becf 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -46,6 +46,9 @@ http = "0.2"# Logginglog = "0.4.17"+# Dark mode or light mode+dark-light = "2.0.0"+# Tokiotokio = { version = "1.36.0", features = ["full"] }diff --git a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-black-failed.png b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-black-failed.pngnew file mode 100644index 000000000..0af51a93fBinary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-black-failed.png differdiff --git a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-black.png b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-black.pngindex 7f492169b..78b4e4fd3 100644Binary files a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-black.png and b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-black.png differdiff --git a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-failed.png b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-failed.pngdeleted file mode 100644index 6c18ae091..000000000Binary files a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-failed.png and /dev/null differdiff --git a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-updates-black.png b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-updates-black.pngnew file mode 100644index 000000000..ba682b58aBinary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-updates-black.png differdiff --git a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-updates-white.png b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-updates-white.pngnew file mode 100644index 000000000..fc0543b3fBinary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-updates-white.png differdiff --git a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-white-failed.png b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-white-failed.pngnew file mode 100644index 000000000..18f1cabd2Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-white-failed.png differdiff --git a/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-white.png b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-white.pngnew file mode 100644index 000000000..f18b8f3b2Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/screenpipe-logo-tray-white.png differdiff --git a/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-black-failed.svg b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-black-failed.svgnew file mode 100644index 000000000..b4c8b6f02--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-black-failed.svg@@ -0,0 +1,27 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M57.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M58.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M61.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M62.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g id="caution-mark" transform="translate(18,18)">+ <rect x="-1.4" y="-4.29" width="1.5" height="5.1" fill="black"/>+ <circle cx="-0.65" cy="2.25" r="0.75" fill="black"/>+ </g>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-black.svg b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-black.svgnew file mode 100644index 000000000..da10eccfa--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-black.svg@@ -0,0 +1,23 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M57.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M58.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M61.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M62.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-updates-black.svg b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-updates-black.svgnew file mode 100644index 000000000..55781f985--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-updates-black.svg@@ -0,0 +1,8 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">+ <g>+ <path d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <path d="M18.99,18.08h-.77v-4.03s-.04-.08-.08-.08h-2.84s-.08.04-.08.08v4.03h-.77c-.41,0-.66.44-.46.79l2.47,4.28c.11.2.4.2.51,0l2.47-4.28c.2-.35-.05-.79-.46-.79Z"/>+</svg>\ No newline at end of filediff --git a/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-updates-white.svg b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-updates-white.svgnew file mode 100644index 000000000..5e34ef871--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-updates-white.svg@@ -0,0 +1,15 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <g>+ <path class="cls-1" d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <path class="cls-1" d="M18.99,18.08h-.77v-4.03s-.04-.08-.08-.08h-2.84s-.08.04-.08.08v4.03h-.77c-.41,0-.66.44-.46.79l2.47,4.28c.11.2.4.2.51,0l2.47-4.28c.2-.35-.05-.79-.46-.79Z"/>+</svg>\ No newline at end of filediff --git a/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-white-failed.svg b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-white-failed.svgnew file mode 100644index 000000000..939b4b124--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-white-failed.svg@@ -0,0 +1,27 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M-30.3,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M-29.23,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M-26.39,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M-25.39,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g id="caution-mark" transform="translate(18,18)">+ <rect x="-1.4" y="-4.29" width="1.5" height="5.1" fill="#f2f2f2"/>+ <circle cx="-0.65" cy="2.25" r="0.75" fill="#f2f2f2"/>+ </g>+ </g>+ </g>+</svg>diff --git a/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-white.svg b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-white.svgnew file mode 100644index 000000000..bd4379203--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/assets/svg/screenpipe-logo-tray-white.svg@@ -0,0 +1,23 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M-30.3,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M-29.23,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M-26.39,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M-25.39,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/screenpipe-app-tauri/src-tauri/assets/update-logo-black.png b/screenpipe-app-tauri/src-tauri/assets/update-logo-black.pngdeleted file mode 100644index b6f38f300..000000000Binary files a/screenpipe-app-tauri/src-tauri/assets/update-logo-black.png and /dev/null differdiff --git a/screenpipe-app-tauri/src-tauri/src/health.rs b/screenpipe-app-tauri/src-tauri/src/health.rsindex 108ef3293..08624def2 100644--- a/screenpipe-app-tauri/src-tauri/src/health.rs+++ b/screenpipe-app-tauri/src-tauri/src/health.rs@@ -1,5 +1,6 @@use anyhow::Result;use serde::Deserialize;+use dark_light::Mode;use tauri::{path::BaseDirectory, Manager};use tokio::time::{interval, Duration};@@ -25,61 +26,47 @@ pub async fn start_health_check(app: tauri::AppHandle) -> Result<()> {let mut interval = interval(Duration::from_secs(1));let client = reqwest::Client::new();let mut last_status = String::new();+ let mut last_theme = dark_light::detect().unwrap_or(Mode::Dark); // Track the last known themetokio::spawn(async move {loop {interval.tick().await;- match check_health(&client).await {- Ok(health) => {- let current_status = if health.status == "unhealthy" || health.status == "error"- {- "unhealthy"- } else {- "healthy"- };+ let theme = dark_light::detect().unwrap_or(Mode::Dark); // Get current theme+ let health_result = check_health(&client).await;+ let current_status = match health_result {+ Ok(health) if health.status == "unhealthy" || health.status == "error" => "unhealthy",+ Ok(_) => "healthy",+ Err(_) => "error",+ };++ // Update icon if either health status OR theme changes+ if current_status != last_status || theme != last_theme {+ last_status = current_status.to_string();+ last_theme = theme;- if current_status != last_status {- last_status = current_status.to_string();- if let Some(main_tray) = app.tray_by_id("screenpipe_main") {- let icon_path = if current_status == "unhealthy" {- app.path()- .resolve(- "assets/screenpipe-logo-tray-failed.png",- BaseDirectory::Resource,- )- .expect("failed to resolve icon path")- } else {- app.path()- .resolve(- "assets/screenpipe-logo-tray-black.png",- BaseDirectory::Resource,- )- .expect("failed to resolve icon path")- };- let _ = main_tray- .set_icon(Some(tauri::image::Image::from_path(&icon_path).unwrap()))- .and_then(|_| main_tray.set_icon_as_template(true));+ if let Some(main_tray) = app.tray_by_id("screenpipe_main") {+ let icon_path = if current_status == "unhealthy" {+ if theme == Mode::Light {+ "assets/screenpipe-logo-tray-black-failed.png"+ } else {+ "assets/screenpipe-logo-tray-white-failed.png"}- }- }- Err(e) => {- if last_status != "error" {- println!("health check failed: {}", e);- last_status = "error".to_string();- if let Some(main_tray) = app.tray_by_id("screenpipe_main") {- let icon_path = app- .path()- .resolve(- "assets/screenpipe-logo-tray-failed.png",- BaseDirectory::Resource,- )- .expect("failed to resolve icon path");- let _ = main_tray- .set_icon(Some(tauri::image::Image::from_path(&icon_path).unwrap()))- .and_then(|_| main_tray.set_icon_as_template(true));+ } else {+ if theme == Mode::Light {+ "assets/screenpipe-logo-tray-black.png"+ } else {+ "assets/screenpipe-logo-tray-white.png"}- }+ };++ let icon_path = app.path()+ .resolve(icon_path, BaseDirectory::Resource)+ .expect("failed to resolve icon path");++ let _ = main_tray+ .set_icon(Some(tauri::image::Image::from_path(&icon_path).unwrap()))+ .and_then(|_| main_tray.set_icon_as_template(true));}}}@@ -88,6 +75,7 @@ pub async fn start_health_check(app: tauri::AppHandle) -> Result<()> {Ok(())}+async fn check_health(client: &reqwest::Client) -> Result<HealthCheckResponse> {let response = client.get("http://localhost:3030/health")diff --git a/screenpipe-app-tauri/src-tauri/src/updates.rs b/screenpipe-app-tauri/src-tauri/src/updates.rsindex cd59819ad..688717a9f 100644--- a/screenpipe-app-tauri/src-tauri/src/updates.rs+++ b/screenpipe-app-tauri/src-tauri/src/updates.rs@@ -1,6 +1,7 @@use crate::stop_screenpipe;use crate::SidecarState;use anyhow::Error;+use dark_light::Mode;use log::{error, info};use std::sync::Arc;use std::time::Duration;@@ -70,11 +71,18 @@ impl UpdatesManager {}if let Some(tray) = self.app.tray_by_id("screenpipe_main") {- let path = self.app.path().resolve(- "assets/update-logo-black.png",- tauri::path::BaseDirectory::Resource,- )?;-+ let theme = dark_light::detect().unwrap_or(Mode::Dark);+ let icon_path = if theme == Mode::Light {+ "assets/screenpipe-logo-tray-updates-black.png"+ } else {+ "assets/screenpipe-logo-tray-updates-white.png"+ };++ let path = self+ .app+ .path()+ .resolve(icon_path, tauri::path::BaseDirectory::Resource)?;+if let Ok(image) = tauri::image::Image::from_path(path) {tray.set_icon(Some(image))?;tray.set_icon_as_template(true)?;diff --git a/screenpipe-app-tauri/src-tauri/tauri.conf.json b/screenpipe-app-tauri/src-tauri/tauri.conf.jsonindex aefb61ca9..98f2b43ef 100644--- a/screenpipe-app-tauri/src-tauri/tauri.conf.json+++ b/screenpipe-app-tauri/src-tauri/tauri.conf.json@@ -102,7 +102,7 @@"withGlobalTauri": true,"trayIcon": {"id": "screenpipe_main",- "iconPath": "icons/screenpipe-logo-tray-black.png",+ "iconPath": "assets/screenpipe-logo-tray-white.png","iconAsTemplate": true},"windows": [