Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: remove the edge fades appearance setting (#7143)
Michael Han162cf3858676
diff --git a/studio/backend/routes/settings.py b/studio/backend/routes/settings.pyindex 3fa9df0dde2..1ddfc0eacb3 100644--- a/studio/backend/routes/settings.py+++ b/studio/backend/routes/settings.py@@ -708,7 +708,6 @@ class PersonalizationCustomization(BaseModel):pointerCursors: bool = FalsereduceMotion: Literal["system", "on", "off"] = "system"fontSmoothing: bool = True- edgeFades: bool = TruesidebarMenu: list[PersonalizationSidebarMenuItem] = Field(default_factory = _default_sidebar_menu,max_length = MAX_SIDEBAR_MENU_INPUT_ITEMS,diff --git a/studio/backend/tests/test_personalization_settings.py b/studio/backend/tests/test_personalization_settings.pyindex 0b3c20c7891..7b5e70deccc 100644--- a/studio/backend/tests/test_personalization_settings.py+++ b/studio/backend/tests/test_personalization_settings.py@@ -56,7 +56,6 @@ def test_customization_defaults():assert c.contrast == 50assert c.reduceMotion == "system"assert c.fontSmoothing is True- assert c.edgeFades is Trueassert c.pointerCursors is Falseassert c.colors.light.accent is Noneassert c.headingFont is None@@ -370,7 +369,6 @@ def test_personalization_route_roundtrip_real_shape(monkeypatch):"pointerCursors": True,"reduceMotion": "off","fontSmoothing": True,- "edgeFades": False,"sidebarMenu": [{"id": "darkMode", "visible": True},{"id": "api", "visible": False},diff --git a/studio/frontend/src/features/hub/hub.css b/studio/frontend/src/features/hub/hub.cssindex 398caaec83a..947dd8cb349 100644--- a/studio/frontend/src/features/hub/hub.css+++ b/studio/frontend/src/features/hub/hub.css@@ -1527,16 +1527,3 @@ html.dark .hub-page [data-hub-scroll="true"]::-webkit-scrollbar-thumb {body[data-scroll-locked] .hub-modal-pe-guard {pointer-events: none !important;}--@layer components {- /* Edge fades off (Appearance setting): hub scroll dissolves become thin- divider lines. */- html.no-edge-fades .hub-page .hub-detail-bar::after {- height: 1px;- background: var(--border);- }- html.no-edge-fades .hub-page .hub-scroll-fade {- background: none;- border-top: 1px solid var(--border);- }-}diff --git a/studio/frontend/src/features/settings/components/appearance-custom-controls.tsx b/studio/frontend/src/features/settings/components/appearance-custom-controls.tsxindex c249e852cf2..bd5459f88fd 100644--- a/studio/frontend/src/features/settings/components/appearance-custom-controls.tsx+++ b/studio/frontend/src/features/settings/components/appearance-custom-controls.tsx@@ -846,17 +846,6 @@ export function CodeFontSizeRow() {);}-export function EdgeFadesSwitch() {- const edgeFades = useAppearanceCustomStore((s) => s.customization.edgeFades);- const patch = useAppearanceCustomStore((s) => s.patch);- return (- <Switch- checked={edgeFades}- onCheckedChange={(checked) => patch({ edgeFades: checked })}- />- );-}-export function FontSmoothingSwitch() {const fontSmoothing = useAppearanceCustomStore((s) => s.customization.fontSmoothing,diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.tsindex 3c6577ab35d..36191835e57 100644--- a/studio/frontend/src/features/settings/settings-search.ts+++ b/studio/frontend/src/features/settings/settings-search.ts@@ -58,7 +58,6 @@ export const SETTINGS_SEARCH_INDEX: Record<SettingsTab, TranslationKey[]> = {"settings.appearance.custom.uiFontSize.label","settings.appearance.custom.codeFontSize.label","settings.appearance.custom.fontSmoothing.label",- "settings.appearance.custom.edgeFades.label","settings.appearance.layout.compactSidebar","settings.appearance.sidebarMenu.title","settings.appearance.sidebarMenu.darkModeToggle",diff --git a/studio/frontend/src/features/settings/stores/appearance-custom-store.ts b/studio/frontend/src/features/settings/stores/appearance-custom-store.tsindex e2b078843e8..b8c8d96f5aa 100644--- a/studio/frontend/src/features/settings/stores/appearance-custom-store.ts+++ b/studio/frontend/src/features/settings/stores/appearance-custom-store.ts@@ -111,8 +111,6 @@ export type AppearanceCustomization = {reduceMotion: ReduceMotionSetting;/** true = the app default (antialiased). */fontSmoothing: boolean;- /** true = content dissolves at panel edges; false = thin divider lines. */- edgeFades: boolean;/** Order and visibility of the optional sidebar profile menu items. */sidebarMenu: SidebarMenuItemPref[];};@@ -136,7 +134,6 @@ export const DEFAULT_CUSTOMIZATION: AppearanceCustomization = {pointerCursors: false,reduceMotion: "system",fontSmoothing: true,- edgeFades: true,sidebarMenu: SIDEBAR_MENU_ITEM_IDS.map((id) => ({id,visible: SIDEBAR_MENU_DEFAULT_VISIBLE[id],@@ -275,7 +272,6 @@ export function sanitizeCustomization(value: unknown): AppearanceCustomization {? source.reduceMotion: "system",fontSmoothing: source.fontSmoothing !== false,- edgeFades: source.edgeFades !== false,sidebarMenu: sanitizeSidebarMenu(source.sidebarMenu),};}@@ -548,9 +544,6 @@ export function applyCustomizationToDocument(// the media rules in index.css skip html.force-motion.el.classList.toggle("force-motion", c.reduceMotion === "off");el.classList.toggle("no-font-smoothing", !c.fontSmoothing);- // Off swaps the scroll-edge dissolves for thin divider lines (index.css- // and hub.css key their fade rules off this class).- el.classList.toggle("no-edge-fades", !c.edgeFades);}/**diff --git a/studio/frontend/src/features/settings/tabs/appearance-tab.tsx b/studio/frontend/src/features/settings/tabs/appearance-tab.tsxindex 47f0f974e6f..1ee8c0d349c 100644--- a/studio/frontend/src/features/settings/tabs/appearance-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/appearance-tab.tsx@@ -10,7 +10,6 @@ import {CodeFontRow,CodeFontSizeRow,ContrastSliderRow,- EdgeFadesSwitch,FontSmoothingSwitch,HeadingFontRow,PointerCursorsSwitch,@@ -142,12 +141,6 @@ export function AppearanceTab() {><FontSmoothingSwitch /></SettingsRow>- <SettingsRow- label={t("settings.appearance.custom.edgeFades.label")}- description={t("settings.appearance.custom.edgeFades.description")}- >- <EdgeFadesSwitch />- </SettingsRow><SettingsRowlabel={t("settings.appearance.layout.compactSidebar")}description={t(diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex ba4e405921e..3e351c22bc7 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -346,11 +346,6 @@ export const en = {label: "Font smoothing",description: "Use smoothed font anti-aliasing.",},- edgeFades: {- label: "Edge fades",- description:- "Fade content at panel edges. Off shows a thin divider line instead.",- },contrast: {label: "Contrast",description: "Strength of borders and secondary text.",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 7cc74b0716a..44bb617512d 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -321,10 +321,6 @@ export const ja = {label: "フォントスムージング",description: "滑らかなアンチエイリアスを使用します。",},- edgeFades: {- label: "エッジのフェード",- description: "パネル端でコンテンツをフェードします。オフにすると細い区切り線を表示します。",- },contrast: {label: "コントラスト",description: "枠線と補助テキストの強さ。",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex 751abbc9229..d689b96428b 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -344,10 +344,6 @@ export const ptBR = {label: "Suavização de fonte",description: "Usar anti-aliasing suavizado nas fontes.",},- edgeFades: {- label: "Esmaecimento nas bordas",- description: "Esmaece o conteúdo nas bordas dos painéis. Desligado mostra uma linha divisória fina.",- },contrast: {label: "Contraste",description: "Intensidade das bordas e do texto secundário.",diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex ff1e9ead3b7..fc4e126d728 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -343,10 +343,6 @@ export const zhCN = {label: "字体平滑",description: "使用平滑的字体抗锯齿。",},- edgeFades: {- label: "边缘淡出",- description: "在面板边缘淡出内容。关闭后显示细分隔线。",- },contrast: {label: "对比度",description: "边框和次要文本的强度。",diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex a820f5ce073..bcc3f6f9d31 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -93,47 +93,6 @@);mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent);}-- /* Edge fades off (Appearance setting): every dissolve above becomes a- thin divider line at the same boundary. */- html.no-edge-fades .sidebar-scroll-fade.is-scrolled,- html.no-edge-fades .model-list-scroll.is-scrolled,- html.no-edge-fades .model-list-scroll.is-bottom-faded,- html.no-edge-fades .model-list-scroll.is-scrolled.is-bottom-faded,- html.no-edge-fades .rag-docs-bottom-fade {- -webkit-mask-image: none;- mask-image: none;- }- html.no-edge-fades .sidebar-scroll-fade.is-scrolled {- border-top: 1px solid var(--sidebar-border);- }- html.no-edge-fades .sidebar-bottom-fade::after {- height: 1px;- background: var(--sidebar-border);- }- html.no-edge-fades .model-list-scroll.is-scrolled {- border-top: 1px solid var(--border);- }- html.no-edge-fades .model-list-scroll.is-bottom-faded {- border-bottom: 1px solid var(--border);- }- html.no-edge-fades .rag-docs-bottom-fade {- border-bottom: 1px solid var(--border);- }- /* Chat thread: gradient wash above the composer becomes a hairline at- its top edge; the chat header's under-fade becomes a hairline too.- !important beats the Tailwind gradient/mask utilities on the nodes. */- html.no-edge-fades .thread-bottom-fade {- background: none !important;- backdrop-filter: none !important;- -webkit-mask-image: none !important;- mask-image: none !important;- border-top: 1px solid var(--border);- }- html.no-edge-fades .chat-header-fade {- background: none !important;- border-top: 1px solid var(--border);- }}@layer base {