Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(displays): Add pixelated screens #5385

Merged
merged 8 commits into from
Jul 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add pixel plain css
  • Loading branch information
bouveng committed Jul 23, 2021
commit 388ce503895589fe043d559ccd3d6dd10247bb1e
22 changes: 22 additions & 0 deletions flybywire-aircraft-a320-neo/html_ui/CSS/A32NX_Display_Common.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,28 @@ text {
fill: none;
}

/* LCD pixel effect for screens */
#panel:after {
content: '';
width: 100%;
height: 100%;
z-index: 999;
position: absolute;
/* custom svg */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0 V10 Z H10 Z' stroke='%23000' stroke-width='3' fill='none'/%3E%3C/svg%3E");
background-size: 2px;
opacity: 0.75;
/* subtle tint and edge bleed */
background-color:rgba(0, 0, 255, 0.025);
bouveng marked this conversation as resolved.
Show resolved Hide resolved
box-shadow: inset 0px 0px 30px 10px rgba(0, 75, 255, 0.04);
border-radius: 30px;
/*
TODO: This rule collectively affects CPT/FO ND, MCDU and ECAM screens
These screens should use the pixels.scss impl. some day, ideally.
Original impl. in /src/instruments/src/Common/pixels.scss
*/
}

/* change from PageTitle */
.PageTitle {
fill: var(--displayWhite);
Expand Down