From beaffc38706120e4d89d50354738b6901f3c636b Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 11 Jul 2020 19:16:49 -0400 Subject: [PATCH] Remove redundant layout for reader color filter sheet --- .../ui/reader/ReaderColorFilterSheet.kt | 26 +- .../main/res/layout/reader_color_filter.xml | 234 ------------------ .../res/layout/reader_color_filter_sheet.xml | 233 ++++++++++++++++- 3 files changed, 239 insertions(+), 254 deletions(-) delete mode 100644 app/src/main/res/layout/reader_color_filter.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt index b70f3f2c00..f4227ca8e7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderColorFilterSheet.kt @@ -10,19 +10,19 @@ import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.widget.IgnoreFirstSpinnerListener import eu.kanade.tachiyomi.widget.SimpleSeekBarListener -import kotlinx.android.synthetic.main.reader_color_filter.brightness_seekbar -import kotlinx.android.synthetic.main.reader_color_filter.color_filter_mode -import kotlinx.android.synthetic.main.reader_color_filter.custom_brightness -import kotlinx.android.synthetic.main.reader_color_filter.seekbar_color_filter_alpha -import kotlinx.android.synthetic.main.reader_color_filter.seekbar_color_filter_blue -import kotlinx.android.synthetic.main.reader_color_filter.seekbar_color_filter_green -import kotlinx.android.synthetic.main.reader_color_filter.seekbar_color_filter_red -import kotlinx.android.synthetic.main.reader_color_filter.switch_color_filter -import kotlinx.android.synthetic.main.reader_color_filter.txt_brightness_seekbar_value -import kotlinx.android.synthetic.main.reader_color_filter.txt_color_filter_alpha_value -import kotlinx.android.synthetic.main.reader_color_filter.txt_color_filter_blue_value -import kotlinx.android.synthetic.main.reader_color_filter.txt_color_filter_green_value -import kotlinx.android.synthetic.main.reader_color_filter.txt_color_filter_red_value +import kotlinx.android.synthetic.main.reader_color_filter_sheet.brightness_seekbar +import kotlinx.android.synthetic.main.reader_color_filter_sheet.color_filter_mode +import kotlinx.android.synthetic.main.reader_color_filter_sheet.custom_brightness +import kotlinx.android.synthetic.main.reader_color_filter_sheet.seekbar_color_filter_alpha +import kotlinx.android.synthetic.main.reader_color_filter_sheet.seekbar_color_filter_blue +import kotlinx.android.synthetic.main.reader_color_filter_sheet.seekbar_color_filter_green +import kotlinx.android.synthetic.main.reader_color_filter_sheet.seekbar_color_filter_red +import kotlinx.android.synthetic.main.reader_color_filter_sheet.switch_color_filter +import kotlinx.android.synthetic.main.reader_color_filter_sheet.txt_brightness_seekbar_value +import kotlinx.android.synthetic.main.reader_color_filter_sheet.txt_color_filter_alpha_value +import kotlinx.android.synthetic.main.reader_color_filter_sheet.txt_color_filter_blue_value +import kotlinx.android.synthetic.main.reader_color_filter_sheet.txt_color_filter_green_value +import kotlinx.android.synthetic.main.reader_color_filter_sheet.txt_color_filter_red_value import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.sample diff --git a/app/src/main/res/layout/reader_color_filter.xml b/app/src/main/res/layout/reader_color_filter.xml deleted file mode 100644 index 00f8efe06d..0000000000 --- a/app/src/main/res/layout/reader_color_filter.xml +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/reader_color_filter_sheet.xml b/app/src/main/res/layout/reader_color_filter_sheet.xml index 64e9b0fe6e..00f8efe06d 100644 --- a/app/src/main/res/layout/reader_color_filter_sheet.xml +++ b/app/src/main/res/layout/reader_color_filter_sheet.xml @@ -1,15 +1,234 @@ - + android:padding="16dp"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:text="@string/pref_custom_brightness" + app:layout_constraintTop_toBottomOf="@id/color_filter_mode_text" /> - + - + - + + + + + + +