Skip to content

Instantly share code, notes, and snippets.

@rinav
Created June 23, 2016 13:01
Show Gist options
  • Select an option

  • Save rinav/2bb2812e25cea10d12b9c18d1ed5a23c to your computer and use it in GitHub Desktop.

Select an option

Save rinav/2bb2812e25cea10d12b9c18d1ed5a23c to your computer and use it in GitHub Desktop.

Revisions

  1. @alibitek alibitek revised this gist Jun 12, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion android_toolbar_color_changes.txt
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ app:popupTheme="@style/ThemeOverlay.AppCompat.Light"

    Output:
    Toolbar: white text, primaryColor background
    Popup: white text, white background
    Popup: black text, white background

    4)
    Input:
  2. @alibitek alibitek revised this gist Jun 12, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion android_toolbar_color_changes.txt
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,6 @@ Output:
    Toolbar: black text, primaryColor background
    Popup: black text, white background


    2)
    Input:
    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  3. @alibitek alibitek created this gist Jun 12, 2015.
    38 changes: 38 additions & 0 deletions android_toolbar_color_changes.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    Toolbar text and popup color tests

    1)
    Input:
    app:theme="@style/ThemeOverlay.AppCompat.Light"
    app:popupTheme="@style/ThemeOverlay.AppCompat.Light"

    Output:
    Toolbar: black text, primaryColor background
    Popup: black text, white background


    2)
    Input:
    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"

    Output:
    Toolbar: white text, primaryColor background
    Popup: white text, black background

    3)
    Input:
    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    app:popupTheme="@style/ThemeOverlay.AppCompat.Light"

    Output:
    Toolbar: white text, primaryColor background
    Popup: white text, white background

    4)
    Input:
    app:theme="@style/ThemeOverlay.AppCompat.Light"
    app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"

    Output:
    Toolbar: black text, primaryColor background
    Popup: white text, black background