From 3d32c64b0a678dbc370fa70f977cdf57661b34ae Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Sun, 19 Jul 2026 14:55:53 -0400 Subject: [PATCH] v0.0.50 - CPU values: black text, red only for >=90%; remove all other heat colors and shaded backgrounds --- VERSION | 2 +- src/version.h | 4 ++-- www/processes.css | 10 ++++------ www/processes.js | 14 ++++++-------- 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/VERSION b/VERSION index 50f402a..85ab4c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.49 +0.0.50 diff --git a/src/version.h b/src/version.h index 83e5088..3212d05 100644 --- a/src/version.h +++ b/src/version.h @@ -11,9 +11,9 @@ #ifndef SOVEREIGN_BROWSER_VERSION_H #define SOVEREIGN_BROWSER_VERSION_H -#define SB_VERSION "v0.0.49" +#define SB_VERSION "v0.0.50" #define SB_VERSION_MAJOR 0 #define SB_VERSION_MINOR 0 -#define SB_VERSION_PATCH 49 +#define SB_VERSION_PATCH 50 #endif /* SOVEREIGN_BROWSER_VERSION_H */ diff --git a/www/processes.css b/www/processes.css index a7ca61f..9350aed 100644 --- a/www/processes.css +++ b/www/processes.css @@ -75,15 +75,13 @@ code { font-family: var(--font); background: var(--border); padding: 1px 4px; bo text-overflow: ellipsis; } -/* CPU values: plain text, no shaded background. Color indicates - * severity: green < 10%, yellow < 50%, red >= 50%, fg for idle. */ +/* CPU values: plain text, no shaded background. Red only for >= 90%, + * otherwise the default foreground color. */ .heat { font-weight: bold; + color: var(--fg); } -.heat.cool { color: #4caf50; } -.heat.warm { color: #ff9800; } -.heat.hot { color: #f44336; } -.heat.cold { color: var(--fg); } +.heat.hot { color: var(--accent); } /* Renderer row: clickable to expand hosted tabs. */ .renderer-row { cursor: pointer; } diff --git a/www/processes.js b/www/processes.js index 6312703..3c2c383 100644 --- a/www/processes.js +++ b/www/processes.js @@ -63,14 +63,13 @@ function fmtUptime(sec) { } function heatClass(pct) { - if (pct == null || pct <= 0) return 'cold'; - if (pct < 10) return 'cool'; - if (pct < 50) return 'warm'; - return 'hot'; + if (pct == null) return ''; + if (pct >= 90) return 'hot'; + return ''; } function heatHtml(pct) { - if (pct == null) return ''; + if (pct == null) return ''; return '' + pct.toFixed(1) + ''; } @@ -144,8 +143,7 @@ function renderProcTable() { var tabsCount = (p.hosted_tabs || []).length; var tabsCell; if (isRenderer) { - tabsCell = '' + tabsCount + ''; + tabsCell = String(tabsCount); } else { tabsCell = '—'; } @@ -272,7 +270,7 @@ function renderTabsTable() { esc(t.title || '(untitled)') + '' + (t.is_internal ? ' (internal)' : '') + '
' + esc(t.url) + '' + - '' + (t.is_internal ? '' + '' + (t.is_internal ? '' : heatHtml(busy)) + '' + '' + probeField(t, 'fps') + '' + '' + probeField(t, 'timer_count') + '' +