Skip to content

Commit

Permalink
[enhancement]: use ColorInput for text rgb selection
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Jan 25, 2024
1 parent 527e6a7 commit 45e589f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ColorPicker, Stack } from '@mantine/core';
import { Switch, Select, Text } from '/@/renderer/components';
import { ColorInput, Stack } from '@mantine/core';
import { Switch, Select } from '/@/renderer/components';
import {
SettingsSection,
SettingOption,
Expand Down Expand Up @@ -123,7 +123,7 @@ export const ThemeSettings = () => {
{
control: (
<Stack align="center">
<ColorPicker
<ColorInput
defaultValue={settings.accent}
format="rgb"
swatches={[
Expand All @@ -134,6 +134,7 @@ export const ThemeSettings = () => {
'rgb(170, 110, 216)',
]}
swatchesPerRow={5}
withEyeDropper={false}
onChangeEnd={(e) => {
setSettings({
general: {
Expand All @@ -143,7 +144,6 @@ export const ThemeSettings = () => {
});
}}
/>
<Text>{settings.accent}</Text>
</Stack>
),
description: t('setting.accentColor', {
Expand Down

1 comment on commit 45e589f

@vercel
Copy link

@vercel vercel bot commented on 45e589f Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

feishin – ./

feishin.vercel.app
feishin-git-development-jeffvli.vercel.app
feishin-jeffvli.vercel.app

Please sign in to comment.