mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
[enhancement]: use ColorInput for text rgb selection
This commit is contained in:
@@ -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 New Issue
Block a user