package com.wamod.entry;
import android.graphics.Color;
import android.util.TypedValue;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import com.wamod.Resources;
import com.wamod.Utils;
/**
* Created by brianvalente on 10/4/15.
*/
public class Simple {
public static void init(com.whatsapp.Conversation a) {
EditText entry = (EditText) a.findViewById(Resources.id.entry);
ImageButton voiceNoteBtn = (ImageButton) a.findViewById(Resources.id.voice_note_btn);
ImageButton sendBtn = (ImageButton) a.findViewById(Resources.id.send);
FrameLayout footer = (FrameLayout) a.findViewById(Resources.id.footer);
footer.setBackgroundColor(Color.parseColor("#" + Utils.prefs.getString("theme_simple_conversation_bgcolor", "ffffff")));
entry.setTextSize(TypedValue.COMPLEX_UNIT_DIP, Utils.prefs.getFloat("theme_simple_conversation_entry_textsize", 20));
entry.setHintTextColor(Color.parseColor("#" + Utils.prefs.getString("theme_simple_conversation_entry_hintcolor", "606060")));
entry.setTextColor(Color.parseColor("#" + Utils.prefs.getString("theme_simple_conversation_entry_textcolor", "2a2a2a")));
entry.clearFocus();
voiceNoteBtn.setColorFilter(Color.parseColor("#" + Utils.prefs.getString("theme_simple_conversation_mic_color", "606060")));
sendBtn.setColorFilter(Color.parseColor("#" + Utils.prefs.getString("theme_simple_conversation_send_color", "606060")));
}
}