X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2Ftui%2FUiColors.java;h=eadcd2985ca0546af2ab39126d4cb048ac5181ae;hp=589579a6281caebdcb61d04ea04d46ff251c8fcf;hb=f82bad11bbabc89805a5a8000f59a3b1df3e5c3d;hpb=78e4af97505df331618f9c13dd5d98440d364764 diff --git a/src/be/nikiroo/jvcard/tui/UiColors.java b/src/be/nikiroo/jvcard/tui/UiColors.java index 589579a..eadcd29 100644 --- a/src/be/nikiroo/jvcard/tui/UiColors.java +++ b/src/be/nikiroo/jvcard/tui/UiColors.java @@ -39,7 +39,9 @@ public class UiColors { TITLE_MAIN, TITLE_VARIABLE, TITLE_COUNT, // ACTION_KEY, ACTION_DESC, // LINE_MESSAGE, LINE_MESSAGE_ERR, LINE_MESSAGE_QUESTION, LINE_MESSAGE_ANS, // - CONTACT_LINE, CONTACT_LINE_SEPARATOR, CONTACT_LINE_SELECTED, CONTACT_LINE_SEPARATOR_SELECTED, CONTACT_LINE_DIRTY, CONTACT_LINE_DIRTY_SELECTED; + CONTACT_LINE, CONTACT_LINE_SEPARATOR, CONTACT_LINE_SELECTED, CONTACT_LINE_SEPARATOR_SELECTED, CONTACT_LINE_DIRTY, CONTACT_LINE_DIRTY_SELECTED, // + VIEW_CONTACT_NAME, VIEW_CONTACT_NORMAL, VIEW_CONTACT_NOTES_TITLE, // + ; /** * Get the foreground colour of this element. @@ -88,6 +90,9 @@ public class UiColors { } private Label createLabel(Element el, String text) { + if (text == null) + text = ""; + Label lbl = new Label(text); themeLabel(el, lbl); return lbl; @@ -139,6 +144,12 @@ public class UiColors { addEl(Element.TITLE_MAIN, TextColor.ANSI.WHITE, TextColor.ANSI.BLUE); addEl(Element.TITLE_VARIABLE, TextColor.ANSI.GREEN, TextColor.ANSI.BLUE); addEl(Element.TITLE_COUNT, TextColor.ANSI.RED, TextColor.ANSI.BLUE); + addEl(Element.VIEW_CONTACT_NAME, TextColor.ANSI.BLACK, + TextColor.ANSI.WHITE); + addEl(Element.VIEW_CONTACT_NORMAL, TextColor.ANSI.WHITE, + TextColor.ANSI.BLACK); + addEl(Element.VIEW_CONTACT_NOTES_TITLE, TextColor.ANSI.BLACK, + TextColor.ANSI.WHITE); } private void addEl(Element el, TextColor fore, TextColor back) {