color fixes
Browse files- .gitignore +6 -1
- static/app.js +2 -2
- static/index.html +1 -1
- static/sweep.css +2 -2
- static/sweep.js +2 -2
.gitignore
CHANGED
|
@@ -1,2 +1,7 @@
|
|
| 1 |
# macos
|
| 2 |
-
.DS_Store
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# macos
|
| 2 |
+
.DS_Store
|
| 3 |
+
testing.ipynb
|
| 4 |
+
__pycache__/
|
| 5 |
+
# other essentials
|
| 6 |
+
.env/
|
| 7 |
+
.vscode/
|
static/app.js
CHANGED
|
@@ -751,7 +751,7 @@ function renderRegistry() {
|
|
| 751 |
// raw (3 bytes RGB) / bpp.
|
| 752 |
const bppToRate = (bpp) => 24 / bpp;
|
| 753 |
|
| 754 |
-
const CODEC_COLOR = { jpeg: "#7d8cff", avif: "#34d39a", webp: "#
|
| 755 |
const PBC_COLOR = "#ff3b41";
|
| 756 |
|
| 757 |
function card(d) {
|
|
@@ -781,7 +781,7 @@ function card(d) {
|
|
| 781 |
<span class="k">Compare to:</span>
|
| 782 |
${haveJ ? "" : `<button class="chip" data-act="cmp-jpeg" style="color:#7d8cff;border-color:#7d8cff">JPEG</button>`}
|
| 783 |
${haveA ? "" : `<button class="chip" data-act="cmp-avif" style="color:#34d39a;border-color:#34d39a">AVIF</button>`}
|
| 784 |
-
${haveW ? "" : `<button class="chip" data-act="cmp-webp" style="color:#
|
| 785 |
</div>`
|
| 786 |
: "";
|
| 787 |
const haveAnim = !!d.animation_url;
|
|
|
|
| 751 |
// raw (3 bytes RGB) / bpp.
|
| 752 |
const bppToRate = (bpp) => 24 / bpp;
|
| 753 |
|
| 754 |
+
const CODEC_COLOR = { jpeg: "#7d8cff", avif: "#34d39a", webp: "#54c0ff"};
|
| 755 |
const PBC_COLOR = "#ff3b41";
|
| 756 |
|
| 757 |
function card(d) {
|
|
|
|
| 781 |
<span class="k">Compare to:</span>
|
| 782 |
${haveJ ? "" : `<button class="chip" data-act="cmp-jpeg" style="color:#7d8cff;border-color:#7d8cff">JPEG</button>`}
|
| 783 |
${haveA ? "" : `<button class="chip" data-act="cmp-avif" style="color:#34d39a;border-color:#34d39a">AVIF</button>`}
|
| 784 |
+
${haveW ? "" : `<button class="chip" data-act="cmp-webp" style="color:#54c0ff;border-color:#54c0ff">WebP</button>`}
|
| 785 |
</div>`
|
| 786 |
: "";
|
| 787 |
const haveAnim = !!d.animation_url;
|
static/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
/* JPEG/AVIF hold buttons reuse the codec colors from the Sweep Analyzer. */
|
| 14 |
#hold-jpeg { --hc:#7d8cff; }
|
| 15 |
#hold-avif { --hc:#34d39a; }
|
| 16 |
-
#hold-webp { --hc:#
|
| 17 |
#hold-jpeg, #hold-avif, #hold-webp { border-color: var(--hc); color: var(--hc); }
|
| 18 |
#hold-jpeg.holding, #hold-avif.holding, #hold-webp.holding { background: var(--hc); border-color: var(--hc); color: #fff; }
|
| 19 |
</style>
|
|
|
|
| 13 |
/* JPEG/AVIF hold buttons reuse the codec colors from the Sweep Analyzer. */
|
| 14 |
#hold-jpeg { --hc:#7d8cff; }
|
| 15 |
#hold-avif { --hc:#34d39a; }
|
| 16 |
+
#hold-webp { --hc:#54c0ff; }
|
| 17 |
#hold-jpeg, #hold-avif, #hold-webp { border-color: var(--hc); color: var(--hc); }
|
| 18 |
#hold-jpeg.holding, #hold-avif.holding, #hold-webp.holding { background: var(--hc); border-color: var(--hc); color: #fff; }
|
| 19 |
</style>
|
static/sweep.css
CHANGED
|
@@ -61,8 +61,8 @@ table.sw-table tbody tr:hover{background:var(--surface2);}
|
|
| 61 |
table.sw-table tbody tr.sel{background:var(--red-soft);}
|
| 62 |
table.sw-table tbody tr.sel td{color:#fff;}
|
| 63 |
.sw-tag{display:inline-block;padding:1px 6px;border-radius:5px;font-size:9px;letter-spacing:.06em;text-transform:uppercase;}
|
| 64 |
-
.sw-tag.par{background:rgba(255,140,0,.15);color:#
|
| 65 |
-
.sw-tag.base{background:rgba(0,200,255,.13);color:#
|
| 66 |
|
| 67 |
.sw-sel-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px;}
|
| 68 |
@media (max-width:900px){.sw-sel-grid{grid-template-columns:1fr;}}
|
|
|
|
| 61 |
table.sw-table tbody tr.sel{background:var(--red-soft);}
|
| 62 |
table.sw-table tbody tr.sel td{color:#fff;}
|
| 63 |
.sw-tag{display:inline-block;padding:1px 6px;border-radius:5px;font-size:9px;letter-spacing:.06em;text-transform:uppercase;}
|
| 64 |
+
.sw-tag.par{background:rgba(255,140,0,.15);color:#ffce2e;}
|
| 65 |
+
.sw-tag.base{background:rgba(0,200,255,.13);color:#ff280c;}
|
| 66 |
|
| 67 |
.sw-sel-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px;}
|
| 68 |
@media (max-width:900px){.sw-sel-grid{grid-template-columns:1fr;}}
|
static/sweep.js
CHANGED
|
@@ -24,8 +24,8 @@
|
|
| 24 |
};
|
| 25 |
|
| 26 |
const COLORS = {
|
| 27 |
-
gray: "#
|
| 28 |
-
jpeg: "#7d8cff", avif: "#34d39a", webp: "#
|
| 29 |
};
|
| 30 |
const TOGGLES = [["pbcAll", "PBC All"], ["pbcPareto", "PBC Pareto"], ["presets", "PBC Presets"], ["jpeg", "JPEG"], ["avif", "AVIF"], ["webp", "WebP"]];
|
| 31 |
|
|
|
|
| 24 |
};
|
| 25 |
|
| 26 |
const COLORS = {
|
| 27 |
+
gray: "#5c3839", pareto: "#ff3b41", sel: "#ffce2e", base: "#ff280c",
|
| 28 |
+
jpeg: "#7d8cff", avif: "#34d39a", webp: "#54c0ff",
|
| 29 |
};
|
| 30 |
const TOGGLES = [["pbcAll", "PBC All"], ["pbcPareto", "PBC Pareto"], ["presets", "PBC Presets"], ["jpeg", "JPEG"], ["avif", "AVIF"], ["webp", "WebP"]];
|
| 31 |
|