Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the duration of no tags available message #747

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ private ONStyle() {
public static final int DURATION_MEDIUM = 1650;
public static final int DURATION_LONG = 2300;

public static final Configuration CONFIGURATION;
public static final Configuration CONFIGURATION_DURATION_SHORT;
public static final Configuration CONFIGURATION_DURATION_MEDIUM;
public static final Configuration CONFIGURATION_DURATION_LONG;
public static final Style ALERT;
public static final Style WARN;
public static final Style CONFIRM;
Expand All @@ -48,38 +50,48 @@ private ONStyle() {


static {
CONFIGURATION = new Configuration.Builder()
CONFIGURATION_DURATION_SHORT = new Configuration.Builder()
.setDuration(DURATION_SHORT)
.setInAnimation(R.animator.fade_in_support)
.setOutAnimation(R.animator.fade_out_support)
.build();
CONFIGURATION_DURATION_MEDIUM = new Configuration.Builder()
.setDuration(DURATION_MEDIUM)
.setInAnimation(R.animator.fade_in_support)
.setOutAnimation(R.animator.fade_out_support)
.build();
CONFIGURATION_DURATION_LONG = new Configuration.Builder()
.setDuration(DURATION_LONG)
.setInAnimation(R.animator.fade_in_support)
.setOutAnimation(R.animator.fade_out_support)
.build();
ALERT = new Style.Builder()
.setBackgroundColor(ALERT_COLOR)
.setHeight(LayoutParams.MATCH_PARENT)
.setGravity(Gravity.CENTER)
.setTextAppearance(R.style.crouton_text)
.setConfiguration(CONFIGURATION)
.setConfiguration(CONFIGURATION_DURATION_SHORT)
.build();
WARN = new Style.Builder()
.setBackgroundColor(WARN_COLOR)
.setHeight(LayoutParams.MATCH_PARENT)
.setGravity(Gravity.CENTER)
.setTextAppearance(R.style.crouton_text)
.setConfiguration(CONFIGURATION)
.setConfiguration(CONFIGURATION_DURATION_MEDIUM)
.build();
CONFIRM = new Style.Builder()
.setBackgroundColor(CONFIRM_COLOR)
.setHeight(LayoutParams.MATCH_PARENT)
.setGravity(Gravity.CENTER)
.setTextAppearance(R.style.crouton_text)
.setConfiguration(CONFIGURATION)
.setConfiguration(CONFIGURATION_DURATION_SHORT)
.build();
INFO = new Style.Builder()
.setBackgroundColor(INFO_COLOR)
.setHeight(LayoutParams.MATCH_PARENT)
.setGravity(Gravity.CENTER)
.setTextAppearance(R.style.crouton_text)
.setConfiguration(CONFIGURATION)
.setConfiguration(CONFIGURATION_DURATION_SHORT)
.build();
}
}