зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
5a6918d43b
Коммит
0352c3f4a2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -166,6 +166,10 @@ public class ThemedListView extends android.widget.ListView
|
|||
return new ColorDrawable(ContextCompat.getColor(getContext(), id));
|
||||
}
|
||||
|
||||
public ColorStateList getDrawableColors() {
|
||||
return drawableColors;
|
||||
}
|
||||
|
||||
protected LightweightTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
|
|
@ -166,6 +166,10 @@ public class ThemedProgressBar extends android.widget.ProgressBar
|
|||
return new ColorDrawable(ContextCompat.getColor(getContext(), id));
|
||||
}
|
||||
|
||||
public ColorStateList getDrawableColors() {
|
||||
return drawableColors;
|
||||
}
|
||||
|
||||
protected LightweightTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
|
|
@ -166,6 +166,10 @@ public class ThemedRelativeLayout extends android.widget.RelativeLayout
|
|||
return new ColorDrawable(ContextCompat.getColor(getContext(), id));
|
||||
}
|
||||
|
||||
public ColorStateList getDrawableColors() {
|
||||
return drawableColors;
|
||||
}
|
||||
|
||||
protected LightweightTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
|
|
@ -161,6 +161,10 @@ public class ThemedTextSwitcher extends android.widget.TextSwitcher
|
|||
return new ColorDrawable(ContextCompat.getColor(getContext(), id));
|
||||
}
|
||||
|
||||
public ColorStateList getDrawableColors() {
|
||||
return drawableColors;
|
||||
}
|
||||
|
||||
protected LightweightTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
|
|
@ -166,6 +166,10 @@ public class ThemedTextView extends android.widget.TextView
|
|||
return new ColorDrawable(ContextCompat.getColor(getContext(), id));
|
||||
}
|
||||
|
||||
public ColorStateList getDrawableColors() {
|
||||
return drawableColors;
|
||||
}
|
||||
|
||||
protected LightweightTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
|
|
@ -166,6 +166,10 @@ public class ThemedView extends android.view.View
|
|||
return new ColorDrawable(ContextCompat.getColor(getContext(), id));
|
||||
}
|
||||
|
||||
public ColorStateList getDrawableColors() {
|
||||
return drawableColors;
|
||||
}
|
||||
|
||||
protected LightweightTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
|
|
@ -205,6 +205,10 @@ public class Themed@VIEW_NAME_SUFFIX@ extends @BASE_TYPE@
|
|||
return new ColorDrawable(ContextCompat.getColor(getContext(), id));
|
||||
}
|
||||
|
||||
public ColorStateList getDrawableColors() {
|
||||
return drawableColors;
|
||||
}
|
||||
|
||||
protected LightweightTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче