Add ability to apply custom color

This commit is contained in:
Moez Bhatti
2018-03-27 04:05:57 -04:00
parent bb8b2e6cdc
commit 8fc19bd355
9 changed files with 141 additions and 22 deletions
@@ -49,7 +49,9 @@
android:elevation="4dp"
android:padding="2dp"
android:src="@drawable/circle"
tools:tint="@color/tools_theme" />
tools:tint="@color/tools_theme"
tools:translationX="240dp"
tools:translationY="120dp" />
<FrameLayout
android:id="@+id/hueGroup"
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:animateLayoutChanges="true"
tools:background="@color/white">
<feature.themepicker.HSVPickerView
android:id="@+id/picker"
@@ -12,4 +15,42 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<android.support.constraint.Group
android:id="@+id/applyGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:constraint_referenced_ids="applyDivider, clear, apply" />
<common.widget.Separator
android:id="@+id/applyDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
app:layout_constraintBottom_toTopOf="@id/clear" />
<ImageView
android:id="@+id/clear"
android:layout_width="56dp"
android:layout_height="56dp"
android:background="@drawable/ripple"
android:padding="16dp"
android:src="@drawable/ic_cancel_black_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:tint="@color/textSecondary" />
<common.widget.QkTextView
android:id="@+id/apply"
style="@style/TextButton"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_marginEnd="8dp"
android:background="@drawable/rounded_rectangle_2dp"
android:elevation="2dp"
android:text="@string/theme_apply"
app:layout_constraintBottom_toBottomOf="@id/clear"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/clear"
tools:backgroundTint="@color/tools_theme"
tools:textColor="@color/textPrimaryDark" />
</android.support.constraint.ConstraintLayout>
@@ -142,6 +142,7 @@
<string name="theme_material">Material</string>
<string name="theme_rgb">RGB</string>
<string name="theme_apply">Apply</string>
<string name="notification_reply">Reply</string>
<string name="notification_read">Mark read</string>