Closed Bug 1377294 Opened 7 years ago Closed 7 years ago

(photon) - Let some toolbar views become theme-able

Categories

(Firefox for Android Graveyard :: General, enhancement)

56 Branch
enhancement
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: walkingice, Assigned: walkingice)

References

Details

Attachments

(4 files)

There are some views in Toolbar, such as

* Mic icon
* QRCode icon
* Search icon
* Site identity

In Australis-flavor, they always have same appearance regardless of normal/private mode. However in Photon-flavor, their appearance should changed.

This bug tries to changes their class type from `Foo` to `ThemedFoo`.
Comment on attachment 8882383 [details]
Bug 1377294 - Let Site-Identity becomes theme-able

https://reviewboard.mozilla.org/r/153490/#review159258

::: mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarDisplayLayout.java:166
(Diff revision 1)
>          mStop = (ImageButton) findViewById(R.id.stop);
>          mPageActionLayout = (PageActionLayout) findViewById(R.id.page_action_layout);
>      }
>  
>      @Override
> +    public void setPrivateMode(boolean isPrivate) {

Should add `super.setPrivateMode(boolean)`?
Attachment #8882383 - Flags: review?(topwu.tw) → review+
Comment on attachment 8882384 [details]
Bug 1377294 - ToolbarDisplay layout color span supports Pirvate mode

https://reviewboard.mozilla.org/r/153492/#review159260

::: mobile/android/app/src/australis/res/values/colors.xml:111
(Diff revision 1)
>    <color name="url_bar_urltext">#AFB1B3</color>
>    <color name="url_bar_urltext_private">#777777</color>
>    <color name="url_bar_domaintext">#363B40</color>
>    <color name="url_bar_domaintext_private">#FFFFFF</color>
>    <color name="url_bar_blockedtext">#b14646</color>
> +  <color name="url_bar_blockedtext_private">#b14646</color>

Maybe just reference to `@color/url_bar_blockedtext`?
Attachment #8882384 - Flags: review?(topwu.tw) → review+
Comment on attachment 8882382 [details]
Bug 1377294 - Let some icon in ToolbarEditLayout become Theme-able

https://reviewboard.mozilla.org/r/153488/#review159262
Attachment #8882382 - Flags: review?(topwu.tw) → review+
Comment on attachment 8882381 [details]
Bug 1377294 - duplicate xml resource files

https://reviewboard.mozilla.org/r/153486/#review159264
Attachment #8882381 - Flags: review?(topwu.tw) → review+
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2cf287966c9f
duplicate xml resource files r=jwu
https://hg.mozilla.org/integration/autoland/rev/a2e429b4f101
Let some icon in ToolbarEditLayout become Theme-able r=jwu
https://hg.mozilla.org/integration/autoland/rev/3de22a3d12a9
Let Site-Identity becomes theme-able r=jwu
https://hg.mozilla.org/integration/autoland/rev/8122909722c4
ToolbarDisplay layout color span supports Pirvate mode r=jwu
Keywords: checkin-needed
Comment on attachment 8882381 [details]
Bug 1377294 - duplicate xml resource files

https://reviewboard.mozilla.org/r/153486/#review160590
Attachment #8882381 - Flags: review?(cnevinchen) → review+
Comment on attachment 8882382 [details]
Bug 1377294 - Let some icon in ToolbarEditLayout become Theme-able

https://reviewboard.mozilla.org/r/153488/#review160592
Attachment #8882382 - Flags: review?(cnevinchen) → review+
Comment on attachment 8882383 [details]
Bug 1377294 - Let Site-Identity becomes theme-able

https://reviewboard.mozilla.org/r/153490/#review160594
Attachment #8882383 - Flags: review?(cnevinchen) → review+
Comment on attachment 8882384 [details]
Bug 1377294 - ToolbarDisplay layout color span supports Pirvate mode

https://reviewboard.mozilla.org/r/153492/#review160596

LGTM
Attachment #8882384 - Flags: review?(cnevinchen) → review+
Depends on: 1379503
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: