The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(settings): restore missing theme layout settings panel
Steven Enamakelbf54829870fc
diff --git a/app/src/components/settings/panels/AppearancePanel.tsx b/app/src/components/settings/panels/AppearancePanel.tsxindex 208b8ea6ee..59be45de01 100644--- a/app/src/components/settings/panels/AppearancePanel.tsx+++ b/app/src/components/settings/panels/AppearancePanel.tsx@@ -16,9 +16,12 @@ import {import { Card, Slider } from '../../ui';import { SettingsNumberField } from '../controls';import SettingsPanel from '../layout/SettingsPanel';+import LayoutSettings from './theme/LayoutSettings';import ThemeStudioPanel from './ThemeStudioPanel';-type AppearanceTab = 'general' | 'studio';+type AppearanceTab = 'general' | 'studio' | 'layout';++const TAB_HASH: Record<AppearanceTab, string> = { general: '', studio: '#studio', layout: '#layout' };interface FontSizeOption {id: FontSize;@@ -36,11 +39,10 @@ const AppearancePanel = () => {const navigate = useNavigate();// The URL hash is the source of truth for the tab, so `/settings/theme`// (which redirects to `#studio`) and deep links land on the right one.- const tab: AppearanceTab = location.hash === '#studio' ? 'studio' : 'general';+ const tab: AppearanceTab =+ location.hash === '#studio' ? 'studio' : location.hash === '#layout' ? 'layout' : 'general';const selectTab = (next: AppearanceTab) => {- navigate(`${location.pathname}${location.search}${next === 'studio' ? '#studio' : ''}`, {- replace: true,- });+ navigate(`${location.pathname}${location.search}${TAB_HASH[next]}`, { replace: true });};// Local draft for the numeric px field so partial typing doesn't thrash the@@ -213,6 +215,13 @@ const AppearancePanel = () => {content: <ThemeStudioPanel embedded part="customize" />,contentClassName: 'space-y-5',},+ // Corner rounding, border contrast, and which areas draw borders.+ {+ id: 'layout',+ label: t('settings.layout.title'),+ content: <LayoutSettings />,+ contentClassName: 'space-y-5',+ },]}/>);diff --git a/app/src/components/settings/panels/theme/LayoutSettings.tsx b/app/src/components/settings/panels/theme/LayoutSettings.tsxindex 8114c020a0..19d922f3bb 100644--- a/app/src/components/settings/panels/theme/LayoutSettings.tsx+++ b/app/src/components/settings/panels/theme/LayoutSettings.tsx@@ -105,10 +105,12 @@ const LayoutSettings = () => {{BORDER_AREAS.map(area => (<Fieldkey={area}+ htmlFor={`layout-area-${area}`}label={areaLabel[area].label}description={areaLabel[area].description}control={<Switch+ id={`layout-area-${area}`}checked={layout.borderAreas[area]}onCheckedChange={next =>dispatch(setThemeLayout({ borderAreas: { [area]: next } }))