diff --git a/Pi_Bluesky_TFT_Scroller/.data/.gitkeep b/Pi_Bluesky_Scroller/.data/.gitkeep similarity index 100% rename from Pi_Bluesky_TFT_Scroller/.data/.gitkeep rename to Pi_Bluesky_Scroller/.data/.gitkeep diff --git a/Pi_Bluesky_Scroller/Pi_Bluesky_Scroller.zip b/Pi_Bluesky_Scroller/Pi_Bluesky_Scroller.zip new file mode 100644 index 000000000..73c3c5230 Binary files /dev/null and b/Pi_Bluesky_Scroller/Pi_Bluesky_Scroller.zip differ diff --git a/Pi_Bluesky_TFT_Scroller/code.py b/Pi_Bluesky_Scroller/code.py similarity index 97% rename from Pi_Bluesky_TFT_Scroller/code.py rename to Pi_Bluesky_Scroller/code.py index 69be8635d..d2e99d964 100644 --- a/Pi_Bluesky_TFT_Scroller/code.py +++ b/Pi_Bluesky_Scroller/code.py @@ -188,8 +188,10 @@ def quit(self): # create a webview and load the index.html page window = webview.create_window( - "bsky posts", "static/index.html", js_api=Api(), width=320, height=240, - x=0, y=0, frameless=True, fullscreen=True + "bsky posts", "static/index.html", js_api=Api(), + #width=320, height=240, + width=640, height=480, + x=0, y=0, #frameless=True, fullscreen=True ) webview.start() diff --git a/Pi_Bluesky_TFT_Scroller/install_apt_requirements.sh b/Pi_Bluesky_Scroller/install_apt_requirements.sh old mode 100644 new mode 100755 similarity index 100% rename from Pi_Bluesky_TFT_Scroller/install_apt_requirements.sh rename to Pi_Bluesky_Scroller/install_apt_requirements.sh diff --git a/Pi_Bluesky_Scroller/static/imgs/.gitkeep b/Pi_Bluesky_Scroller/static/imgs/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Pi_Bluesky_TFT_Scroller/static/index.html b/Pi_Bluesky_Scroller/static/index.html similarity index 58% rename from Pi_Bluesky_TFT_Scroller/static/index.html rename to Pi_Bluesky_Scroller/static/index.html index effa6792a..bc6c14f32 100644 --- a/Pi_Bluesky_TFT_Scroller/static/index.html +++ b/Pi_Bluesky_Scroller/static/index.html @@ -8,15 +8,30 @@ display: none; } - /* Scale image down to fit the full thing on the TFT */ - img { - max-width: 304px; - max-height: 240px; - object-fit: contain; + @media only screen and (max-width: 320px) { + img { + /* For TFT Size Display */ + max-width: 304px; + max-height: 240px; + 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 */ - .postAuthor{ + .postAuthor { overflow-wrap: break-word; } diff --git a/Pi_Bluesky_TFT_Scroller/static/script.js b/Pi_Bluesky_Scroller/static/script.js similarity index 100% rename from Pi_Bluesky_TFT_Scroller/static/script.js rename to Pi_Bluesky_Scroller/static/script.js