mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 11:44:28 +08:00
refactor(DisplaySettings): update button styles for zoom controls and color picker to enhance UI consistency
This commit is contained in:
parent
b41c89972b
commit
76387643f7
@ -172,7 +172,7 @@ const DisplaySettings: FC = () => {
|
||||
value={userTheme.colorPrimary}
|
||||
onChange={(color) => handleColorPrimaryChange(color.toHexString())}
|
||||
showText
|
||||
style={{ width: '110px' }}
|
||||
size="small"
|
||||
presets={[
|
||||
{
|
||||
label: 'Presets',
|
||||
@ -198,13 +198,15 @@ const DisplaySettings: FC = () => {
|
||||
<SettingRow>
|
||||
<SettingRowTitle>{t('settings.zoom.title')}</SettingRowTitle>
|
||||
<ZoomButtonGroup>
|
||||
<Button onClick={() => handleZoomFactor(-0.1)} icon={<Minus size="14" />} />
|
||||
<Button onClick={() => handleZoomFactor(-0.1)} icon={<Minus size="14" />} color="default" variant="text" />
|
||||
<ZoomValue>{Math.round(currentZoom * 100)}%</ZoomValue>
|
||||
<Button onClick={() => handleZoomFactor(0.1)} icon={<Plus size="14" />} />
|
||||
<Button onClick={() => handleZoomFactor(0.1)} icon={<Plus size="14" />} color="default" variant="text" />
|
||||
<Button
|
||||
onClick={() => handleZoomFactor(0, true)}
|
||||
style={{ marginLeft: 8 }}
|
||||
icon={<RotateCcw size="14" />}
|
||||
color="default"
|
||||
variant="text"
|
||||
/>
|
||||
</ZoomButtonGroup>
|
||||
</SettingRow>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user