Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
feat(sidepanel): add dark mode support (#5114)
Wenzhao Hue08c0a6bd918
diff --git a/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx b/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsxindex 96380550c6..d68de6b1ef 100644--- a/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx+++ b/packages/ui/src/views/components/shortcut-panel/ShortcutPanel.tsx@@ -89,7 +89,12 @@ export function ShortcutPanel() {}, [shortcutService, updateShortcuts]);return (- <ul className="univer-m-0 univer-list-none univer-p-0 univer-text-gray-900">+ <ul+ className={`+ univer-m-0 univer-list-none univer-p-0 univer-text-gray-900+ dark:univer-text-white+ `}+ >{shortcutItems.map((group) => (<li key={group.name}><div className="univer-flex univer-h-10 univer-items-center univer-text-sm univer-font-semibold">@@ -101,6 +106,7 @@ export function ShortcutPanel() {univer-list-none univer-p-0[&>li]:univer-border-0 [&>li]:univer-border-b [&>li]:univer-border-solid[&>li]:univer-border-b-gray-200+ dark:[&>li]:univer-border-b-gray-700`}>{group.items.map((item) => (diff --git a/packages/ui/src/views/components/sidebar/Sidebar.tsx b/packages/ui/src/views/components/sidebar/Sidebar.tsxindex bba9c3bf9e..147b7d1568 100644--- a/packages/ui/src/views/components/sidebar/Sidebar.tsx+++ b/packages/ui/src/views/components/sidebar/Sidebar.tsx@@ -113,7 +113,7 @@ export function Sidebar() {}return (<section- className={clsx('univer-relative univer-h-full univer-text-gray-800', {+ className={clsx('univer-relative univer-h-full', {'univer-w-96 univer-translate-x-0': options?.visible,'univer-w-0 univer-translate-x-full': !options?.visible,})}@@ -125,6 +125,7 @@ export function Sidebar() {univer-overflow-y-auto univer-border-0 univer-border-b univer-border-l univer-border-soliduniver-border-gray-200 univer-bg-white univer-scrollbar-thin univer-scrollbar-track-gray-50univer-scrollbar-thumb-gray-300+ dark:univer-bg-black dark:univer-scrollbar-track-gray-900 dark:univer-scrollbar-thumb-gray-700`}ref={scrollRef}>@@ -132,6 +133,8 @@ export function Sidebar() {className={`univer-sticky univer-top-0 univer-z-10 univer-box-border univer-flex univer-items-centeruniver-justify-between univer-bg-white univer-p-4 univer-pb-2 univer-text-base univer-font-medium+ univer-text-gray-800+ dark:univer-bg-black dark:univer-text-white`}>{options?.header}