Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9929] TiAPI: Reconcile UI.Button's background color qualities, especially in context of iOS's UIButton tint.

GitHub Issuen/a
TypeStory
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsTiAPI
Labelsbackgroundcolor, button
ReporterIngo Muschenetz
AssigneeUnknown
Created2012-07-10T18:49:56.000+0000
Updated2018-02-28T20:03:34.000+0000

Description

With iOS 5, we now have the ability to customize aspects of iOS's button (and other views) that we previously have not. But in investigating a pull request, it has become obvious that there is an impedance mismatch with what Titanium exposes as backgroundColor (The color that most of the view is filled with) and what UIButton uses as backgroundColor (The color filling in the unused rectangle of the view) and tintColor (The color used by the button depending on circumstances). Button, plain: Button, in Navigation bar: Button, rounded rectangle: Button, with background image: Button, info Button, in Toolbar: (To be filled in further to show all the edge cases)

Comments

  1. Mitchell Amihod 2012-07-12

    Wouldn't it make sense to implement one of the most common use cases, which is coloring the buttons in a nav bar context. Currently, they just adopt the navbar color.

JSON Source