Skip to content

Commit

Permalink
ui: watchfaces: Update analog hands to look better when rotated.
Browse files Browse the repository at this point in the history
If there are transparent pixels around the image itself, LVGL will do a much better job avoiding "jagged" edges when rotating an image.
  • Loading branch information
jakkra committed Aug 11, 2023
1 parent d38db4f commit 3668768
Show file tree
Hide file tree
Showing 6 changed files with 870 additions and 822 deletions.
Binary file modified .github/watchfaces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,18 @@ Alternative watch faces can be chosen by selecting **one** of the appropriate Kc

`CONFIG_WATCHFACE_ANALOG=y`<br>
`CONFIG_WATCHFACE_DIGITAL=y`<br>
`CONFIG_WATCHFACE_MINIMAL=y`<br>
`CONFIG_WATCHFACE_MINIMAL=n`<br>


To select watchface background see below config in prj.conf:
`CONFIG_WATCHFACE_BACKGROUND_SPACE=y`
`CONFIG_WATCHFACE_BACKGROUND_FLOWER=n`
`CONFIG_WATCHFACE_BACKGROUND_PLANET=n`
`CONFIG_WATCHFACE_BACKGROUND_NONE=n`

`CONFIG_WATCHFACE_BACKGROUND_SPACE=y`<br>
`CONFIG_WATCHFACE_BACKGROUND_FLOWER=n`<br>
`CONFIG_WATCHFACE_BACKGROUND_PLANET=n`<br>
`CONFIG_WATCHFACE_BACKGROUND_NONE=n`<br>

<p float="center">
<img src=".github/watchfaces.png" width="80%"/>
<img src=".github/watchfaces.png" width="99%"/>
</p>

## Android phone communication
Expand Down
4 changes: 2 additions & 2 deletions app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ CONFIG_DEMO_BUILD=n

# Choose one of below
CONFIG_WATCHFACE_ANALOG=n
CONFIG_WATCHFACE_DIGITAL=n
CONFIG_WATCHFACE_MINIMAL=y
CONFIG_WATCHFACE_DIGITAL=y
CONFIG_WATCHFACE_MINIMAL=n

# Choose one of below
CONFIG_WATCHFACE_BACKGROUND_SPACE=y
Expand Down
Loading

0 comments on commit 3668768

Please sign in to comment.