Skip to content

Commit 43bda59

Browse files
Style tweaks for learn dark theme
1 parent e0330d2 commit 43bda59

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

apps/fretonator-web/src/app/app.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ export class AppComponent implements AfterViewInit {
2323
}
2424

2525
setDarkColorMode(dark: Boolean) {
26-
if (dark) {
27-
this.colorMode = ColorModes.dark;
28-
} else {
29-
this.colorMode = ColorModes.light;
30-
}
26+
this.colorMode = dark ? ColorModes.dark : ColorModes.light;
3127
}
3228
}

apps/fretonator-web/src/app/common/fretonator/fretboard/fretboard.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ $note-height: 36;
277277
&:after {
278278
background-color: var(--note-background-learn-theme);
279279
}
280+
281+
&[data-degree="ghost"] {
282+
&:after {
283+
background-color: var(--note-bg-ghost);
284+
}
285+
}
280286
}
281287

282288
&:nth-child(-n + 13):after {

apps/fretonator-web/src/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@
179179
--note-bg-tonic: var(--peach);
180180
--note-color-tonic: var(--black);
181181

182-
--note-background-learn-theme: var(--peach);
183-
--note-bg-ghost: var(--note-background);
182+
--note-background-learn-theme: var(--mint);
183+
--note-bg-ghost: #e0e0e0;
184184

185185
--note-bg-mediant: var(--coral);
186186
--note-color-mediant: var(--black);

0 commit comments

Comments
 (0)