Skip to content

armgit / plexo

Public Imported from GitHub
0

Speed up downloads by combining multiple network connections in parallel

fix light mode hero styling and color contrast

Anmol Kapilc34ec924140b
diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css
index 862aed9..0609292 100644
--- a/src/renderer/src/assets/main.css
+++ b/src/renderer/src/assets/main.css
@@ -46,43 +46,48 @@
--checkbox-shadow: rgba(0, 0, 0, 0.15);
--checkbox-inset-shadow: rgba(0, 0, 0, 0.04);
+ --hero-bg: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
+ --hero-border: #e2e4e8;
+
/* Network + brand palette — light-mode originals, adapted to sit on a white ground. */
- --color-wifi: #2f8577;
- --color-wifi-bg: #e7f3f1;
- --color-wifi-border: #bfe0da;
- --color-wifi-text: #1f6358;
+ --color-wifi: #1f8a70;
+ --color-wifi-bg: #e6f6f2;
+ --color-wifi-border: #b8e6dc;
+ --color-wifi-text: #0e6b54;
--color-wifi-onsolid: #ffffff;
- --color-usb: #b5790f;
- --color-usb-bg: #fbf1de;
- --color-usb-border: #edd7a8;
- --color-usb-text: #8a5a13;
+ --color-usb: #d97706;
+ --color-usb-bg: #fef3c7;
+ --color-usb-border: #fde68a;
+ --color-usb-text: #92400e;
--color-usb-onsolid: #ffffff;
- --color-ethernet: #5567a0;
- --color-ethernet-bg: #eceef7;
- --color-ethernet-border: #c9d0ea;
- --color-ethernet-text: #3d4d82;
+ --color-ethernet: #4f64a5;
+ --color-ethernet-bg: #edf0f8;
+ --color-ethernet-border: #cbd3ed;
+ --color-ethernet-text: #374984;
--color-ethernet-onsolid: #ffffff;
- --color-neutral: #6e7278;
- --color-neutral-bg: #f0f0f1;
- --color-neutral-border: #d6d7d9;
- --color-neutral-text: #55585c;
+ --color-neutral: #6b7280;
+ --color-neutral-bg: #f3f4f6;
+ --color-neutral-border: #e5e7eb;
+ --color-neutral-text: #4b5563;
--color-neutral-onsolid: #ffffff;
- --color-accent: #b5790f;
+ --color-accent: #d97706;
--color-accent-onsolid: #ffffff;
- --color-accent-shadow: rgba(181, 121, 15, 0.2);
- --color-success: #2f8577;
+ --color-accent-shadow: rgba(217, 119, 6, 0.25);
+ --color-success: #1f8a70;
- --color-danger: #b3261e;
- --color-danger-bg: #fbeaea;
- --color-danger-border: #f0c6c4;
+ --color-danger: #dc2626;
+ --color-danger-bg: #fef2f2;
+ --color-danger-border: #fecaca;
}
@media (prefers-color-scheme: dark) {
:root {
+ --hero-bg: linear-gradient(180deg, #202325 0%, #1b1e20 100%);
+ --hero-border: #2b2f33;
/* Graphite instrument-panel background — exact hex values from the "Plexo v2" design doc. */
--bg: #1b1e20;
--bg-secondary: #202325;
diff --git a/src/renderer/src/components/NetworkRow.tsx b/src/renderer/src/components/NetworkRow.tsx
index 67870d1..944d22b 100644
--- a/src/renderer/src/components/NetworkRow.tsx
+++ b/src/renderer/src/components/NetworkRow.tsx
@@ -49,7 +49,7 @@ export function NetworkRow({
borderRadius: '50%',
background: hasError ? DANGER : visual.solid,
animation: isActive ? 'plexo-glow 1.8s infinite' : undefined,
- opacity: isActive || hasError ? 1 : 0.45
+ opacity: isActive || hasError ? 1 : 0.65
}}
/>
<div style={{ minWidth: 0, display: 'flex', alignItems: 'center', gap: 6 }}>
diff --git a/src/renderer/src/screens/CompleteScreen.tsx b/src/renderer/src/screens/CompleteScreen.tsx
index 4c78436..debc283 100644
--- a/src/renderer/src/screens/CompleteScreen.tsx
+++ b/src/renderer/src/screens/CompleteScreen.tsx
@@ -27,15 +27,9 @@ import {
const heroScopeStyle: React.CSSProperties = {
padding: '18px 20px',
- background: 'linear-gradient(#1f2224, #1b1e20)',
- borderBottom: '1px solid #2b2f33',
- color: '#f5f2ed',
- ...({
- '--text': '#f5f2ed',
- '--text-secondary': '#a9adb2',
- '--text-tertiary': '#8d9196',
- '--border': '#2b2f33'
- } as React.CSSProperties)
+ background: 'var(--hero-bg)',
+ borderBottom: '1px solid var(--hero-border)',
+ color: 'var(--text)'
}
export function CompleteScreen({
@@ -154,7 +148,7 @@ export function CompleteScreen({
style={{
marginTop: 5,
font: `11.5px/1.3 ${FONT_MONO}`,
- color: '#8d9196',
+ color: 'var(--text-tertiary)',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis'
@@ -166,7 +160,11 @@ export function CompleteScreen({
</div>
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-end', gap: 5 }}>
<div
- style={{ font: `500 9px/1 ${FONT_MONO}`, letterSpacing: '0.16em', color: '#8d9196' }}
+ style={{
+ font: `500 9px/1 ${FONT_MONO}`,
+ letterSpacing: '0.16em',
+ color: 'var(--text-tertiary)'
+ }}
>
AVERAGE
</div>
@@ -175,13 +173,15 @@ export function CompleteScreen({
style={{
font: `600 26px/0.9 ${FONT_MONO}`,
letterSpacing: '-0.02em',
- color: '#f5f2ed',
+ color: 'var(--text)',
fontVariantNumeric: 'tabular-nums'
}}
>
{formatSpeed(avgSpeed).split(' ')[0]}
</div>
- <div style={{ font: `500 11px/1 ${FONT_MONO}`, color: '#8d9196' }}>MB/s</div>
+ <div style={{ font: `500 11px/1 ${FONT_MONO}`, color: 'var(--text-tertiary)' }}>
+ MB/s
+ </div>
</div>
{activeChipOption && (
<button
diff --git a/src/renderer/src/screens/DownloadingScreen.tsx b/src/renderer/src/screens/DownloadingScreen.tsx
index abec2d6..d08be41 100644
--- a/src/renderer/src/screens/DownloadingScreen.tsx
+++ b/src/renderer/src/screens/DownloadingScreen.tsx
@@ -37,15 +37,9 @@ import {
// matter which OS appearance the rest of the window is following.
const heroScopeStyle: React.CSSProperties = {
padding: '18px 20px',
- background: 'linear-gradient(#1f2224, #1b1e20)',
- borderBottom: '1px solid #2b2f33',
- color: '#f5f2ed',
- ...({
- '--text': '#f5f2ed',
- '--text-secondary': '#a9adb2',
- '--text-tertiary': '#8d9196',
- '--border': '#2b2f33'
- } as React.CSSProperties)
+ background: 'var(--hero-bg)',
+ borderBottom: '1px solid var(--hero-border)',
+ color: 'var(--text)'
}
export function DownloadingScreen({ download }: { download: DownloadState }): React.JSX.Element {
@@ -200,7 +194,7 @@ export function DownloadingScreen({ download }: { download: DownloadState }): Re
style={{
font: `500 10px/1 ${FONT_MONO}`,
letterSpacing: '0.2em',
- color: '#8d9196',
+ color: 'var(--text-tertiary)',
display: 'flex',
alignItems: 'center',
gap: 6
@@ -228,14 +222,14 @@ export function DownloadingScreen({ download }: { download: DownloadState }): Re
style={{
font: `600 38px/0.88 ${FONT_MONO}`,
letterSpacing: '-0.03em',
- color: isPaused ? 'var(--text-tertiary)' : '#f5f2ed',
+ color: isPaused ? 'var(--text-tertiary)' : 'var(--text)',
fontVariantNumeric: 'tabular-nums'
}}
>
{isPaused ? '—' : speed.value}
</div>
{!isPaused && (
- <div style={{ font: `500 12px/1 ${FONT_MONO}`, color: '#8d9196' }}>
+ <div style={{ font: `500 12px/1 ${FONT_MONO}`, color: 'var(--text-tertiary)' }}>
{speed.unit}/s
</div>
)}
@@ -246,20 +240,20 @@ export function DownloadingScreen({ download }: { download: DownloadState }): Re
alignItems: 'center',
gap: 8,
font: `500 10px/1 ${FONT_MONO}`,
- color: '#8d9196',
+ color: 'var(--text-tertiary)',
fontVariantNumeric: 'tabular-nums'
}}
>
<span>
AVG{' '}
- <span style={{ color: '#f5f2ed', fontWeight: 600 }}>
+ <span style={{ color: 'var(--text)', fontWeight: 600 }}>
{formatSpeed(avgSpeedBytesPerSec)}
</span>
</span>
<span style={{ opacity: 0.35 }}>·</span>
<span>
PEAK{' '}
- <span style={{ color: '#f5f2ed', fontWeight: 600 }}>
+ <span style={{ color: 'var(--text)', fontWeight: 600 }}>
{formatSpeed(peakSpeedBytesPerSec)}
</span>
</span>
@@ -314,7 +308,7 @@ export function DownloadingScreen({ download }: { download: DownloadState }): Re
style={{
font: `500 9.5px/1 ${FONT_MONO}`,
letterSpacing: '0.12em',
- color: '#8d9196'
+ color: 'var(--text-tertiary)'
}}
>
THROUGHPUT · {isPaused ? 'PAUSED' : `LAST ${speedHistory.length}S`}