Commit 0352c3f4 authored by Jing-wei Wu's avatar Jing-wei Wu
Browse files

Bug 1400164 - Part 1: Provide a getter method for tint colors of themed widgets. r=nechen

MozReview-Commit-ID: 2YWv9hjhAVr

--HG--
extra : rebase_source : 202335949ad30ee05b60b54b3d0db9df710dc19f
parent 5a6918d4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -166,6 +166,10 @@ public class ThemedEditText extends android.widget.EditText
        return new ColorDrawable(ContextCompat.getColor(getContext(), id));
    }

    public ColorStateList getDrawableColors() {
        return drawableColors;
    }

    protected LightweightTheme getTheme() {
        return theme;
    }
+4 −0
Original line number Diff line number Diff line
@@ -166,6 +166,10 @@ public class ThemedFrameLayout extends android.widget.FrameLayout
        return new ColorDrawable(ContextCompat.getColor(getContext(), id));
    }

    public ColorStateList getDrawableColors() {
        return drawableColors;
    }

    protected LightweightTheme getTheme() {
        return theme;
    }
+4 −0
Original line number Diff line number Diff line
@@ -194,6 +194,10 @@ public class ThemedImageButton extends android.widget.ImageButton
        return new ColorDrawable(ContextCompat.getColor(getContext(), id));
    }

    public ColorStateList getDrawableColors() {
        return drawableColors;
    }

    protected LightweightTheme getTheme() {
        return theme;
    }
+4 −0
Original line number Diff line number Diff line
@@ -193,6 +193,10 @@ public class ThemedImageView extends android.widget.ImageView
        return new ColorDrawable(ContextCompat.getColor(getContext(), id));
    }

    public ColorStateList getDrawableColors() {
        return drawableColors;
    }

    protected LightweightTheme getTheme() {
        return theme;
    }
+4 −0
Original line number Diff line number Diff line
@@ -161,6 +161,10 @@ public class ThemedLinearLayout extends android.widget.LinearLayout
        return new ColorDrawable(ContextCompat.getColor(getContext(), id));
    }

    public ColorStateList getDrawableColors() {
        return drawableColors;
    }

    protected LightweightTheme getTheme() {
        return theme;
    }
Loading