mirror of
https://github.com/mue/mue.git
synced 2026-07-17 14:04:09 +02:00
polish
This commit is contained in:
@@ -353,7 +353,7 @@ export default class Marketplace extends PureComponent {
|
||||
</div>
|
||||
<div className="headerExtras marketplaceCondition">
|
||||
<span className="link" onClick={() => this.reloadItems()}>
|
||||
<MdRefresh /> Refresh
|
||||
<MdRefresh /> {this.getMessage('widgets.navbar.tooltips.refresh')}
|
||||
</span>
|
||||
<Dropdown
|
||||
label={this.getMessage('modals.main.addons.sort.title')}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function Marketplace(props) {
|
||||
|
||||
return (
|
||||
<Tabs changeTab={(type) => props.changeTab(type)} current="marketplace">
|
||||
<div label="All" name="all">
|
||||
<div label={getMessage('modals.main.marketplace.all')} name="all">
|
||||
<MarketplaceTab type="all" />
|
||||
</div>
|
||||
<div label={getMessage('modals.main.marketplace.photo_packs')} name="photo_packs">
|
||||
@@ -20,7 +20,7 @@ export default function Marketplace(props) {
|
||||
<div label={getMessage('modals.main.marketplace.preset_settings')} name="preset_settings">
|
||||
<MarketplaceTab type="preset_settings" />
|
||||
</div>
|
||||
<div label="Collections" name="collections">
|
||||
<div label={getMessage('modals.main.marketplace.collection')} name="collections">
|
||||
<MarketplaceTab type="collections" />
|
||||
</div>
|
||||
</Tabs>
|
||||
|
||||
@@ -118,6 +118,7 @@ function Tab({ label, currentTab, onClick, navbarTab }) {
|
||||
break;
|
||||
|
||||
case getMessage('modals.main.addons.added'):
|
||||
mue = true;
|
||||
icon = <Added />;
|
||||
break;
|
||||
case getMessage('modals.main.addons.sideload.title'):
|
||||
@@ -130,6 +131,7 @@ function Tab({ label, currentTab, onClick, navbarTab }) {
|
||||
case getMessage('modals.main.marketplace.all'):
|
||||
icon = <Addons />;
|
||||
divider = true;
|
||||
mue = true;
|
||||
break;
|
||||
case getMessage('modals.main.marketplace.photo_packs'):
|
||||
icon = <Background />;
|
||||
@@ -140,7 +142,7 @@ function Tab({ label, currentTab, onClick, navbarTab }) {
|
||||
case getMessage('modals.main.marketplace.preset_settings'):
|
||||
icon = <Advanced />;
|
||||
break;
|
||||
case 'Collections':
|
||||
case getMessage('modals.main.marketplace.collection'):
|
||||
icon = <Collections />;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user