[enhancement]: use ColorInput for text rgb selection
This commit is contained in:
parent
527e6a76b5
commit
45e589fbb1
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { ColorPicker, Stack } from '@mantine/core';
|
import { ColorInput, Stack } from '@mantine/core';
|
||||||
import { Switch, Select, Text } from '/@/renderer/components';
|
import { Switch, Select } from '/@/renderer/components';
|
||||||
import {
|
import {
|
||||||
SettingsSection,
|
SettingsSection,
|
||||||
SettingOption,
|
SettingOption,
|
||||||
|
@ -123,7 +123,7 @@ export const ThemeSettings = () => {
|
||||||
{
|
{
|
||||||
control: (
|
control: (
|
||||||
<Stack align="center">
|
<Stack align="center">
|
||||||
<ColorPicker
|
<ColorInput
|
||||||
defaultValue={settings.accent}
|
defaultValue={settings.accent}
|
||||||
format="rgb"
|
format="rgb"
|
||||||
swatches={[
|
swatches={[
|
||||||
|
@ -134,6 +134,7 @@ export const ThemeSettings = () => {
|
||||||
'rgb(170, 110, 216)',
|
'rgb(170, 110, 216)',
|
||||||
]}
|
]}
|
||||||
swatchesPerRow={5}
|
swatchesPerRow={5}
|
||||||
|
withEyeDropper={false}
|
||||||
onChangeEnd={(e) => {
|
onChangeEnd={(e) => {
|
||||||
setSettings({
|
setSettings({
|
||||||
general: {
|
general: {
|
||||||
|
@ -143,7 +144,6 @@ export const ThemeSettings = () => {
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Text>{settings.accent}</Text>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
),
|
),
|
||||||
description: t('setting.accentColor', {
|
description: t('setting.accentColor', {
|
||||||
|
|
Reference in a new issue