Compare commits

1 Commits

Author SHA1 Message Date
Leonmmcoset
7b8f6c02e9 change textfield's theme 2025-10-19 22:28:27 +08:00
6 changed files with 10 additions and 9 deletions

View File

@@ -163,7 +163,7 @@ const ThemeOptionEditDialog = ({ open, onClose, id, config, onSave }: ThemeOptio
label={t("settings.previewTitle")}
icon={<Setting fontSize="small" color="action" />}
/>
<TextField label={t("settings.previewTextField")} variant="outlined" size="small" />
<TextField label={t("settings.previewTextField")} variant="filled" size="small" />
<Box>
<Badge badgeContent={10} color="secondary">
<Button variant="contained" color="primary">
@@ -195,7 +195,7 @@ const ThemeOptionEditDialog = ({ open, onClose, id, config, onSave }: ThemeOptio
label={t("settings.previewTitle")}
icon={<Setting fontSize="small" color="action" />}
/>
<TextField label={t("settings.previewTextField")} variant="outlined" size="small" />
<TextField label={t("settings.previewTextField")} variant="filled" size="small" />
<Box>
<Badge badgeContent={10} color="secondary">
<Button variant="contained" color="primary">

View File

@@ -41,7 +41,7 @@ const DefaultCaptcha = ({ onStateChange, generation, noLabel, ...rest }: Default
pr: 0.5,
},
}}
variant={"outlined"}
variant={"filled"}
label={noLabel ? undefined : t("login.captcha")}
onChange={(e) => setCaptcha(e.target.value)}
value={captcha}

View File

@@ -10,6 +10,7 @@ export const OutlineIconTextField = ({ icon, ...rest }: OutlineIconTextFieldProp
return (
<TextField
{...rest}
variant="filled"
slotProps={{
input: {
startAdornment: !isMobile && <InputAdornment position="start">{icon}</InputAdornment>,

View File

@@ -115,7 +115,7 @@ const DirectLinks = () => {
label={t("modals.sourceLink")}
multiline
value={contents}
variant="outlined"
variant="filled"
fullWidth
slotProps={{
htmlInput: { readonly: true },

View File

@@ -187,7 +187,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
},
}}
value={setting.password ?? ""}
onChange={(e) => {
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
const value = e.target.value.trim();
if (!/^[a-zA-Z0-9]*$/.test(value) || value.length > 32) return;
onSettingChange({ ...setting, password: value });
@@ -292,7 +292,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
getOptionLabel={(option: string | valueOption) => (typeof option === "string" ? option : t(option.label))}
disableClearable
options={expireOptions}
renderInput={(params) => <TextField sx={{ width: 150 }} {...params} variant={"standard"} />}
renderInput={(params) => <TextField sx={{ width: 150 }} {...params} variant={"filled"} />}
/>
</FormControl>
<Typography>{t("application:modals.expireSuffix")}</Typography>
@@ -368,7 +368,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
}
disableClearable
options={downloadOptions}
renderInput={(params) => <TextField sx={{ width: 200 }} {...params} variant={"standard"} />}
renderInput={(params) => <TextField sx={{ width: 200 }} {...params} variant={"filled"} />}
/>
</FormControl>
<Typography>{t("application:modals.expireSuffix")}</Typography>

View File

@@ -136,7 +136,7 @@ const DownloadFileList = ({ taskId, summary, downloading, readonly }: DownloadFi
<Stack direction="row" spacing={1} sx={{ mb: 1 }}>
<TextField
label={t("download.filterByName")}
variant="outlined"
variant="filled"
size="small"
value={filterText}
onChange={(e) => setFilterText(e.target.value)}
@@ -184,7 +184,7 @@ const DownloadFileList = ({ taskId, summary, downloading, readonly }: DownloadFi
<>
<TableCell component="th" scope="row" sx={{ height: 33, minWidth: 50 }}>
<StyledCheckbox
onChange={(e) => {
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
setFileSelected(value, e.target.checked);
}}
disabled={!downloading || readonly}