Giter Site home page Giter Site logo

Comments (7)

Kogoro avatar Kogoro commented on June 27, 2024

Its an or clause. It checks whether IconColorFilter is enabled or the centreButton is selectable.
What is your use case for this behaviour?

from space-navigation-view.

rayliverified avatar rayliverified commented on June 27, 2024

Hi @Kogoro, thanks for the reply. I am using the centre button as my main app screen. This means the centre button should be selectable with none of the other buttons selected. However, I would also like to disable color filtering because it interferes with other images in my app. Currently, setting the centre button as selectable forces the user to use a color filter as setting color filter to false has no effect.

from space-navigation-view.

Kogoro avatar Kogoro commented on June 27, 2024

But should you not provide some feedback when clicking the centrebutton? I mean we could change it to an And that should solve this problem. Then the color would not change to white in default when selected. I try to do this in the next days when I'm free.

from space-navigation-view.

rayliverified avatar rayliverified commented on June 27, 2024

Hmm, that is an interesting problem. Do you mean that there will be no ripple effect if a custom icon is used?

from space-navigation-view.

Kogoro avatar Kogoro commented on June 27, 2024

In the actual implementation, the icon will get an inactive color. The reason is that the icon should indicate the active page. The inactive color can be set with inactive_centre_button_icon_color, the active color with active_centre_button_icon_color.

When you disable the IconColorFilter and we change the code to an And, the icon will have the standard icon color defined by the image at the first start. After a selection of the centreButton it is normal again when isSelectable=true.

Hope that clears your question. ;)

from space-navigation-view.

rayliverified avatar rayliverified commented on June 27, 2024

Issued #48 fixes this. Thanks @Kogoro for answering my questions. Closing!

from space-navigation-view.

Kogoro avatar Kogoro commented on June 27, 2024

@searchy2 This only affects the color which is set at the beginning. It will not change the behavior between iconcolorfilter and centrebuttonselectable.

from space-navigation-view.

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.