Skip to content

Commit c98f56a

Browse files
Use purple for distributed algorithms instead of blue
Distributed algorithms now have a distinct purple color scheme: - Card border: #7c4dff (purple) - Badge: #e8daef bg / #4a148c text (light purple / dark purple) - Linear oracle text: #4a148c (dark purple) Previously shared the same blue as gradient algorithms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 63b8716 commit c98f56a

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

webapp/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ body {
394394
border-left-color: #f9ab00;
395395
}
396396

397+
.algo-card.distributed {
398+
border-left-color: #7c4dff;
399+
}
400+
397401
.algo-card-title {
398402
font-size: 0.95rem;
399403
font-weight: 600;

webapp/js/katex-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function compositionLatex(tfLatex, oracles, distributed) {
4343
function linearOracleElement(distributed) {
4444
if (!distributed) return null;
4545
const div = document.createElement('div');
46-
div.style.cssText = 'margin-top:0.3rem;font-size:0.85rem;color:#0d47a1;';
46+
div.style.cssText = 'margin-top:0.3rem;font-size:0.85rem;color:#4a148c;';
4747
try {
4848
katex.render(
4949
'\\text{Linear oracle: } L \\text{ (eigenvalue } \\lambda \\text{)}',

webapp/js/library-ui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function renderLibraryCards(data) {
9292

9393
for (const algo of data) {
9494
const card = document.createElement('div');
95-
card.className = 'algo-card ' + (algo.oracleType || 'gradient');
95+
card.className = 'algo-card ' + (algo.distributed ? 'distributed' : (algo.oracleType || 'gradient'));
9696

9797
// Title
9898
const title = document.createElement('div');
@@ -151,7 +151,7 @@ function renderLibraryCards(data) {
151151
const distBadge = document.createElement('span');
152152
distBadge.style.cssText =
153153
'display:inline-block;margin-top:0.4rem;padding:0.15rem 0.5rem;' +
154-
'font-size:0.72rem;background:#bbdefb;color:#0d47a1;border-radius:10px;';
154+
'font-size:0.72rem;background:#e8daef;color:#4a148c;border-radius:10px;';
155155
distBadge.textContent = 'Distributed';
156156
card.appendChild(distBadge);
157157
}

webapp/js/results.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function displayResults(result) {
3636
if (result.user_distributed) {
3737
const distLabel = document.createElement('span');
3838
distLabel.className = 'match-badge';
39-
distLabel.style.cssText = 'background:#bbdefb;color:#0d47a1;margin-top:0.3rem;display:inline-block;';
39+
distLabel.style.cssText = 'background:#e8daef;color:#4a148c;margin-top:0.3rem;display:inline-block;';
4040
distLabel.textContent = 'Distributed';
4141
tfSection.appendChild(distLabel);
4242
}
@@ -137,7 +137,7 @@ function displayResults(result) {
137137
if (match.distributed) {
138138
const distBadge = document.createElement('span');
139139
distBadge.className = 'match-badge';
140-
distBadge.style.cssText = 'background:#bbdefb;color:#0d47a1;';
140+
distBadge.style.cssText = 'background:#e8daef;color:#4a148c;';
141141
distBadge.textContent = 'Distributed';
142142
chipsRow.appendChild(distBadge);
143143
}

0 commit comments

Comments
 (0)