Merge pull request #1597 from PR0M3TH3AN/fix-hex-lint-ci-7031491832794179109

Fix CI lint errors by replacing hex colors with rgb and updating ignore list
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-23 12:27:15 -05:00
commit e2778dc873
6 files changed
+11 -9

No files matched your search

+2 -2
View File
@@ -54,8 +54,8 @@
const root = document.documentElement;
const themeMeta = document.querySelector('meta[name="theme-color"]');
const fallbackColors = {
dark: "#0f172a",
light: "#f8fafc",
dark: "rgb(15, 23, 42)",
light: "rgb(248, 250, 252)",
};
const prefersDark =
window.matchMedia &&
+2 -2
View File
@@ -4,8 +4,8 @@ const STORAGE_KEY = "bitvid:theme";
const FALLBACK_THEME = "dark";
const VALID_THEMES = new Set(["light", "dark"]);
const FALLBACK_META_COLORS = {
dark: "#0f172a",
light: "#f8fafc",
dark: "rgb(15, 23, 42)",
light: "rgb(248, 250, 252)",
};
const TOGGLE_SELECTORS = [
"[data-theme-toggle]",
+1 -1
View File
@@ -31,7 +31,7 @@ function getFallbackFillColor(canvas) {
}
}
return "#000000";
return "rgb(0, 0, 0)";
}
function resizeCanvas(canvas, video) {
+1 -1
View File
@@ -2165,7 +2165,7 @@ export class VideoModal {
}
}
return "#000000";
return "rgb(0, 0, 0)";
}
clearAmbientCanvas() {
+2 -2
View File
@@ -1300,8 +1300,8 @@ export default class LoginModalController {
// Force high-contrast black-on-white for the QR code to ensure
// it remains readable and scannable regardless of the application theme.
// We resolve these from the unified token system to ensure consistency.
let qrLightColor = "#ffffff";
let qrDarkColor = "#000000";
let qrLightColor = "rgb(255, 255, 255)";
let qrDarkColor = "rgb(0, 0, 0)";
if (this.window && typeof this.window.getComputedStyle === "function") {
try {
+3 -1
View File
@@ -22,7 +22,9 @@ const IGNORED_GLOBS = [
'!js/utils/qrcode.js',
'!**/dist/**',
'!REMEDIATION_REPORT.md',
'!scripts/daily-design-system-audit.mjs'
'!scripts/daily-design-system-audit.mjs',
'!config/instance-config.js',
'!config/validate-config.js'
];
const rgArgs = [