Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/AppBackground.tsx,app/src/components/settings/panels/ThemeSt

Steven Enamakelf354a3c3d68b
diff --git a/app/src/components/AppBackground.tsx b/app/src/components/AppBackground.tsx
index b11b21b322..b72e68aa4b 100644
--- a/app/src/components/AppBackground.tsx
+++ b/app/src/components/AppBackground.tsx
@@ -8,10 +8,16 @@ interface AppBackgroundProps {
/**
* The app's shared background layer. The backdrop is theme-controlled:
- * - `solid` (default): just the dotted canvas over the themed flat body — no
- * gradient. The default is flat on purpose; the animated shader is opt-in.
- * - `mesh`: animated WebGL mesh gradient (theme-tinted) + dotted canvas.
- * - `image`: a cover image over the dotted canvas.
+ * - `solid` (default): the themed flat body, no gradient. The default is flat
+ * on purpose; the animated shader is opt-in.
+ * - `mesh`: animated WebGL mesh gradient (theme-tinted).
+ * - `image`: a cover image.
+ *
+ * A dotted-canvas overlay used to sit above all three, with a Theme Studio
+ * toggle and a `backdrop.dots` field behind it. It was removed outright rather
+ * than defaulted off, so there is no setting to rediscover and no config key
+ * left to honour — a persisted custom theme carrying `dots` simply has an
+ * extra property nothing reads.
*
* Renders as an absolutely-positioned layer that fills its parent; place
* foreground content in a sibling `relative z-10` container.
@@ -19,7 +25,6 @@ interface AppBackgroundProps {
export default function AppBackground({ className = '' }: AppBackgroundProps) {
const theme = useAppSelector(selectEffectiveTheme);
const backdrop = theme.backdrop?.kind ?? 'solid';
- const showDots = theme.backdrop?.dots !== false; // default on
return (
<div className={`absolute inset-0 overflow-hidden ${className}`} aria-hidden="true">
@@ -30,9 +35,6 @@ export default function AppBackground({ className = '' }: AppBackgroundProps) {
style={{ backgroundImage: `url("${theme.backdrop.imageUrl}")` }}
/>
)}
- {showDots && (
- <div className="absolute inset-0 bg-transparent bg-[radial-gradient(circle_at_center,rgb(var(--content)/0.1)_1px,transparent_1px)] bg-size-[18px_18px] bg-position-[0_0]" />
- )}
</div>
);
}
diff --git a/app/src/components/settings/panels/ThemeStudioPanel.test.tsx b/app/src/components/settings/panels/ThemeStudioPanel.test.tsx
index c2575db695..9bf5074fd2 100644
--- a/app/src/components/settings/panels/ThemeStudioPanel.test.tsx
+++ b/app/src/components/settings/panels/ThemeStudioPanel.test.tsx
@@ -65,7 +65,7 @@ describe('<ThemeStudioPanel />', () => {
colors: { surface: '1 2 3' },
fonts: {},
gradient: { canvas: 'linear-gradient(red, blue)' },
- backdrop: { kind: 'image', imageUrl: 'https://example.com/bg.jpg', dots: false },
+ backdrop: { kind: 'image', imageUrl: 'https://example.com/bg.jpg' },
};
fireEvent.change(screen.getByLabelText('Import theme'), {
@@ -76,7 +76,7 @@ describe('<ThemeStudioPanel />', () => {
expect(store.getState().theme.customThemes[0]).toMatchObject({
name: 'Imported studio theme',
gradient: { canvas: 'linear-gradient(red, blue)' },
- backdrop: { kind: 'image', imageUrl: 'https://example.com/bg.jpg', dots: false },
+ backdrop: { kind: 'image', imageUrl: 'https://example.com/bg.jpg' },
});
});
});
diff --git a/app/src/components/settings/panels/ThemeStudioPanel.tsx b/app/src/components/settings/panels/ThemeStudioPanel.tsx
index c3acf9822d..09593f4bf8 100644
--- a/app/src/components/settings/panels/ThemeStudioPanel.tsx
+++ b/app/src/components/settings/panels/ThemeStudioPanel.tsx
@@ -100,7 +100,6 @@ function importedBackdrop(parsed: Partial<Theme>): Theme['backdrop'] {
return {
kind,
imageUrl: typeof parsed.backdrop.imageUrl === 'string' ? parsed.backdrop.imageUrl : undefined,
- dots: typeof parsed.backdrop.dots === 'boolean' ? parsed.backdrop.dots : undefined,
};
}
@@ -437,14 +436,6 @@ const ThemeStudioPanel = ({ embedded = false }: ThemeStudioPanelProps = {}) => {
className="text-xs"
/>
)}
- <label className="flex items-center gap-2 text-xs text-content-secondary">
- <Checkbox
- checked={effectiveTheme.backdrop?.dots !== false}
- onCheckedChange={next => dispatch(setThemeBackdrop({ dots: next }))}
- className="h-3.5 w-3.5"
- />
- {t('settings.theme.backdropDots', 'Show background dots')}
- </label>
<p className="text-[11px] text-content-faint">
{t(
'settings.theme.backdropHint',
diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.ts
index 63de2d781c..f92e030923 100644
--- a/app/src/lib/i18n/ar.ts
+++ b/app/src/lib/i18n/ar.ts
@@ -5250,7 +5250,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'لون موحّد',
'settings.theme.backdrop.image': 'صورة',
'settings.theme.backdropImageUrl': 'رابط صورة الخلفية',
- 'settings.theme.backdropDots': 'إظهار نقاط الخلفية',
'settings.theme.backdropHint':
'تعرض الشبكة التدرّج المتحرك؛ ويستخدم اللون الموحّد خلفية ثابتة؛ وترسم الصورة خلفيتك الخاصة.',
'settings.theme.autoForkHint': 'تعديل سمة جاهزة يحفظ تغييراتك تلقائيًا كسمة مخصّصة جديدة.',
diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.ts
index 04b37813d2..0a48690f47 100644
--- a/app/src/lib/i18n/bn.ts
+++ b/app/src/lib/i18n/bn.ts
@@ -5373,7 +5373,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'একরঙা',
'settings.theme.backdrop.image': 'ছবি',
'settings.theme.backdropImageUrl': 'পটভূমির ছবির URL',
- 'settings.theme.backdropDots': 'পটভূমির বিন্দু দেখান',
'settings.theme.backdropHint':
'মেশ অ্যানিমেটেড গ্রেডিয়েন্ট দেখায়; একরঙা একটি সমতল পটভূমি ব্যবহার করে; ছবি আপনার নিজের পটভূমি আঁকে।',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.ts
index bb679f37b6..ab400ac3ca 100644
--- a/app/src/lib/i18n/de.ts
+++ b/app/src/lib/i18n/de.ts
@@ -5516,7 +5516,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Einfarbig',
'settings.theme.backdrop.image': 'Bild',
'settings.theme.backdropImageUrl': 'URL des Hintergrundbilds',
- 'settings.theme.backdropDots': 'Hintergrundpunkte anzeigen',
'settings.theme.backdropHint':
'Netz zeigt den animierten Farbverlauf; Einfarbig nutzt einen flachen Hintergrund; Bild verwendet dein eigenes.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.ts
index dd3774e19a..c760b712a2 100644
--- a/app/src/lib/i18n/en.ts
+++ b/app/src/lib/i18n/en.ts
@@ -5985,7 +5985,6 @@ const en: TranslationMap = {
'settings.theme.backdrop.solid': 'Solid',
'settings.theme.backdrop.image': 'Image',
'settings.theme.backdropImageUrl': 'Background image URL',
- 'settings.theme.backdropDots': 'Show background dots',
'settings.theme.backdropHint':
'Mesh shows the animated gradient; Solid uses a flat background; Image paints your own.',
'settings.theme.builtInBadge': 'Preset',
diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.ts
index eb71b79274..62b0b831d2 100644
--- a/app/src/lib/i18n/es.ts
+++ b/app/src/lib/i18n/es.ts
@@ -5475,7 +5475,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Sólido',
'settings.theme.backdrop.image': 'Imagen',
'settings.theme.backdropImageUrl': 'URL de la imagen de fondo',
- 'settings.theme.backdropDots': 'Mostrar puntos de fondo',
'settings.theme.backdropHint':
'La malla muestra el degradado animado; Sólido usa un fondo plano; Imagen pinta el tuyo propio.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.ts
index a626e6f338..b48097a7c5 100644
--- a/app/src/lib/i18n/fr.ts
+++ b/app/src/lib/i18n/fr.ts
@@ -5501,7 +5501,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Uni',
'settings.theme.backdrop.image': 'Image',
'settings.theme.backdropImageUrl': "URL de l'image d'arrière-plan",
- 'settings.theme.backdropDots': "Afficher les points d'arrière-plan",
'settings.theme.backdropHint':
'Le maillage affiche le dégradé animé ; Uni utilise un fond plat ; Image affiche le vôtre.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.ts
index 825b0a54a2..309d8516a7 100644
--- a/app/src/lib/i18n/hi.ts
+++ b/app/src/lib/i18n/hi.ts
@@ -5371,7 +5371,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'ठोस',
'settings.theme.backdrop.image': 'छवि',
'settings.theme.backdropImageUrl': 'पृष्ठभूमि छवि URL',
- 'settings.theme.backdropDots': 'पृष्ठभूमि बिंदु दिखाएं',
'settings.theme.backdropHint':
'मेश एनिमेटेड ग्रेडिएंट दिखाता है; ठोस एक सपाट पृष्ठभूमि का उपयोग करता है; छवि आपकी अपनी पृष्ठभूमि बनाती है।',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.ts
index ede8f92239..799c22a685 100644
--- a/app/src/lib/i18n/id.ts
+++ b/app/src/lib/i18n/id.ts
@@ -5398,7 +5398,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Solid',
'settings.theme.backdrop.image': 'Gambar',
'settings.theme.backdropImageUrl': 'URL gambar latar belakang',
- 'settings.theme.backdropDots': 'Tampilkan titik latar belakang',
'settings.theme.backdropHint':
'Jaring menampilkan gradien beranimasi; Solid menggunakan latar belakang polos; Gambar menampilkan milik Anda sendiri.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.ts
index cb0ff7dc3b..c5b9668d9e 100644
--- a/app/src/lib/i18n/it.ts
+++ b/app/src/lib/i18n/it.ts
@@ -5463,7 +5463,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Tinta unita',
'settings.theme.backdrop.image': 'Immagine',
'settings.theme.backdropImageUrl': "URL dell'immagine di sfondo",
- 'settings.theme.backdropDots': 'Mostra punti di sfondo',
'settings.theme.backdropHint':
'Il reticolo mostra il gradiente animato; Tinta unita usa uno sfondo piatto; Immagine usa la tua.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.ts
index 3f9a749fb7..0c46b14996 100644
--- a/app/src/lib/i18n/ko.ts
+++ b/app/src/lib/i18n/ko.ts
@@ -5309,7 +5309,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': '단색',
'settings.theme.backdrop.image': '이미지',
'settings.theme.backdropImageUrl': '배경 이미지 URL',
- 'settings.theme.backdropDots': '배경 점 표시',
'settings.theme.backdropHint':
'메시는 애니메이션 그라데이션을 표시하고, 단색은 평면 배경을 사용하며, 이미지는 직접 지정한 배경을 사용합니다.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.ts
index dc6649b9dd..128397df4b 100644
--- a/app/src/lib/i18n/pl.ts
+++ b/app/src/lib/i18n/pl.ts
@@ -5454,7 +5454,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Jednolity',
'settings.theme.backdrop.image': 'Obraz',
'settings.theme.backdropImageUrl': 'URL obrazu tła',
- 'settings.theme.backdropDots': 'Pokaż kropki tła',
'settings.theme.backdropHint':
'Siatka pokazuje animowany gradient; Jednolity używa płaskiego tła; Obraz wyświetla Twój własny.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.ts
index 06427b7959..48cd78d053 100644
--- a/app/src/lib/i18n/pt.ts
+++ b/app/src/lib/i18n/pt.ts
@@ -5456,7 +5456,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Sólido',
'settings.theme.backdrop.image': 'Imagem',
'settings.theme.backdropImageUrl': 'URL da imagem de fundo',
- 'settings.theme.backdropDots': 'Mostrar pontos de fundo',
'settings.theme.backdropHint':
'A malha mostra o gradiente animado; Sólido usa um fundo plano; Imagem exibe o seu próprio.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.ts
index 38607343f3..53b013b49a 100644
--- a/app/src/lib/i18n/ru.ts
+++ b/app/src/lib/i18n/ru.ts
@@ -5425,7 +5425,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': 'Сплошной',
'settings.theme.backdrop.image': 'Изображение',
'settings.theme.backdropImageUrl': 'URL фонового изображения',
- 'settings.theme.backdropDots': 'Показывать точки фона',
'settings.theme.backdropHint':
'Сетка показывает анимированный градиент; Сплошной использует ровный фон; Изображение задаёт ваш собственный.',
'settings.theme.autoForkHint':
diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.ts
index c2486840a8..5293c8e57f 100644
--- a/app/src/lib/i18n/zh-CN.ts
+++ b/app/src/lib/i18n/zh-CN.ts
@@ -5085,7 +5085,6 @@ const messages: TranslationMap = {
'settings.theme.backdrop.solid': '纯色',
'settings.theme.backdrop.image': '图片',
'settings.theme.backdropImageUrl': '背景图片 URL',
- 'settings.theme.backdropDots': '显示背景圆点',
'settings.theme.backdropHint': '网格显示动态渐变;纯色使用平面背景;图片使用你自己的背景。',
'settings.theme.autoForkHint': '编辑预设主题会自动将更改保存为新的自定义主题。',
'settings.theme.title': '主题工作室',
diff --git a/app/src/lib/theme/types.ts b/app/src/lib/theme/types.ts
index 5157751287..c900335aab 100644
--- a/app/src/lib/theme/types.ts
+++ b/app/src/lib/theme/types.ts
@@ -40,8 +40,6 @@ export interface Theme {
backdrop?: {
kind: 'mesh' | 'solid' | 'image';
imageUrl?: string;
- /** Show the dotted-canvas overlay (default true when omitted). */
- dots?: boolean;
};
}
diff --git a/app/src/store/themeSlice.ts b/app/src/store/themeSlice.ts
index 2087b186bc..913bbdca73 100644
--- a/app/src/store/themeSlice.ts
+++ b/app/src/store/themeSlice.ts
@@ -168,13 +168,12 @@ const themeSlice = createSlice({
const theme = ensureEditableCustom(state);
theme.fonts[action.payload.role] = action.payload.stack;
},
- /** Patch the backdrop (mesh/solid/image, dots); auto-forks a preset. */
+ /** Patch the backdrop (mesh/solid/image); auto-forks a preset. */
setThemeBackdrop(
state,
action: PayloadAction<{
kind?: 'mesh' | 'solid' | 'image';
imageUrl?: string;
- dots?: boolean;
}>
) {
const theme = ensureEditableCustom(state);