@@ -35,7 +35,7 @@ const BlockCheckbox = ({
3535 >
3636 < img src = { item . url } alt = { item . title } style = { { width : '100%' , height : '100%' } } />
3737 { value === item . key && (
38- < div className = "absolute right-0 bottom-0 text-xs font-bold text-blue-600" >
38+ < div className = "absolute right-0 bottom-0 text-xs font-bold" style = { { color : token . colorPrimary } } >
3939 < CheckOutlined />
4040 </ div >
4141 ) }
@@ -55,6 +55,7 @@ const ThemeColor = ({
5555 value : string
5656 onChange : ( color : string ) => void
5757} ) => {
58+ const { token } = useToken ( )
5859 return (
5960 < div className = "flex flex-wrap gap-3" >
6061 { colors . map ( ( item ) => (
@@ -64,7 +65,7 @@ const ThemeColor = ({
6465 style = { { backgroundColor : item . color } }
6566 onClick = { ( ) => onChange ( item . color ) }
6667 >
67- { value === item . color && < CheckOutlined /> }
68+ { value === item . color && < CheckOutlined style = { { color : token . colorBgContainer } } /> }
6869 </ div >
6970 </ Tooltip >
7071 ) ) }
@@ -89,7 +90,7 @@ const SettingDrawer: React.FC<SettingDrawerProps> = ({ open, onClose }) => {
8990 styles = { { body : { padding : '20px 24px' } } }
9091 >
9192 < div className = "mb-6" >
92- < h3 className = "mb-4 text-sm font-bold text-gray-900 dark:text-gray-100 " > 整体风格设置</ h3 >
93+ < h3 className = "mb-4 text-sm font-bold" > 整体风格设置</ h3 >
9394 < div className = "flex gap-4" >
9495 < BlockCheckbox
9596 list = { [
@@ -109,7 +110,7 @@ const SettingDrawer: React.FC<SettingDrawerProps> = ({ open, onClose }) => {
109110 />
110111 </ div >
111112 < div className = "mt-4 flex items-center justify-between" >
112- < span className = "text-sm text-gray-600 dark:text-gray-400 " > 开启暗黑模式</ span >
113+ < span className = "text-sm" > 开启暗黑模式</ span >
113114 < Switch
114115 checked = { themeSettings . themeMode === 'dark' }
115116 onChange = { ( checked ) => changeSetting ( 'themeMode' , checked ? 'dark' : 'light' ) }
@@ -118,7 +119,7 @@ const SettingDrawer: React.FC<SettingDrawerProps> = ({ open, onClose }) => {
118119 </ div >
119120
120121 < div className = "mb-6" >
121- < h3 className = "mb-4 text-sm font-bold text-gray-900 dark:text-gray-100 " > 主题色</ h3 >
122+ < h3 className = "mb-4 text-sm font-bold" > 主题色</ h3 >
122123 < ThemeColor
123124 colors = { [
124125 { key : '拂晓蓝 (默认)' , color : '#1677ff' } ,
@@ -146,7 +147,7 @@ const SettingDrawer: React.FC<SettingDrawerProps> = ({ open, onClose }) => {
146147 < Divider />
147148
148149 < div className = "mb-6" >
149- < h3 className = "mb-4 text-sm font-bold text-gray-900 dark:text-gray-100 " > 导航模式</ h3 >
150+ < h3 className = "mb-4 text-sm font-bold" > 导航模式</ h3 >
150151 < BlockCheckbox
151152 list = { [
152153 {
@@ -171,7 +172,7 @@ const SettingDrawer: React.FC<SettingDrawerProps> = ({ open, onClose }) => {
171172 </ div >
172173
173174 < div className = "mb-6" >
174- < h3 className = "mb-4 text-sm font-bold text-gray-900 dark:text-gray-100 " > 内容区域宽度</ h3 >
175+ < h3 className = "mb-4 text-sm font-bold" > 内容区域宽度</ h3 >
175176 < div className = "flex justify-between" >
176177 < span > 内容区域宽度</ span >
177178 < Switch
@@ -187,7 +188,7 @@ const SettingDrawer: React.FC<SettingDrawerProps> = ({ open, onClose }) => {
187188 < Divider />
188189
189190 < div className = "mb-6" >
190- < h3 className = "mb-4 text-sm font-bold text-gray-900 dark:text-gray-100 " > 其他设置</ h3 >
191+ < h3 className = "mb-4 text-sm font-bold" > 其他设置</ h3 >
191192 < div className = "mb-3 flex justify-between" >
192193 < span > 色弱模式</ span >
193194 < Switch checked = { themeSettings . colorWeak } onChange = { ( checked ) => changeSetting ( 'colorWeak' , checked ) } />
0 commit comments