LiveView tinting on ComposeButton

This commit is contained in:
Moez Bhatti
2015-12-24 18:14:46 -05:00
parent d3d336a453
commit 7127333fa8
@@ -36,6 +36,8 @@ import android.widget.ImageView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.Toast; import android.widget.Toast;
import com.github.lzyzsd.circleprogress.DonutProgress; import com.github.lzyzsd.circleprogress.DonutProgress;
import com.moez.QKSMS.common.preferences.*;
import com.moez.QKSMS.common.preferences.QKPreference;
import com.moez.QKSMS.mmssms.Transaction; import com.moez.QKSMS.mmssms.Transaction;
import com.moez.QKSMS.mmssms.Utils; import com.moez.QKSMS.mmssms.Utils;
import com.moez.QKSMS.R; import com.moez.QKSMS.R;
@@ -182,7 +184,7 @@ public class ComposeView extends LinearLayout implements View.OnClickListener, L
mDelay.setOnClickListener(this); mDelay.setOnClickListener(this);
LiveViewManager.registerView(this); LiveViewManager.registerView(this);
LiveViewManager.registerPreference(this, SettingsFragment.THEME); LiveViewManager.registerPreference(this, QKPreference.ACTIVE_THEME.getKey());
LiveViewManager.registerPreference(this, SettingsFragment.BACKGROUND); LiveViewManager.registerPreference(this, SettingsFragment.BACKGROUND);
refresh(); refresh();
@@ -950,10 +952,10 @@ public class ComposeView extends LinearLayout implements View.OnClickListener, L
@Override @Override
public void refresh() { public void refresh() {
mButtonBackground.setColorFilter(ThemeManager.getColor(), PorterDuff.Mode.SRC_ATOP); mButtonBackground.setColorFilter(ThemeManager.getActiveColor(), PorterDuff.Mode.SRC_ATOP);
mButtonBar1.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP); mButtonBar1.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP);
mButtonBar2.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP); mButtonBar2.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP);
mAttachmentPanel.setBackgroundColor(ThemeManager.getColor()); mAttachmentPanel.setBackgroundColor(ThemeManager.getActiveColor());
mAttach.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP); mAttach.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP);
mCamera.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP); mCamera.setColorFilter(ThemeManager.getTextOnColorPrimary(), PorterDuff.Mode.SRC_ATOP);
updateDelayButton(); updateDelayButton();