mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🚚 Move selectors to customisation tab
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
import { TextInput, Group, Button } from '@mantine/core';
|
import { TextInput, Group, Button } from '@mantine/core';
|
||||||
import { useForm } from '@mantine/form';
|
import { useForm } from '@mantine/form';
|
||||||
import { useConfig } from '../../tools/state';
|
import { useConfig } from '../../tools/state';
|
||||||
|
import { ColorSelector } from './ColorSelector';
|
||||||
|
import { OpacitySelector } from './OpacitySelector';
|
||||||
|
import { ShadeSelector } from './ShadeSelector';
|
||||||
|
|
||||||
export default function TitleChanger() {
|
export default function TitleChanger() {
|
||||||
const { config, setConfig } = useConfig();
|
const { config, setConfig } = useConfig();
|
||||||
@@ -51,6 +54,10 @@ export default function TitleChanger() {
|
|||||||
<Button type="submit">Save</Button>
|
<Button type="submit">Save</Button>
|
||||||
</Group>
|
</Group>
|
||||||
</form>
|
</form>
|
||||||
|
<ColorSelector type="primary" />
|
||||||
|
<ColorSelector type="secondary" />
|
||||||
|
<ShadeSelector />
|
||||||
|
<OpacitySelector />
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { ColorSchemeSwitch } from '../ColorSchemeToggle/ColorSchemeSwitch';
|
|||||||
import ConfigChanger from '../Config/ConfigChanger';
|
import ConfigChanger from '../Config/ConfigChanger';
|
||||||
import SaveConfigComponent from '../Config/SaveConfig';
|
import SaveConfigComponent from '../Config/SaveConfig';
|
||||||
import ModuleEnabler from './ModuleEnabler';
|
import ModuleEnabler from './ModuleEnabler';
|
||||||
import { ColorSelector } from './ColorSelector';
|
|
||||||
import { ShadeSelector } from './ShadeSelector';
|
|
||||||
import { OpacitySelector } from './OpacitySelector';
|
|
||||||
|
|
||||||
export default function CommonSettings(args: any) {
|
export default function CommonSettings(args: any) {
|
||||||
const { config, setConfig } = useConfig();
|
const { config, setConfig } = useConfig();
|
||||||
@@ -70,12 +67,9 @@ export default function CommonSettings(args: any) {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
<ModuleEnabler />
|
|
||||||
<ColorSchemeSwitch />
|
<ColorSchemeSwitch />
|
||||||
<ColorSelector type="primary" />
|
<ModuleEnabler />
|
||||||
<ColorSelector type="secondary" />
|
|
||||||
<ShadeSelector />
|
|
||||||
<OpacitySelector />
|
|
||||||
<ConfigChanger />
|
<ConfigChanger />
|
||||||
<SaveConfigComponent />
|
<SaveConfigComponent />
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
Reference in New Issue
Block a user