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

Add support for round screens, color and SDK 3 #7

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

llewelld
Copy link

Make changes to support round screens (using text_flow), color and upgrade the build script to SDK 3.

The changes have #ifdefs to support rectangular screens and B&W displays, but it was necessary to make some changes to the original layout, so it the result doesn't look exactly the same on the original pebble. This will also add a progress bar for when headlines/stories are downloading to the pebble.

Add a title bar layer 'class' used to show the feed on the headline menulist page.
Fix the layout of the story page on round watchfaces (may break formatting for
rectangular faces). Allow the story to flow and scroll correctly.
Provide a progress load bar for transfering the story from phone to watch. To
achieve this the buffer size is decreased to 128 bytes, which may need
tweaking.
Fix the way subscriptions are shown on aplite and basalt emulators. Tweak
the status bar location, centering of the menu selection and colours to
suit each platform.
Move colour configuration into the settings file. Define a structure
for setting up colour schemes. Set colours when a window appears (as
opposed to when it loads). Define suitable colours for both colour
and B&W displays.
The buffer sizes cause problems for aplite watches due to lack of memory.
The code set them to app_message_inbox_size_maximum and
app_message_outbox_size_maximum which was 8k for SDK 4.0. This size also
seemed unecessary, so this reduces both to 440B. This should be enough
for the largest headline (160B) and the largest feed name (30B) as set in
main.js.
Also fix the wscript which was copying all of the javascript files into
the .pbw file, whereas it should only be pebble-js-app.js
Increase the yellow of the selection bar, otherwise
it just looks like white.
Reduce the height of the title bar text (used on the headlines page)
to the height of the text contained within it. This leaves more
space for the main content (the headlines menu list).
An error in the wscript file meant the generated Javascript file
wasn't being included in the final pbw file. This change fixes
this, with thanks to Olivier Gérardin (https://github.com/ogerardin)
for highlighting the problem and identifying the fix.
To fix issue neal#6 preventing Pocket integration from working
properly. This adds the fix identified by @ydyu see:

neal#6 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant