forked from upstream-mirrors/quik
Show preview of theme in settings
This commit is contained in:
@@ -77,7 +77,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:icon="@drawable/ic_color_lens_black_24dp"
|
||||
app:title="@string/settings_theme_title" />
|
||||
app:title="@string/settings_theme_title"
|
||||
app:widget="@layout/settings_theme_widget" />
|
||||
|
||||
<common.widget.PreferenceView
|
||||
android:id="@+id/night"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp">
|
||||
|
||||
<View
|
||||
android:id="@+id/themePreview"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/circle"
|
||||
tools:backgroundTint="@color/tools_theme" />
|
||||
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user