UI theme can be changed
This commit is contained in:
		| @@ -17,9 +17,13 @@ public class ActivitySettings extends PreferenceActivity | |||||||
| 	{ | 	{ | ||||||
| 		super.onCreate(savedInstanceState); | 		super.onCreate(savedInstanceState); | ||||||
| 		Miscellaneous.setDisplayLanguage(this); | 		Miscellaneous.setDisplayLanguage(this); | ||||||
|  |  | ||||||
|  | 		// Dark Theme doesn't work in PreferenceActivity, so only a bright theme is readable | ||||||
|  |  | ||||||
| 		if(Settings.uiTheme != 0) | 		if(Settings.uiTheme != 0) | ||||||
| 			this.setTheme(R.style.AppThemeCompatLight); | 			this.setTheme(R.style.AppThemeCompatLight); | ||||||
| //		Miscellaneous.setUiTheme(this); | //		Miscellaneous.setUiTheme(this); | ||||||
|  |  | ||||||
| 		addPreferencesFromResource(layout.activity_settings); | 		addPreferencesFromResource(layout.activity_settings); | ||||||
|  |  | ||||||
| 		if(BuildConfig.FLAVOR.equals(AutomationService.flavor_name_apk)) | 		if(BuildConfig.FLAVOR.equals(AutomationService.flavor_name_apk)) | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 			android:background="@color/cardview_shadow_start_color" > | ||||||
| 		     | 		     | ||||||
| 		    <TextView | 		    <TextView | ||||||
| 			    android:id="@+id/etActivityOrActionPath" | 			    android:id="@+id/etActivityOrActionPath" | ||||||
| @@ -45,7 +45,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		     | 		     | ||||||
| 		    <TextView | 		    <TextView | ||||||
| 	        	android:id="@+id/tvPoiTitle" | 	        	android:id="@+id/tvPoiTitle" | ||||||
| @@ -77,7 +77,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		     | 		     | ||||||
| 		    <TextView | 		    <TextView | ||||||
| 		    	android:id="@+id/tvRuleTitle" | 		    	android:id="@+id/tvRuleTitle" | ||||||
| @@ -109,7 +109,7 @@ | |||||||
| 			android:orientation="horizontal" | 			android:orientation="horizontal" | ||||||
| 			android:layout_width="match_parent" | 			android:layout_width="match_parent" | ||||||
| 			android:layout_height="wrap_content" | 			android:layout_height="wrap_content" | ||||||
| 			android:background="@color/barBackgroundColor" > | 			android:background="@color/cardview_shadow_start_color" > | ||||||
|  |  | ||||||
| 			<TextView | 			<TextView | ||||||
| 				android:id="@+id/tvProfileTitle" | 				android:id="@+id/tvProfileTitle" | ||||||
| @@ -142,7 +142,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 	    	<TextView | 	    	<TextView | ||||||
| 		        android:layout_width="wrap_content" | 		        android:layout_width="wrap_content" | ||||||
| 		        android:layout_height="wrap_content" | 		        android:layout_height="wrap_content" | ||||||
| @@ -169,7 +169,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 	    	<TextView | 	    	<TextView | ||||||
| 		        android:id="@+id/tvTimeFrameTitle" | 		        android:id="@+id/tvTimeFrameTitle" | ||||||
| 		        android:layout_width="wrap_content" | 		        android:layout_width="wrap_content" | ||||||
| @@ -197,7 +197,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
|    |    | ||||||
| 	    	<TextView | 	    	<TextView | ||||||
| 		        android:id="@+id/tvProcessMonitoringTitle" | 		        android:id="@+id/tvProcessMonitoringTitle" | ||||||
| @@ -225,7 +225,7 @@ | |||||||
| 			android:orientation="horizontal" | 			android:orientation="horizontal" | ||||||
| 			android:layout_width="match_parent" | 			android:layout_width="match_parent" | ||||||
| 			android:layout_height="wrap_content" | 			android:layout_height="wrap_content" | ||||||
| 			android:background="@color/barBackgroundColor" > | 			android:background="@color/cardview_shadow_start_color" > | ||||||
|  |  | ||||||
| 			<TextView | 			<TextView | ||||||
| 				android:layout_width="wrap_content" | 				android:layout_width="wrap_content" | ||||||
| @@ -251,7 +251,7 @@ | |||||||
| 			android:orientation="horizontal" | 			android:orientation="horizontal" | ||||||
| 			android:layout_width="match_parent" | 			android:layout_width="match_parent" | ||||||
| 			android:layout_height="wrap_content" | 			android:layout_height="wrap_content" | ||||||
| 			android:background="@color/barBackgroundColor" > | 			android:background="@color/cardview_shadow_start_color" > | ||||||
|  |  | ||||||
| 			<TextView | 			<TextView | ||||||
| 				android:layout_width="wrap_content" | 				android:layout_width="wrap_content" | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		 | 		 | ||||||
| 		   <TextView | 		   <TextView | ||||||
| 		       android:layout_width="wrap_content" | 		       android:layout_width="wrap_content" | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		 | 		 | ||||||
| 		   <TextView | 		   <TextView | ||||||
| 		       android:layout_width="wrap_content" | 		       android:layout_width="wrap_content" | ||||||
| @@ -123,7 +123,7 @@ | |||||||
| 					android:layout_width="match_parent" | 					android:layout_width="match_parent" | ||||||
| 					android:layout_height="wrap_content" | 					android:layout_height="wrap_content" | ||||||
| 					android:layout_marginTop="10dp" | 					android:layout_marginTop="10dp" | ||||||
| 					android:background="@color/barBackgroundColor" | 					android:background="@color/cardview_shadow_start_color" | ||||||
| 					android:orientation="horizontal"> | 					android:orientation="horizontal"> | ||||||
|  |  | ||||||
| 					<TextView | 					<TextView | ||||||
| @@ -160,7 +160,7 @@ | |||||||
| 					android:layout_width="match_parent" | 					android:layout_width="match_parent" | ||||||
| 					android:layout_height="wrap_content" | 					android:layout_height="wrap_content" | ||||||
| 					android:layout_marginTop="10dp" | 					android:layout_marginTop="10dp" | ||||||
| 					android:background="@color/barBackgroundColor" | 					android:background="@color/cardview_shadow_start_color" | ||||||
| 					android:orientation="horizontal"> | 					android:orientation="horizontal"> | ||||||
|  |  | ||||||
| 					<TextView | 					<TextView | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
|  |  | ||||||
| 	        <TextView | 	        <TextView | ||||||
| 	            android:layout_width="wrap_content" | 	            android:layout_width="wrap_content" | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		     | 		     | ||||||
| 		    <TextView | 		    <TextView | ||||||
| 		        android:layout_width="wrap_content" | 		        android:layout_width="wrap_content" | ||||||
| @@ -83,7 +83,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		     | 		     | ||||||
| 		    <TextView | 		    <TextView | ||||||
| 		        android:layout_width="wrap_content" | 		        android:layout_width="wrap_content" | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		     | 		     | ||||||
| 		    <TextView | 		    <TextView | ||||||
| 		        android:layout_width="wrap_content" | 		        android:layout_width="wrap_content" | ||||||
|   | |||||||
| @@ -30,7 +30,7 @@ | |||||||
| 	    android:orientation="horizontal" | 	    android:orientation="horizontal" | ||||||
| 	    android:layout_width="match_parent" | 	    android:layout_width="match_parent" | ||||||
| 	    android:layout_height="wrap_content" | 	    android:layout_height="wrap_content" | ||||||
| 	    android:background="@color/barBackgroundColor" > | 	    android:background="@color/cardview_shadow_start_color" > | ||||||
| 	     | 	     | ||||||
| 	    <TextView | 	    <TextView | ||||||
| 	        android:id="@+id/tvRuleTitle" | 	        android:id="@+id/tvRuleTitle" | ||||||
|   | |||||||
| @@ -34,7 +34,7 @@ | |||||||
| 		    android:orientation="horizontal" | 		    android:orientation="horizontal" | ||||||
| 		    android:layout_width="match_parent" | 		    android:layout_width="match_parent" | ||||||
| 		    android:layout_height="wrap_content" | 		    android:layout_height="wrap_content" | ||||||
| 		    android:background="@color/barBackgroundColor" > | 		    android:background="@color/cardview_shadow_start_color" > | ||||||
| 		     | 		     | ||||||
| 		    <TextView | 		    <TextView | ||||||
| 		        android:id="@+id/tvRuleTitle" | 		        android:id="@+id/tvRuleTitle" | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ | |||||||
| 	    android:orientation="horizontal" | 	    android:orientation="horizontal" | ||||||
| 	    android:layout_width="match_parent" | 	    android:layout_width="match_parent" | ||||||
| 	    android:layout_height="wrap_content" | 	    android:layout_height="wrap_content" | ||||||
| 	    android:background="@color/barBackgroundColor" > | 	    android:background="@color/cardview_shadow_start_color" > | ||||||
| 	 | 	 | ||||||
| 	    <TextView | 	    <TextView | ||||||
| 	        android:id="@+id/tvLastRule" | 	        android:id="@+id/tvLastRule" | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|             android:orientation="horizontal" |             android:orientation="horizontal" | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content" | ||||||
|             android:background="@color/barBackgroundColor" > |             android:background="@color/cardview_shadow_start_color" > | ||||||
|  |  | ||||||
|             <TextView |             <TextView | ||||||
|                 android:layout_width="wrap_content" |                 android:layout_width="wrap_content" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user