mirror of
https://github.com/mue/mue.git
synced 2026-07-17 14:04:09 +02:00
feat: add round anologue clock option
This commit is contained in:
@@ -93,6 +93,11 @@ export default class TimeSettings extends PureComponent {
|
||||
text={variables.getMessage('modals.main.settings.sections.time.analogue.minute_marks')}
|
||||
category="clock"
|
||||
/>
|
||||
<Checkbox
|
||||
name="roundClock"
|
||||
text={variables.getMessage('modals.main.settings.sections.time.analogue.round_clock')}
|
||||
category="clock"
|
||||
/>
|
||||
</SettingsItem>
|
||||
);
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ export default class Clock extends PureComponent {
|
||||
if (localStorage.getItem('timeType') === 'analogue') {
|
||||
return (
|
||||
<Suspense fallback={<></>}>
|
||||
<div className="clockBackground">
|
||||
<div className={`clockBackground ${enabled('roundClock') ? 'round' : ''}`}>
|
||||
<Analog
|
||||
className="analogclock clock-container"
|
||||
value={this.state.time}
|
||||
|
||||
@@ -39,6 +39,10 @@
|
||||
.clockBackground {
|
||||
@extend %basic;
|
||||
padding: 1rem;
|
||||
|
||||
&.round {
|
||||
border-radius: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
.new-clock {
|
||||
|
||||
Reference in New Issue
Block a user