mirror of
https://github.com/tiennm99/claude-code-usage-bubble.git
synced 2026-06-06 14:12:14 +00:00
ed9b8b2042
- Threshold balloons fire the cycle utilization crosses 80% or 95%
on either provider, with the title showing "{Provider} · {N}%" and
body translated per shipped locale. Reuses the existing
BALLOON_COOLDOWN so notifications stay calm.
- Dark/light auto-follow: bubble's WM_SETTINGCHANGE handler now calls
app::recheck_theme(), which re-reads HKCU\…\Personalize, updates
state.is_dark if changed, and triggers a UI repaint + tray refresh.
Windows posts WM_SETTINGCHANGE to every top-level window when the
user toggles light/dark in Settings, so the bubble repaints in
near-real-time.
- Adds 2 new i18n keys (threshold_80_body, threshold_95_body) across
all eight shipped locales.
Bumps version to 0.1.5.
52 lines
1.4 KiB
TOML
52 lines
1.4 KiB
TOML
[package]
|
|
name = "claude-code-usage-bubble"
|
|
version = "0.1.5"
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
description = "Floating bubble showing Claude Code and Codex usage on Windows"
|
|
homepage = "https://github.com/tiennm99/claude-code-usage-bubble"
|
|
repository = "https://github.com/tiennm99/claude-code-usage-bubble"
|
|
|
|
[dependencies]
|
|
# `ureq` + `native-tls` are kept while the legacy `poller.rs` and `updater.rs`
|
|
# modules survive. Phase 4 deletes `poller.rs` and Phase 6 deletes `updater.rs`,
|
|
# at which point these two deps go away in favour of `net::winhttp`.
|
|
ureq = { version = "2", default-features = false, features = ["native-tls", "json", "proxy-from-env"] }
|
|
native-tls = "0.2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
dirs = "6"
|
|
log = "0.4"
|
|
simplelog = "0.12"
|
|
thiserror = "2"
|
|
toml = "0.8"
|
|
tiny-skia = "0.11"
|
|
sha2 = "0.10"
|
|
|
|
[dependencies.windows]
|
|
version = "0.58"
|
|
features = [
|
|
"Win32_Foundation",
|
|
"Win32_Globalization",
|
|
"Win32_Graphics_Gdi",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_UI_Shell",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_System_Registry",
|
|
"Win32_System_Threading",
|
|
"Win32_Security",
|
|
"Win32_UI_HiDpi",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_Networking_WinHttp",
|
|
]
|
|
|
|
[build-dependencies]
|
|
embed-resource = "3"
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
lto = true
|
|
strip = true
|
|
codegen-units = 1
|
|
panic = "abort"
|