Merge branch 'screen-enhance' of github.com:netbymatt/ws4kp into screen-enhance

This commit is contained in:
Matt Walsh
2026-04-22 19:50:24 -05:00
5 changed files with 60 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

View File

@@ -19,7 +19,7 @@ class ExtendedForecast extends WeatherDisplay {
// set timings
if (settings.portrait?.value) {
this.timing.totalScreens = 1;
this.perPage = 4;
this.perPage = 6;
} else {
this.timing.totalScreens = 2;
this.perPage = 3;

View File

@@ -1,14 +1,27 @@
@use 'shared/_colors'as c;
@use 'shared/_utils'as u;
$portrait-gap-adder: 20px;
#extended-forecast-html.weather-display {
background-image: url('../images/backgrounds/2.png');
// change background for portrait
.portrait.enhanced & {
background-image: url(../images/backgrounds/2-portrait.png);
background-position-x: 0px;
}
}
.weather-display .main.extended-forecast {
.day-container {
margin-top: 16px;
margin-left: 27px;
// taller for portrait
.portrait.enhanced & {
margin-top: 90px;
}
}
.day {
@@ -21,6 +34,12 @@
font-family: 'Star4000';
font-size: 24pt;
// taller for portrait
.portrait.enhanced & {
height: 360px;
margin-bottom: 75px;
}
.date {
text-transform: uppercase;
text-align: center;
@@ -31,6 +50,10 @@
text-align: center;
height: 74px;
margin-top: 5px;
.portrait.enhanced & {
margin-top: $portrait-gap-adder;
}
}
.icon {
@@ -40,11 +63,19 @@
img {
max-height: 75px;
}
.portrait.enhanced & {
margin-top: $portrait-gap-adder;
}
}
.temperatures {
width: 100%;
.portrait.enhanced & {
margin-top: $portrait-gap-adder;
}
.temperature-block {
display: inline-block;
width: 44%;

File diff suppressed because one or more lines are too long