mirror of
https://github.com/mue/mue.git
synced 2026-07-19 23:14:10 +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 {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -120,7 +120,8 @@
|
||||
"minute_hand": "Minutes hand",
|
||||
"hour_hand": "Hours hand",
|
||||
"hour_marks": "Hour marks",
|
||||
"minute_marks": "Minute marks"
|
||||
"minute_marks": "Minute marks",
|
||||
"round_clock": "Rounded background"
|
||||
},
|
||||
"percentage_complete": "Percentage complete",
|
||||
"vertical_clock": {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -120,7 +120,8 @@
|
||||
"minute_hand": " Yelkovan (dakika) ibresi",
|
||||
"hour_hand": "Akrep (saat) ibresi",
|
||||
"hour_marks": "Saat çizgileri",
|
||||
"minute_marks": "Dakika çizgileri"
|
||||
"minute_marks": "Dakika çizgileri",
|
||||
"round_clock": "Rounded background"
|
||||
},
|
||||
"percentage_complete": "Yüzdelik Gösterim",
|
||||
"vertical_clock": {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user