Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions public/js/badge-logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ export function computeBadgeVisual({
const reason = health ? healthReason(healthDetail) : '';
if (reason) aria = aria + ': ' + reason;

const effectiveBg =
bg ||
(cls.includes('red') ? NAMED.red : cls.includes('green') ? NAMED.green : cls.includes('blue') ? NAMED.blue : '');
const color = effectiveBg && needsDark(effectiveBg) ? '#1c1c1e' : '';
/* Only a user's own colour is inked here, and then always. A named badge is
filled from a token and takes --on-fill, which the empty string leaves in
place. NAMED does not hold those token values and never decided this. */
const color = bg ? (needsDark(bg) ? '#1c1c1e' : '#ffffff') : '';

return { cls, txt, bg, aria, color, title: reason };
}
Expand Down
2 changes: 1 addition & 1 deletion public/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { initI18n, t, currentLang } from '/js/i18n.js?v=d056c9c5';
import { pwStrength, passwordMismatch } from '/js/password-strength.js?v=42f45ac7';
import { sanitizeItemLinks } from '/js/link-url.js?v=54adb40f';
import { initUI, mkFolder, openFolderDesktop, openFolderMobile, buildMobile } from '/js/ui.js?v=371827cc';
import { badgeMinimum, badgeSignature, computeBadgeVisual, readBadgeUpdate } from '/js/badge-logic.js?v=e2857764';
import { badgeMinimum, badgeSignature, computeBadgeVisual, readBadgeUpdate } from '/js/badge-logic.js?v=771f3230';
import {
configChanged,
landingAfterSetup,
Expand Down
1 change: 1 addition & 0 deletions src/content/docs/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ Messages shown in the admin, and what each one means.
| `Ping failed` / `Ping returned <status>` | The URL was reached but did not answer as expected. |
| `That image is too large for the server to accept.` | Over the 2 MB upload limit. |
| `That is not a color. Use #rrggbb or a CSS color name.` | The wallpaper colour field rejects anything else. |
| `Wallpaper failed: <reason>` | The image was not stored. The link was unreachable, the file is not a JPEG, PNG, WebP, AVIF or GIF, or it is over 16 MB. |
| `Set a password before turning authentication on.` | Authentication needs a password to exist first. |
| `Nothing to import, the file matches your current config.` | The imported file is identical to what is already stored. |
| `<file> is not a gethomepage or Dashy config.` | Only those two formats are recognised. See [Migrating](/docs/import-export/migrating/). |
Expand Down