Skip to content

Commit

Permalink
fix(fma): AB font size, CLB pos
Browse files Browse the repository at this point in the history
  • Loading branch information
BravoMike99 committed Sep 28, 2023
1 parent 873e21b commit 4578574
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class Row2 extends DisplayComponent<{ bus: ArincEventBus, isAttExcessive: Subscr
class A2Cell extends DisplayComponent<{ bus: ArincEventBus }> {
private text = Subject.create('');

private className = Subject.create('FontMedium MiddleAlign Cyan');
private className = Subject.create('FontMediumSmaller MiddleAlign Cyan');

private autoBrkRef = FSComponent.createRef<SVGTextElement>();

Expand Down Expand Up @@ -577,7 +577,7 @@ class A3Cell extends DisplayComponent<A3CellProps> {
private handleAutobrakeMode() {
if (this.autobrakeMode === 3 && !this.AB3Message) {
this.textSub.set('BRK MAX');
this.classSub.set('FontMedium MiddleAlign Cyan');
this.classSub.set('FontMediumSmaller MiddleAlign Cyan');
} else {
this.textSub.set('');
}
Expand Down Expand Up @@ -907,7 +907,7 @@ class B2Cell extends DisplayComponent<CellProps> {
let color1 = 'Cyan';
if (clbArmed) {
text1 = 'CLB';
this.xposSub.set(49.921795);
this.xposSub.set(50.601795);
} else if (desArmed) {
text1 = 'DES';
} else if (altCstArmed) {
Expand All @@ -929,7 +929,7 @@ class B2Cell extends DisplayComponent<CellProps> {
}

// CLB armed should be centered, other modes are aligned to the left on newer DMCs
this.xposSub.set(clbArmed ? 49.921795 : 41.477474);
this.xposSub.set(clbArmed ? 50.601795 : 41.477474);
this.text1Sub.set(text1);
this.text2Sub.set(text2);
this.classSub.set(`FontMediumSmaller MiddleAlign ${color1}`);
Expand Down

0 comments on commit 4578574

Please sign in to comment.