forked from upstream-mirrors/quik
Flatten swatch, add background to picker
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2017 Moez Bhatti <moez.bhatti@gmail.com>
|
||||
~
|
||||
~ This file is part of QKSMS.
|
||||
~
|
||||
~ QKSMS is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ QKSMS is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/white" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -6,6 +6,17 @@
|
||||
android:layout_height="wrap_content"
|
||||
tools:parentTag="feature.themepicker.HSVPickerView">
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="@drawable/rounded_rectangle_4dp"
|
||||
android:backgroundTint="@color/white"
|
||||
android:rotation="90"
|
||||
app:layout_constraintBottom_toBottomOf="@id/saturation"
|
||||
app:layout_constraintEnd_toEndOf="@id/saturation"
|
||||
app:layout_constraintStart_toStartOf="@id/saturation"
|
||||
app:layout_constraintTop_toTopOf="@id/saturation" />
|
||||
|
||||
<View
|
||||
android:id="@+id/saturation"
|
||||
android:layout_width="0dp"
|
||||
@@ -30,25 +41,13 @@
|
||||
app:layout_constraintStart_toStartOf="@id/saturation"
|
||||
app:layout_constraintTop_toTopOf="@id/saturation" />
|
||||
|
||||
<FrameLayout
|
||||
<ImageView
|
||||
android:id="@+id/swatch"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:background="@drawable/circle"
|
||||
android:padding="2dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/saturation"
|
||||
app:layout_constraintEnd_toEndOf="@id/saturation"
|
||||
app:layout_constraintStart_toStartOf="@id/saturation"
|
||||
app:layout_constraintTop_toTopOf="@id/saturation">
|
||||
|
||||
<View
|
||||
android:id="@+id/swatchPreview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/circle"
|
||||
android:backgroundTint="@color/tools_theme" />
|
||||
|
||||
</FrameLayout>
|
||||
android:src="@drawable/circle"
|
||||
tools:tint="@color/tools_theme" />
|
||||
|
||||
</merge>
|
||||
Reference in New Issue
Block a user