Skip to content

Commit

Permalink
feat(ui): add 24 hour clock format setting [LN-Zap#3600]
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulbile committed Nov 8, 2020
1 parent 1b64157 commit e95812a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
theme: 'dark',
currency: 'USD',
locale: 'en',
clockFormat24: false,

autoupdate: {
active: true,
Expand Down
7 changes: 7 additions & 0 deletions renderer/components/Settings/SettingsFieldsGeneral.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ const SettingsFieldsGeneral = ({ currentConfig }) => {
left={<FieldLabel itemKey="autoupdate.active" />}
right={<Toggle field="autoupdate.active" initialValue={currentConfig.autoupdate.active} />}
/>

<Bar variant="light" />

<DataRow
left={<FieldLabel itemKey="clockFormat24" />}
right={<Toggle field="clockFormat24" initialValue={currentConfig.clockFormat24} />}
/>
</>
)
}
Expand Down
2 changes: 2 additions & 0 deletions renderer/components/Settings/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ export default defineMessages({
payments_maxParts_label: 'Payment parts',
payments_maxParts_description:
'Maximum number of partial payments that may be used to send a payment.',
clockFormat24_label: 'Enable 24-hour clock',
clockFormat24_description: 'Sets 24-hour clock format for date actoss the application.',
})

0 comments on commit e95812a

Please sign in to comment.