Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

disable custom cursor feature (#246)

Caleb Taylor10a77209e550
diff --git a/js/app/packages/app/component/settings/Appearance.tsx b/js/app/packages/app/component/settings/Appearance.tsx
index df762ed977..f4641c06b0 100644
--- a/js/app/packages/app/component/settings/Appearance.tsx
+++ b/js/app/packages/app/component/settings/Appearance.tsx
@@ -2,8 +2,9 @@
import { ToggleSwitch } from '@core/component/FormControls/ToggleSwitch';
import { TabContent } from '@core/component/TabContent';
+import { ENABLE_CUSTOM_CURSOR } from '@core/constant/featureFlags';
import { isMobileWidth } from '@core/mobile/mobileWidth';
-import { createEffect, createSignal } from 'solid-js';
+import { createEffect, createSignal, Show } from 'solid-js';
import { ThemeEditorAdvanced } from '../../../block-theme/components/ThemeEditorAdvanced';
import { ThemeEditorBasic } from '../../../block-theme/components/ThemeEditorBasic';
import ThemeList from '../../../block-theme/components/ThemeList';
@@ -74,24 +75,26 @@ export function Appearance() {
<ThemeEditorAdvanced />
<ThemeList />
</div>
- <div
- style={{
- 'font-family': 'var(--font-mono)',
- border: '1px solid var(--b4)',
- 'box-sizing': 'border-box',
- padding: '12px 20px',
- display: 'flex',
- 'align-items': 'center',
- 'justify-content': 'space-between',
- 'font-size': '14px',
- }}
- >
- <span>Themed cursor</span>
- <ToggleSwitch
- checked={cursorEnabled()}
- onChange={(enabled) => setCursorEnabled(enabled)}
- />
- </div>
+ <Show when={ENABLE_CUSTOM_CURSOR}>
+ <div
+ style={{
+ 'font-family': 'var(--font-mono)',
+ border: '1px solid var(--b4)',
+ 'box-sizing': 'border-box',
+ padding: '12px 20px',
+ display: 'flex',
+ 'align-items': 'center',
+ 'justify-content': 'space-between',
+ 'font-size': '14px',
+ }}
+ >
+ <span>Themed cursor</span>
+ <ToggleSwitch
+ checked={cursorEnabled()}
+ onChange={(enabled) => setCursorEnabled(enabled)}
+ />
+ </div>
+ </Show>
<div
style={{
'font-family': 'var(--font-mono)',
diff --git a/js/app/packages/core/constant/featureFlags.ts b/js/app/packages/core/constant/featureFlags.ts
index 9a1553d965..28d481faa2 100644
--- a/js/app/packages/core/constant/featureFlags.ts
+++ b/js/app/packages/core/constant/featureFlags.ts
@@ -153,4 +153,4 @@ export const ENABLE_PREVIEW = true;
export const ENABLE_DOCK_NOTITIFCATIONS = DEV_MODE_ENV;
export const ENABLE_TTFT = DEV_MODE_ENV;
-export const ENABLE_CUSTOM_CURSOR = true;
+export const ENABLE_CUSTOM_CURSOR = false;