mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #26735 from overleaf/mj-system-theme
[web] Add new system theme to the editor GitOrigin-RevId: b65083c5e96abc493556e901c861689cb7e3bbf7
This commit is contained in:
committed by
Copybot
parent
72aca352fc
commit
39b4581e1d
+3
-1
@@ -37,6 +37,7 @@ import { FullProjectSearchResults } from './full-project-search-results'
|
||||
import { signalWithTimeout } from '@/utils/abort-signal'
|
||||
import { useIsNewEditorEnabled } from '@/features/ide-redesign/utils/new-editor-utils'
|
||||
import RailPanelHeader from '@/features/ide-redesign/components/rail-panel-header'
|
||||
import { useActiveOverallTheme } from '@/shared/hooks/use-active-overall-theme'
|
||||
|
||||
const FullProjectSearchUI: FC = () => {
|
||||
const { t } = useTranslation()
|
||||
@@ -57,6 +58,7 @@ const FullProjectSearchUI: FC = () => {
|
||||
() => userStyles(userSettings),
|
||||
[userSettings]
|
||||
)
|
||||
const activeOverallTheme = useActiveOverallTheme()
|
||||
|
||||
const abortControllerRef = useRef<AbortController | null>(null)
|
||||
|
||||
@@ -183,7 +185,7 @@ const FullProjectSearchUI: FC = () => {
|
||||
<div
|
||||
className="full-project-search"
|
||||
style={variableStyle}
|
||||
data-bs-theme={userSettings.overallTheme === 'light-' ? 'light' : 'dark'}
|
||||
data-bs-theme={activeOverallTheme === 'light' ? 'light' : 'dark'}
|
||||
>
|
||||
{newEditor ? (
|
||||
<RailPanelHeader title={t('search')} />
|
||||
|
||||
Reference in New Issue
Block a user