Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
feat(ui): Replace long labels with icons
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 17, 2021
1 parent d523063 commit 1fe28a7
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions packages/userscript/source/ui/TimeControlSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export class TimeControlSettingsUi extends SettingsSectionUi<TimeControlSettings

const maximunButton = $("<div/>", {
id: "set-timeSkip-maximum",
text: this._host.i18n("ui.maximum"),
text: "⍐",
title: this._host.i18n("ui.maximum"),
//title: option.max,
css: {
cursor: "pointer",
Expand All @@ -176,7 +177,8 @@ export class TimeControlSettingsUi extends SettingsSectionUi<TimeControlSettings

const cyclesButton = $("<div/>", {
id: `toggle-cycle-${name}`,
text: this._host.i18n("ui.cycles"),
text: "↻",
title: this._host.i18n("ui.cycles"),
css: {
cursor: "pointer",
display: "inline-block",
Expand All @@ -201,7 +203,8 @@ export class TimeControlSettingsUi extends SettingsSectionUi<TimeControlSettings

const seasonsButton = $("<div/>", {
id: `toggle-seasons-${name}`,
text: this._host.i18n("trade.seasons"),
text: "🗓",
title: this._host.i18n("trade.seasons"),
css: {
cursor: "pointer",
display: "inline-block",
Expand Down Expand Up @@ -949,21 +952,25 @@ export class TimeControlSettingsUi extends SettingsSectionUi<TimeControlSettings

const buildButton = $("<div/>", {
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",
},
});
const spaceButton = $("<div/>", {
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",
Expand All @@ -983,21 +990,25 @@ export class TimeControlSettingsUi extends SettingsSectionUi<TimeControlSettings
});
const religionButton = $("<div/>", {
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",
},
});
const timeButton = $("<div/>", {
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",
Expand Down

0 comments on commit 1fe28a7

Please sign in to comment.