Use hdmi display for now. Add zip for easy download button in guide
This commit is contained in:
parent
41c84a4610
commit
6be9a51f5c
6 changed files with 25 additions and 8 deletions
BIN
Pi_Bluesky_Scroller/Pi_Bluesky_Scroller.zip
Normal file
BIN
Pi_Bluesky_Scroller/Pi_Bluesky_Scroller.zip
Normal file
Binary file not shown.
|
|
@ -188,8 +188,10 @@ class Api:
|
||||||
|
|
||||||
# create a webview and load the index.html page
|
# create a webview and load the index.html page
|
||||||
window = webview.create_window(
|
window = webview.create_window(
|
||||||
"bsky posts", "static/index.html", js_api=Api(), width=320, height=240,
|
"bsky posts", "static/index.html", js_api=Api(),
|
||||||
x=0, y=0, frameless=True, fullscreen=True
|
#width=320, height=240,
|
||||||
|
width=640, height=480,
|
||||||
|
x=0, y=0, #frameless=True, fullscreen=True
|
||||||
|
|
||||||
)
|
)
|
||||||
webview.start()
|
webview.start()
|
||||||
0
Pi_Bluesky_TFT_Scroller/install_apt_requirements.sh → Pi_Bluesky_Scroller/install_apt_requirements.sh
Normal file → Executable file
0
Pi_Bluesky_TFT_Scroller/install_apt_requirements.sh → Pi_Bluesky_Scroller/install_apt_requirements.sh
Normal file → Executable file
|
|
@ -8,15 +8,30 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Scale image down to fit the full thing on the TFT */
|
@media only screen and (max-width: 320px) {
|
||||||
img {
|
img {
|
||||||
|
/* For TFT Size Display */
|
||||||
max-width: 304px;
|
max-width: 304px;
|
||||||
max-height: 240px;
|
max-height: 240px;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 640px) {
|
||||||
|
img {
|
||||||
|
/* For Window on HDMI Display */
|
||||||
|
max-width: 600px;
|
||||||
|
max-height: 440px;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* make really long handles wrap to next line instead of run off edge */
|
/* make really long handles wrap to next line instead of run off edge */
|
||||||
.postAuthor{
|
.postAuthor {
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Reference in a new issue