mirror of
https://github.com/mue/mue.git
synced 2026-07-20 15:34:10 +02:00
polish
This commit is contained in:
@@ -17,8 +17,8 @@ export default class TimeSettings extends PureComponent {
|
||||
super();
|
||||
this.state = {
|
||||
timeType: localStorage.getItem('timeType') || 'digital',
|
||||
hourColour: localStorage.getItem('hourColour') || '#fff',
|
||||
minuteColour: localStorage.getItem('minuteColour') || '#fff',
|
||||
hourColour: localStorage.getItem('hourColour') || '#ffffff',
|
||||
minuteColour: localStorage.getItem('minuteColour') || '#ffffff',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ export default class TimeSettings extends PureComponent {
|
||||
}
|
||||
|
||||
resetHourColour() {
|
||||
localStorage.setItem('hourColour', '#fff')
|
||||
localStorage.setItem('hourColour', '#ffffff')
|
||||
}
|
||||
|
||||
resetMinuteColour() {
|
||||
localStorage.setItem('minuteColour', '#fff')
|
||||
localStorage.setItem('minuteColour', '#ffffff')
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ export default class TimeSettings extends PureComponent {
|
||||
|
||||
const verticalClock = (
|
||||
<>
|
||||
<SettingsItem title="Change minute text hour colour" subtitle="">
|
||||
<SettingsItem title={getMessage('modals.main.settings.sections.time.vertical_clock.change_hour_colour')} subtitle="">
|
||||
<div className="colourInput">
|
||||
<input
|
||||
type="color"
|
||||
@@ -136,7 +136,7 @@ export default class TimeSettings extends PureComponent {
|
||||
{getMessage('modals.main.settings.buttons.reset')}
|
||||
</span>
|
||||
</SettingsItem>
|
||||
<SettingsItem title="Change minute text minute colour" subtitle="">
|
||||
<SettingsItem title={getMessage('modals.main.settings.sections.time.vertical_clock.change_minute_colour')} subtitle="">
|
||||
<div className="colourInput">
|
||||
<input
|
||||
type="color"
|
||||
@@ -194,7 +194,7 @@ export default class TimeSettings extends PureComponent {
|
||||
<option value="percentageComplete">
|
||||
{getMessage('modals.main.settings.sections.time.percentage_complete')}
|
||||
</option>
|
||||
<option value="verticalClock">Vertical Clock</option>
|
||||
<option value="verticalClock">{getMessage('modals.main.settings.sections.time.vertical_clock.title')}</option>
|
||||
</Dropdown>
|
||||
</SettingsItem>
|
||||
{timeSettings}
|
||||
|
||||
@@ -116,49 +116,6 @@ export default class TimeSettings extends PureComponent {
|
||||
category="weather"
|
||||
/>
|
||||
</SettingsItem>
|
||||
{localStorage.getItem('weatherType') > 1 && (
|
||||
<SettingsItem title="Active bit" subtitle="idk a better word for it sorry">
|
||||
<Dropdown label="Type" name="weatherActiveBit" category="weather">
|
||||
<option value="weatherdescription">
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.show_description')}{' '}
|
||||
</option>
|
||||
<option value="cloudiness">
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.cloudiness')}
|
||||
</option>
|
||||
<option value="humidity">
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.humidity')}
|
||||
</option>
|
||||
<option value="visibility">
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.visibility')}
|
||||
</option>
|
||||
<option
|
||||
value="windspeed"
|
||||
onChange={() =>
|
||||
this.setState({
|
||||
windSpeed: localStorage.getItem('windspeed') !== 'true',
|
||||
})
|
||||
}
|
||||
>
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.wind_speed')}
|
||||
</option>
|
||||
<option value="windDirection" disabled={this.state.windSpeed}>
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.wind_direction')}
|
||||
</option>
|
||||
<option value="mintemp">
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.min_temp')}
|
||||
</option>
|
||||
<option value="maxtemp">
|
||||
{getMessage('modals.main.settings.sections.weather.extra_info.max_temp')}
|
||||
</option>
|
||||
<option value="feelsliketemp">Feels like temperature</option>
|
||||
<option value="atmosphericpressure">
|
||||
{getMessage(
|
||||
'modals.main.settings.sections.weather.extra_info.atmospheric_pressure',
|
||||
)}
|
||||
</option>
|
||||
</Dropdown>
|
||||
</SettingsItem>
|
||||
)}
|
||||
{localStorage.getItem('weatherType') == 4 && (
|
||||
<SettingsItem title="Custom Settings">
|
||||
<Checkbox
|
||||
|
||||
Reference in New Issue
Block a user