Skip to content

Commit

Permalink
Remove obsolete "Appearance" settings page (#8697)
Browse files Browse the repository at this point in the history
The "new" design hasn't been worked on in ages, so we might as well remove the support code for now...
  • Loading branch information
Turbo87 authored May 22, 2024
1 parent e0a78ee commit cbddcd6
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 90 deletions.
4 changes: 0 additions & 4 deletions app/components/footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
--footer-link-hover-shadow-color: var(--green900);
}

[data-theme="new-design"] {
--footer-bg-color: var(--grey900);
}

.footer {
display: grid;
justify-items: center;
Expand Down
3 changes: 0 additions & 3 deletions app/components/settings-page.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<div local-class="page" ...attributes>
<SideMenu data-test-settings-menu as |menu|>
<menu.Item @link={{link "settings.profile"}}>Profile</menu.Item>
{{#if this.design.showToggleButton}}
<menu.Item @link={{link "settings.appearance"}}>Appearance</menu.Item>
{{/if}}
<menu.Item @link={{link "settings.email-notifications"}}>Email Notifications</menu.Item>
<menu.Item @link={{link "settings.tokens"}} data-test-tokens>API Tokens</menu.Item>
</SideMenu>
Expand Down
6 changes: 0 additions & 6 deletions app/components/settings-page.js

This file was deleted.

1 change: 0 additions & 1 deletion app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service';

export default class ApplicationController extends Controller {
@service colorScheme;
@service design;
@service progress;
@service router;

Expand Down
15 changes: 0 additions & 15 deletions app/controllers/settings/appearance.js

This file was deleted.

1 change: 0 additions & 1 deletion app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Router.map(function () {
this.route('pending-invites');
});
this.route('settings', function () {
this.route('appearance');
this.route('email-notifications');
this.route('profile');
this.route('tokens', function () {
Expand Down
21 changes: 0 additions & 21 deletions app/services/design.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/styles/application.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@
color-scheme: dark;
}

[data-theme="new-design"] {
--header-bg-color: var(--violet800);
--main-bg: white;
}

* {
box-sizing: border-box;
}
Expand Down
1 change: 0 additions & 1 deletion app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<HeadLayout />

{{page-title "crates.io: Rust Package Registry" separator=' - ' prepend=true}}
{{set-theme this.design.theme}}
{{set-color-scheme this.colorScheme.scheme}}

<ProgressBar/>
Expand Down
33 changes: 0 additions & 33 deletions app/templates/settings/appearance.hbs

This file was deleted.

0 comments on commit cbddcd6

Please sign in to comment.