Comments (8)
Yes it will be possible. The new menu seen in the kickstarter video is just not yet part of the Pebble SDK. Once it is available in the pebble sdk, we can add it in pebble.js.
Stay tuned!
from pebblejs.
Hi,
there is still a problem with the image icon of the menu...if set to white the background of the image, I see it correctly, but when I select the item I see it wrong..look at the first item, the not selected one:
And when I select it:
Viceversa if I set transparent the background of the image, here the image:
from pebblejs.
Thanks for reporting the issue! For whatever reason, menu_cell_basic_draw
on basalt does not automatically alpha blend. The fix on master will eventually make it to CloudPebble when the color support is better.
from pebblejs.
Ok it works like a magic! Thank you!
PS: don't worry, we don't use CloudPebble ;)
from pebblejs.
How do I set the background of an icon? Got the same problem:
from pebblejs.
Hey @srabenhorst, I responded to your ticket #55, but I'll also answer your question here. With the fix in #55, you would make sure your image only has black and white and no antialiasing.
Without the fix in #55 and just the fix in this ticket, #42, you would set the pixels that are part of the background to be fully transparent (alpha 255), and they would no longer incorrectly highlight. The only issue then is that you'd have to set the icon color to anything other than black or white.
from pebblejs.
@Meiguro the issue regarding icons appears to be fixed now, both here and in cloud pebble. However, menus still don't appear to support colors in the text portions (title, subtitle...).
Does this ticket also refer to that issue? I'm working on a fix now, however I'm unsure how to handle text colors when the menu item is selected. If the text is black, it should be inverted to appear correctly, like menus currently do. But should this same inversion affect also happen to colors? I would assume not; if the text is red then it should stay red. But what about for darker colors like dark gray for example? Invert it to light gray? (And all other special cases, like dark purple, etc...)
Hopefully i can figure something out for this, then submit a PR.
from pebblejs.
Thanks everyone, open a new issue if there are any other color-lacking areas.
from pebblejs.
Related Issues (20)
- [Bug] Run time error when show UI.card() HOT 4
- [Bug] Error when building with the SDK 3.10 HOT 1
- [Feature Request] Disconnected message as a customisable image, like the startup screen
- [Bug] Card goes fullscreen when going back from Menu
- need a cloudpebble update HOT 3
- Bug in OGPebble 3.11.1 HOT 3
- Accel 'tap' event not very sensitive HOT 4
- Number conversion to string - Menus HOT 2
- App crashed when move from a Window to Menu HOT 17
- [Bug] Menu Screen Dotted Line HOT 3
- [Bug] Scrolling issue on Aplite HOT 6
- Circle.radius accessor is undefined HOT 1
- Modifications while Voice window is the top window cause a crash HOT 1
- Cloud Pebble Unable to Upload Images (PNG)
- Settings.config callback crashes when passed option containing encoded percent sign HOT 2
- Pebble.js compilation fails for Pebble 2 / Diorid HOT 2
- Application crash on pebble HOT 10
- Porting Pebble.js to Canvas (rocky.js)
- Wakeup not discarding itself or cancelling
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pebblejs.