Coder Social home page Coder Social logo

Color on Menu about pebblejs HOT 8 CLOSED

pebble avatar pebble commented on July 23, 2024
Color on Menu

from pebblejs.

Comments (8)

sarfata avatar sarfata commented on July 23, 2024

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.

ishepard avatar ishepard commented on July 23, 2024

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:
screen shot 2015-04-23 at 11 13 39
And when I select it:
screen shot 2015-04-23 at 11 15 16
Viceversa if I set transparent the background of the image, here the image:
screen shot 2015-04-23 at 11 17 09
screen shot 2015-04-23 at 11 17 00

from pebblejs.

Meiguro avatar Meiguro commented on July 23, 2024

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.

ishepard avatar ishepard commented on July 23, 2024

Ok it works like a magic! Thank you!
PS: don't worry, we don't use CloudPebble ;)

from pebblejs.

rabenhorst avatar rabenhorst commented on July 23, 2024

How do I set the background of an icon? Got the same problem:
pebble-screenshot_2015-05-09_12-43-17

from pebblejs.

Meiguro avatar Meiguro commented on July 23, 2024

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.

fletchto99 avatar fletchto99 commented on July 23, 2024

@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.

Meiguro avatar Meiguro commented on July 23, 2024

Thanks everyone, open a new issue if there are any other color-lacking areas.

from pebblejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.