Closed
Bug 649820
Opened 14 years ago
Closed 14 years ago
Change browser CSS based on Android OS version
Categories
(Firefox for Android Graveyard :: General, enhancement, P1)
Tracking
(firefox6 fixed, fennec6+)
VERIFIED
FIXED
Firefox 6
People
(Reporter: madhava, Assigned: mfinkle)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
422.53 KB,
patch
|
mbrubeck
:
review+
vingtetun
:
review+
|
Details | Diff | Splinter Review |
We'd like to be able to change the styling of the chrome based on what version of Android the user is running. Fitting in on Froyo will require a different look to fitting in on Gingerbread or (even more so) Honeycomb.
Updated•14 years ago
|
Updated•14 years ago
|
tracking-fennec: --- → 6+
Whiteboard: [fennec-6]
Assignee | ||
Comment 1•14 years ago
|
||
This patch uses the newly landed osversion support for Android to create a gingerbread and honeycomb theme folders. The patch does not add any new CSS of images, just makes it easy to do that later.
Notes:
* Creating a 3 tiered theme system based on versions (froyo, gingerbread and honeycomb) is not as easy as it will be. For now, the middle tier (gingerbread) must have it's osversions explicitly named. We'll support ranged based operators in the future. For now, we know that gingerbread is 2.3, 2.3.3, 2.3.4
* The gingerbread and honeycomb folders only hold images for now. And only images I was fairly sure would change. The *.css files are reused from the default theme. As we need to override *.css files, we can add them to the gingerbread and honeycomb folders; and update the jar.mn file.
* Desktop builds will use the current (froyo theme)
The patch is big, but 99% is the images. The magic happens in jar.mn
Assignee: nobody → mark.finkle
Attachment #531235 -
Flags: review?(mbrubeck)
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 531235 [details] [diff] [review]
patch - base
Two reviewers are better than one
Attachment #531235 -
Flags: review?(21)
Comment 3•14 years ago
|
||
Comment on attachment 531235 [details] [diff] [review]
patch - base
As said on IRC I'm a bit worried about the impact on the size of the APK, many users are complaining about it (sigh)
Attachment #531235 -
Flags: review?(21) → review+
Comment 4•14 years ago
|
||
Comment on attachment 531235 [details] [diff] [review]
patch - base
I agree with vingtetun's size concerns. Especially for Froyo vs. Gingerbread, it might make more sense to share most of the CSS and assets, and just add overrides for the differences.
Attachment #531235 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #4)
> I agree with vingtetun's size concerns. Especially for Froyo vs.
> Gingerbread, it might make more sense to share most of the CSS and assets,
> and just add overrides for the differences.
Not opposed to sharing with caveats:
* Let's see what can be shared in the end
* Let's see what the change in size ends up being
* Don't make a complicated system to make it happen. I don't want multiple chrome skin URIs to worry about and maintain.
Assignee | ||
Comment 6•14 years ago
|
||
pushed:
http://hg.mozilla.org/mozilla-central/rev/aa889d945ef9
additional work will happen in the blocked bugs
Assignee | ||
Updated•14 years ago
|
tracking-firefox6:
? → ---
Assignee | ||
Updated•14 years ago
|
status-firefox6:
--- → fixed
Updated•14 years ago
|
Target Milestone: --- → Firefox 6
You need to log in
before you can comment on or make changes to this bug.
Description
•