Skip to content

Commit cbddcd6

Browse files
authored
Remove obsolete "Appearance" settings page (#8697)
The "new" design hasn't been worked on in ages, so we might as well remove the support code for now...
1 parent e0a78ee commit cbddcd6

File tree

10 files changed

+0
-90
lines changed

10 files changed

+0
-90
lines changed

app/components/footer.module.css

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
--footer-link-hover-shadow-color: var(--green900);
88
}
99

10-
[data-theme="new-design"] {
11-
--footer-bg-color: var(--grey900);
12-
}
13-
1410
.footer {
1511
display: grid;
1612
justify-items: center;

app/components/settings-page.hbs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<div local-class="page" ...attributes>
22
<SideMenu data-test-settings-menu as |menu|>
33
<menu.Item @link={{link "settings.profile"}}>Profile</menu.Item>
4-
{{#if this.design.showToggleButton}}
5-
<menu.Item @link={{link "settings.appearance"}}>Appearance</menu.Item>
6-
{{/if}}
74
<menu.Item @link={{link "settings.email-notifications"}}>Email Notifications</menu.Item>
85
<menu.Item @link={{link "settings.tokens"}} data-test-tokens>API Tokens</menu.Item>
96
</SideMenu>

app/components/settings-page.js

-6
This file was deleted.

app/controllers/application.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { inject as service } from '@ember/service';
33

44
export default class ApplicationController extends Controller {
55
@service colorScheme;
6-
@service design;
76
@service progress;
87
@service router;
98

app/controllers/settings/appearance.js

-15
This file was deleted.

app/router.js

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Router.map(function () {
3131
this.route('pending-invites');
3232
});
3333
this.route('settings', function () {
34-
this.route('appearance');
3534
this.route('email-notifications');
3635
this.route('profile');
3736
this.route('tokens', function () {

app/services/design.js

-21
This file was deleted.

app/styles/application.module.css

-5
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@
8585
color-scheme: dark;
8686
}
8787

88-
[data-theme="new-design"] {
89-
--header-bg-color: var(--violet800);
90-
--main-bg: white;
91-
}
92-
9388
* {
9489
box-sizing: border-box;
9590
}

app/templates/application.hbs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<HeadLayout />
22

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

76
<ProgressBar/>

app/templates/settings/appearance.hbs

-33
This file was deleted.

0 commit comments

Comments
 (0)