Closed
Bug 1214942
Opened 9 years ago
Closed 9 years ago
Toolbar ActionBar icon colors are the wrong color (white) on 5+.
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox45 fixed, fennec44+)
RESOLVED
FIXED
Firefox 45
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(4 files)
I remember using controlColor (or similar) to change the color of the controls in the preferences panel to white – perhaps this is related?
Assignee | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Aren't white icons correct after we switched to a .DarkActionBar theme? But the ActionBar should be dark? I'm a bit loosing track here. :)
On the positive side: On Android 6 we now have a floating toolbar (See screenshot).
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Sebastian Kaspari (:sebastian) from comment #2)
> Aren't white icons correct after we switched to a .DarkActionBar theme? But
> the ActionBar should be dark? I'm a bit loosing track here. :)
Perhaps but we need to override the icon color with toolbar icon grey.
I wonder why we choose dark action bar for the main activity, rather than light. I don't think we use the system action bar in any other places (and as such, it probably doesn't matter if we use dark or light).
> On the positive side: On Android 6 we now have a floating toolbar (See
> screenshot).
AppCompat is win! :D
Assignee | ||
Updated•9 years ago
|
tracking-fennec: --- → 44+
Assignee | ||
Comment 4•9 years ago
|
||
The commit I made to change the action bar style is here:
http://hg.mozilla.org/mozilla-central/rev/de6a56d4bd23
Assignee | ||
Comment 5•9 years ago
|
||
Removing the "android:" prefix from
<item name="android:actionBarTheme">@style/ActionBarTheme</item>
Changes the colors of the icons but changing the attached theme appears to do nothing – for some reason, this attribute needs the prefix.
I managed to change the color of the icons (colorControlNormal) with exception to the back button (which is still white), the background (actionModeBackground), the line at the bottom of the screen (colorControlActivated), and the icon pressed color (colorControlHighlight), but I'm pretty much flailing trying to change the color of the back button and the text.
Sebastian, do you know what's going on here? I'll post my WIP.
Flags: needinfo?(s.kaspari)
Assignee | ||
Comment 6•9 years ago
|
||
Bug 1214942 - (WIP) Change action bar colors on 5+.
Assignee | ||
Comment 7•9 years ago
|
||
I managed to change the text color – was it `android:textColor`? `textColor`? `colorPrimary`? `android:colorPrimary`? `actionMenuTextColor`? How about in a `titleTextStyle`?
No! It was `android:textColorPrimary`. -_- Still working on that back button color though.
Assignee | ||
Comment 8•9 years ago
|
||
For the back button, http://stackoverflow.com/a/27517878 says colorControlNormal but that doesn't seem to work.
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8676484 [details]
MozReview Request: Bug 1214942 - Change action bar colors on 5+. r=sebastian
Bug 1214942 - (WIP) Change action bar colors on 5+.
Comment 10•9 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #3)
> I wonder why we choose dark action bar for the main activity, rather than
> light. I don't think we use the system action bar in any other places (and
> as such, it probably doesn't matter if we use dark or light).
I did that! Because we actually use a dark ActionBar in the Settings and Sync Activities (Bug 1164287).
(In reply to Michael Comella (:mcomella) from comment #5)
> Sebastian, do you know what's going on here? I'll post my WIP.
Are you trying to go back to the light version? I think I tried this as well in bug 1195287. After several problems (I don't remember if it was the up button) I settled with a patch for a dark version that matches the toolbar we use in Settings/Sync. Resulting in something like this (Imagine white icons, this is a WIP screenshot): https://bug1195287.bmoattachments.org/attachment.cgi?id=8654076
If I remember correctly the Material theme always used/assumed a dark Contextual Action Bar no matter if a .DarkActionBar theme was used or not.
Flags: needinfo?(s.kaspari)
Assignee | ||
Comment 11•9 years ago
|
||
I moved the action bar style/theme to the gecko preferences and removed it from the main activity theme to get the attached screenshot.
However, whenever I add an actionBarTheme to the main activity theme, the back arrow turns white and I can't figure out which setting changes that (perhaps it's related to bug 1220309?). I assume we're overwriting the system style which sets the button to black but the default is white.
If I can't figure it out soon, it's probably not worth the effort (this looks alright as is!) and we can fix it when we unify the action bar style entirely.
Assignee | ||
Comment 12•9 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #11)
> However, whenever I add an actionBarTheme to the main activity theme, the
> back arrow turns white and I can't figure out which setting changes that
> (perhaps it's related to bug 1220309?).
It's related to bug 1220309 – I extended AppCompatActivity in GeckoApp and removed the `android:` attributes from `actionBar*` and the back arrow color is changed to the color of colorControlNormal (the attribute I expected it to be).
Guess we're rolling with this.
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8676484 [details]
MozReview Request: Bug 1214942 - Change action bar colors on 5+. r=sebastian
Bug 1214942 - Change action bar colors on 5+. r=sebastian
The Preferences Activity looks as desired.
We can't get the main activity to have the desired looks because bug 1220309
prevents us from changing the Action Bar back button color from white so we
went with the default style which looks *alright*.
Attachment #8676484 -
Attachment description: MozReview Request: Bug 1214942 - (WIP) Change action bar colors on 5+. → MozReview Request: Bug 1214942 - Change action bar colors on 5+. r=sebastian
Attachment #8676484 -
Flags: review?(s.kaspari)
Comment 14•9 years ago
|
||
Comment on attachment 8676484 [details]
MozReview Request: Bug 1214942 - Change action bar colors on 5+. r=sebastian
https://reviewboard.mozilla.org/r/22729/#review21915
Attachment #8676484 -
Flags: review?(s.kaspari) → review+
Assignee | ||
Comment 15•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/d750bdaa6ffa78e97b3d08e9fcd5602bb5415a43
Bug 1214942 - Change action bar colors on 5+. r=sebastian
Comment 16•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•