From 1fe28a7037dba2a3a6dd708729cf48555208fd06 Mon Sep 17 00:00:00 2001 From: Oliver Salzburg Date: Sat, 17 Jul 2021 22:38:38 +0200 Subject: [PATCH] feat(ui): Replace long labels with icons --- .../source/ui/TimeControlSettingsUi.ts | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/packages/userscript/source/ui/TimeControlSettingsUi.ts b/packages/userscript/source/ui/TimeControlSettingsUi.ts index ee53f902..28cb6c48 100644 --- a/packages/userscript/source/ui/TimeControlSettingsUi.ts +++ b/packages/userscript/source/ui/TimeControlSettingsUi.ts @@ -150,7 +150,8 @@ export class TimeControlSettingsUi extends SettingsSectionUi", { id: "set-timeSkip-maximum", - text: this._host.i18n("ui.maximum"), + text: "⍐", + title: this._host.i18n("ui.maximum"), //title: option.max, css: { cursor: "pointer", @@ -176,7 +177,8 @@ export class TimeControlSettingsUi extends SettingsSectionUi", { id: `toggle-cycle-${name}`, - text: this._host.i18n("ui.cycles"), + text: "↻", + title: this._host.i18n("ui.cycles"), css: { cursor: "pointer", display: "inline-block", @@ -201,7 +203,8 @@ export class TimeControlSettingsUi extends SettingsSectionUi", { id: `toggle-seasons-${name}`, - text: this._host.i18n("trade.seasons"), + text: "🗓", + title: this._host.i18n("trade.seasons"), css: { cursor: "pointer", display: "inline-block", @@ -949,10 +952,12 @@ export class TimeControlSettingsUi extends SettingsSectionUi", { id: "toggle-reset-build", - text: this._host.i18n("ui.build"), + text: "🔥", + title: this._host.i18n("ui.build"), css: { cursor: "pointer", display: "inline-block", + filter: "grayscale(100%)", float: "right", paddingRight: "5px", textShadow: "3px 3px 4px gray", @@ -960,10 +965,12 @@ export class TimeControlSettingsUi extends SettingsSectionUi", { id: "toggle-reset-space", - text: this._host.i18n("ui.space"), + text: "🚀", + title: this._host.i18n("ui.space"), css: { cursor: "pointer", display: "inline-block", + filter: "grayscale(100%)", float: "right", paddingRight: "5px", textShadow: "3px 3px 4px gray", @@ -983,10 +990,12 @@ export class TimeControlSettingsUi extends SettingsSectionUi", { id: "toggle-reset-religion", - text: this._host.i18n("ui.faith"), + text: "🐈", + title: this._host.i18n("ui.faith"), css: { cursor: "pointer", display: "inline-block", + filter: "grayscale(100%)", float: "right", paddingRight: "5px", textShadow: "3px 3px 4px gray", @@ -994,10 +1003,12 @@ export class TimeControlSettingsUi extends SettingsSectionUi", { id: "toggle-reset-time", - text: this._host.i18n("ui.time"), + text: "🕙", + title: this._host.i18n("ui.time"), css: { cursor: "pointer", display: "inline-block", + filter: "grayscale(100%)", float: "right", paddingRight: "5px", textShadow: "3px 3px 4px gray",