chore(settings): added new translation strings

This commit is contained in:
trashtemp
2021-12-24 21:22:01 +01:00
parent b5194ced8e
commit 5511c868df
8 changed files with 99 additions and 31 deletions

View File

@@ -219,12 +219,25 @@ export const DisplaySeasonalShim = observer(() => {
return (
<>
<h3>Theme Options</h3>
<h3>
<Text id="app.settings.pages.appearance.theme_options.title" />
</h3>
{/* TOFIX: WIP feature - follows system theme */}
{/*<Checkbox
checked={settings.get("appearance:seasonal") ?? true}
onChange={(v) => settings.set("appearance:seasonal", v)}
description={
<Text id="app.settings.pages.appearance.theme_options.follow_desc" />
}>
<Text id="app.settings.pages.appearance.theme_options.follow" />
</Checkbox>*/}
<Checkbox
checked={settings.get("appearance:seasonal") ?? true}
onChange={(v) => settings.set("appearance:seasonal", v)}
description="Displays effects in the home tab during holiday seasons.">
Seasonal theme
description={
<Text id="app.settings.pages.appearance.theme_options.seasonal_desc" />
}>
<Text id="app.settings.pages.appearance.theme_options.seasonal" />
</Checkbox>
</>
);

View File

@@ -40,7 +40,8 @@ const CheckboxBase = styled.label`
const CheckboxContent = styled.span`
display: flex;
flex-grow: 1;
font-size: 1rem;
font-size: 14px;
gap: 2px;
font-weight: 600;
flex-direction: column;
`;
@@ -111,7 +112,10 @@ export default function Checkbox(props: CheckboxProps) {
!props.disabled && props.onChange(!props.checked)
}
/>
<Checkmark checked={props.checked} contrast={props.contrast} className="check">
<Checkmark
checked={props.checked}
contrast={props.contrast}
className="check">
<Check size={20} />
</Checkmark>
</CheckboxBase>

View File

@@ -30,6 +30,11 @@ const CategoryBase = styled.div<BaseProps>`
flex-shrink: 0;
}
.action {
display: flex;
align-items: center;
}
.content {
display: flex;
flex-grow: 1;