use of com.reactnativenavigation.options.params.ThemeColour in project react-native-navigation by wix.
the class TopBarButtonControllerTest method setIconColor_disabledColor.
@Test
public void setIconColor_disabledColor() {
setIconButton(false);
button.disabledColor = new ThemeColour(new Colour(Color.BLACK), new Colour(Color.BLACK));
uut.addToMenu(getTitleBar(), 0);
verify(optionsPresenter).tint(any(), eq(Color.BLACK));
}
use of com.reactnativenavigation.options.params.ThemeColour in project react-native-navigation by wix.
the class BottomTabPresenterTest method createTab2Options.
private Options createTab2Options() {
Options options = new Options();
options.bottomTabOptions.badge = new Text("tab2badge");
options.bottomTabOptions.iconColor = new ThemeColour(new Colour(Color.RED));
options.bottomTabOptions.selectedIconColor = new ThemeColour(new Colour(Color.RED));
return options;
}
use of com.reactnativenavigation.options.params.ThemeColour in project react-native-navigation by wix.
the class BottomTabPresenterTest method mergeChildOptions_nullColorsAreNotMerged.
@Test
public void mergeChildOptions_nullColorsAreNotMerged() {
Options options = new Options();
options.bottomTabOptions.iconColor = new ThemeColour(new DontApplyColour());
options.bottomTabOptions.selectedIconColor = new ThemeColour(new DontApplyColour());
uut.mergeChildOptions(options, child3);
verify(bottomTabs, times(0)).setIconActiveColor(anyInt(), anyInt());
verify(bottomTabs, times(0)).setIconInactiveColor(anyInt(), anyInt());
}
use of com.reactnativenavigation.options.params.ThemeColour in project react-native-navigation by wix.
the class BottomTabPresenterTest method createTab1Options.
private Options createTab1Options() {
Options options = new Options();
options.bottomTabOptions.badge = new Text("tab1badge");
options.bottomTabOptions.iconColor = new ThemeColour(new Colour(Color.RED));
options.bottomTabOptions.selectedIconColor = new ThemeColour(new Colour(Color.RED));
return options;
}
use of com.reactnativenavigation.options.params.ThemeColour in project react-native-navigation by wix.
the class ButtonPresenterTest method applyColor_shouldChangeDisabledColor.
@Test
public void applyColor_shouldChangeDisabledColor() {
button.enabled = new Bool(false);
MenuItem menuItem = addMenuButton();
uut.applyOptions(titleBar, menuItem, buttonController::getView);
ThemeColour disabledColor = new ThemeColour(new Colour(Color.BLUE), new Colour(Color.BLUE));
uut.applyDisabledColor(titleBar, menuItem, disabledColor);
assertThat(findButtonView().getCurrentTextColor()).isEqualTo(Color.BLUE);
}
Aggregations