Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7237] MobileWeb: Theme support for UI widgets

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-29T18:44:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsthemeable
ReporterChris Barber
AssigneeChris Barber
Created2012-01-16T16:15:10.000+0000
Updated2018-04-04T23:20:36.000+0000

Description

There are a number of UI widgets that have no native UI and that need some sort of styling. We should have a theme system that allows us to control these UIs. Themes would follow a common interface, then define specific visual looks and behaviors. There would be at least one theme, Appcelerator, and we can consider adding platform specific themes (e.g. iOS, WP7, etc). Each UI widget would not only apply certain CSS classes, but would also read the theme's configuration for specific behavior hints, such as tabs on the top or bottom. The tiapp.xml would allow the developer to select which theme they wanted to use. The build system would then optimize the project for that theme. It should also be possible to dynamically serve a specific theme per request based on the type of device connecting. We will want to use SASS or LESS (https://gist.github.com/674726). May also need to use clean-css (https://github.com/GoalSmashers/clean-css).

Comments

  1. Sehyo Chang 2012-07-20

    We would prefer LESS since it is JavaScript based
  2. Chris Barber 2012-07-20

    @Sehyo We will almost certainly use LESS. :)
  3. Russell McMahon 2012-12-02

    I would recommend doing this in Alloy and using tss. Is there a reason not to?
  4. Chris Barber 2012-12-02

    @Russell, the point of the theme support is to implement the default look. Because Mobile Web is extremely performance sensitive, I believe a native CSS approach will be more efficient. This theme system is not intended for end developers to use. It's solely for the default look.
  5. Lee Morris 2017-06-29

    Resolving ticket as "Won't fix" as MobileWeb has been deprecated.
  6. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source