Skip to content

TabView system icons #260

Closed
Closed

Description

@hshristov

Provide an API for using system default TabBar items.
For iOS use system provided styles (e.g. UITabBarSystemItem and UIImageRenderingModeAlwaysOriginal).
For Android provide same icons in the default project template.
Also in documentation provide information about expected Image size (for icon in tabBar).


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. added this to the 1.2.0 milestone on Jun 2, 2015
  2. removed this from the milestone on Jun 11, 2015
  3. manijak commented on Oct 11, 2015

    @manijak

    Is this issue stil Open? It is possible to use native properties to style the TabView Bar but it is very limited. iOS limitation I guess? Is there anything we can do to smooth this out?

    Having a hard time to style the not-selected tabView buttons (icon & text). My TabBar is blue, selected tintColor is White. But the non-selected ones are grey, and barely visible. No way to change them it seems.

  4. rjayako commented on Oct 21, 2015

    @rjayako

    @jadsonlourenco were you able to get the tutorial link to work on iOS? Having a hard time changing the status bar colour on iOS. Can you post up a gist if you having a working demo?

  5. jadsonlourenco commented on Oct 21, 2015

    @jadsonlourenco

    @rjayako sorry but I don't use NativeScript anymore - and don't solve this issue. I use React Native, the community is more active and help new devs, like me. Good luck!

  6. vakrilov commented on Oct 22, 2015

    @vakrilov
    Contributor

    @manijak @jadsonlourenco
    Being able to set the selected and non-selected colors of the tab-bar-items is something we are currently working on and will probably get into the next release. Actually, we already have it in the master branch here.

  7. rclai commented on Nov 24, 2015

    @rclai
    Contributor

    What about the top border color on iOS?

  8. rclai commented on Nov 24, 2015

    @rclai
    Contributor

    I was able to style everything using native code except for the normal state image color, which I can't for the life of me figure out because I see that the underlying code is using the render original mode for the image, which is supposed to do the trick, but it is still gray 😠

  9. rclai commented on Nov 24, 2015

    @rclai
    Contributor

    @hshristov Here's the problem renderingMode on UIImage is a read-only property: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/#//apple_ref/occ/instp/UIImage/renderingMode

    You guys are trying to set it here, but it doesn't work:

    is.ios.renderingMode = UIImageRenderingMode.UIImageRenderingModeAlwaysOriginal;

  10. burkeholland commented on Feb 15, 2016

    @burkeholland

    Is there a way to do this with CSS instead of setting the tabsBackgroundColor directly on the element?

  11. manijak commented on Feb 15, 2016

    @manijak

    The way its now, no. But if the TabView included "TabViews" and "TabButtons" elements, then perhaps we could :-)

    And btw, RenderMode Original means that custom colors don't apply. Images are used "as is", and their original color is shown. So you need two sets of images, one for each state.

  12. burkeholland commented on Feb 15, 2016

    @burkeholland

    I did notice per #767 that you can totally change the color of the text and items, but you have to do it as a property. It would be much easier to create re-usable themes if it was possible to change those items via class.

    I suppose we would have to provide a psuedo-class for the selectedColor. Perhaps :active?

  13. self-assigned this
    on Nov 4, 2016
  14. added this to the 2.5.0 milestone on Nov 8, 2016
  15. hamorphis commented on Nov 8, 2016

    @hamorphis
    Contributor

    @hshristov Include this in the 2.5 planning.

  16. changed the title [-]Expose TabView system styles[/-] [+]TabView system icons[/+] on Nov 11, 2016
  17. removed their assignment
    on Nov 11, 2016
  18. removed this from the 2.5.0 milestone on Nov 11, 2016
  19. dlucidone commented on Apr 20, 2017

    @dlucidone

    any progress on this?

  20. berardo commented on Aug 11, 2017

    @berardo

    Still open? :(

  21. alfrednerstu commented on Nov 28, 2018

    @alfrednerstu
  22. NathanWalker commented on Oct 23, 2026

    @NathanWalker
    Contributor

    TabView items now accept sys:// (SF Symbols on iOS) and font:// icon sources (#10783), e.g. iconSource="sys://house.fill", which covers using system-provided tab icons. Closing — please open a new issue if something specific is still missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions