mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Add an overlay on top of the reader to simulate a lower brightness. Closes #362
This commit is contained in:
		| @@ -99,4 +99,10 @@ | ||||
|  | ||||
|     </FrameLayout> | ||||
|  | ||||
|     <View | ||||
|         android:id="@+id/brightness_overlay" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:visibility="gone"/> | ||||
|  | ||||
| </FrameLayout> | ||||
| @@ -1,6 +1,7 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <LinearLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:orientation="vertical" | ||||
| @@ -188,10 +189,15 @@ | ||||
|         android:layout_height="wrap_content" | ||||
|         android:text="@string/pref_custom_brightness"/> | ||||
|  | ||||
|     <SeekBar | ||||
|     <org.adw.library.widgets.discreteseekbar.DiscreteSeekBar | ||||
|         android:id="@+id/brightness_seekbar" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         style="@style/TextAppearance.Regular.Body1.Light"/> | ||||
|         app:dsb_min="-50" | ||||
|         app:dsb_max="100" | ||||
|         app:dsb_indicatorFormatter="%d%%" | ||||
|         app:dsb_indicatorTextAppearance="@style/TextAppearance.Regular" | ||||
|         app:dsb_indicatorColor="?colorAccent" | ||||
|         app:dsb_progressColor="?colorAccent" /> | ||||
|  | ||||
| </LinearLayout> | ||||
| @@ -27,7 +27,7 @@ | ||||
|     <string name="pref_show_page_number_key">pref_show_page_number_key</string> | ||||
|     <string name="pref_keep_screen_on_key">pref_keep_screen_on_key</string> | ||||
|     <string name="pref_custom_brightness_key">pref_custom_brightness_key</string> | ||||
|     <string name="pref_custom_brightness_value_key">pref_custom_brightness_value_key</string> | ||||
|     <string name="pref_custom_brightness_value_key">custom_brightness_value</string> | ||||
|     <string name="pref_reader_theme_key">pref_reader_theme_key</string> | ||||
|     <string name="pref_image_decoder_key">pref_image_decoder_key</string> | ||||
|     <string name="pref_read_with_volume_keys_key">reader_volume_keys</string> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user