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

Commit

Permalink
feat(ui): Redesign section headers
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 17, 2021
1 parent 3204a31 commit fae8714
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packages/userscript/source/ui/SettingsSectionUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@ export abstract class SettingsSectionUi<TState> {
protected getOptionHead(toggleName: string): JQuery<HTMLElement> {
const containerList = $("<ul/>", {
id: `items-list-${toggleName}`,
css: { display: "none", paddingLeft: "20px" },
css: { display: "none", paddingLeft: "20px", paddingTop: "4px" },
});

const disableAllButton = $("<div/>", {
id: `toggle-all-items-${toggleName}`,
text: this._host.i18n("ui.disable.all"),
css: {
border: "1px solid grey",
cursor: "pointer",
float: "right",
display: "inline-block",
textShadow: "3px 3px 4px gray",
marginRight: "8px",
marginBottom: "4px",
padding: "1px 2px",
},
});

Expand All @@ -46,7 +48,15 @@ export abstract class SettingsSectionUi<TState> {
const enableAllButton = $("<div/>", {
id: `toggle-all-items-${toggleName}`,
text: this._host.i18n("ui.enable.all"),
css: { cursor: "pointer", display: "inline-block", textShadow: "3px 3px 4px gray" },
css: {
border: "1px solid grey",
cursor: "pointer",
float: "right",
display: "inline-block",
marginBottom: "4px",
marginRight: "8px",
padding: "1px 2px",
},
});

enableAllButton.on("click", function () {
Expand Down

0 comments on commit fae8714

Please sign in to comment.