[Update] Add feature Restore Main Window Geometry.
Note: the toggle-able setting, to restore or don't, has removed for now.
This commit is contained in:
@@ -9,12 +9,13 @@ import {
|
||||
useMessageLogUiScaling,
|
||||
useSelectedFontFamily,
|
||||
useTransparency,
|
||||
// useRestoreWindowGeometry,
|
||||
} from "@logics_configs";
|
||||
|
||||
export const Appearance = () => {
|
||||
const { t } = useTranslation();
|
||||
const {
|
||||
DropdownMenuContainer,
|
||||
// DropdownMenuContainer,
|
||||
// SliderContainer,
|
||||
// CheckboxContainer,
|
||||
// SwitchboxContainer,
|
||||
@@ -33,6 +34,7 @@ export const Appearance = () => {
|
||||
<MessageLogUiScalingContainer />
|
||||
<FontFamilyContainer />
|
||||
<TransparencyContainer />
|
||||
{/* <RestoreWindowGeometryContainer /> */}
|
||||
|
||||
|
||||
|
||||
@@ -253,4 +255,20 @@ const TransparencyContainer = () => {
|
||||
track={false}
|
||||
/>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
// import { CheckboxContainer } from "../components/useSettingBox";
|
||||
|
||||
// const RestoreWindowGeometryContainer = () => {
|
||||
// const { t } = useTranslation();
|
||||
// const { currentRestoreWindowGeometry, toggleRestoreWindowGeometry } = useRestoreWindowGeometry();
|
||||
|
||||
// return (
|
||||
// <CheckboxContainer
|
||||
// label={t("config_page.to_restore_main_page_geometry.label")}
|
||||
// desc={t("config_page.to_restore_main_page_geometry.desc")}
|
||||
// variable={currentRestoreWindowGeometry}
|
||||
// toggleFunction={toggleRestoreWindowGeometry}
|
||||
// />
|
||||
// );
|
||||
// };
|
||||
@@ -45,17 +45,16 @@ export const SliderContainer = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const CheckboxContainer = (props) => {
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<LabelComponent label={props.label} desc={props.desc} />
|
||||
<Checkbox {...props}/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const useSettingBox = () => {
|
||||
|
||||
const CheckboxContainer = (props) => {
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<LabelComponent label={props.label} desc={props.desc} />
|
||||
<Checkbox {...props}/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const SwitchboxContainer = (props) => {
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
|
||||
Reference in New Issue
Block a user