Browse Source

OC-1670: owncloud_white --> background_color

masensio 11 years ago
parent
commit
b78eb416a4

+ 1 - 1
res/drawable/list_selector.xml

@@ -22,6 +22,6 @@
 
     <item android:drawable="@color/owncloud_blue_bright" android:state_pressed="true"/>
     <item android:drawable="@color/owncloud_blue_bright" android:state_focused="true"/>
-    <item android:drawable="@color/owncloud_white" />
+    <item android:drawable="@color/background_color" />
 
 </selector>

+ 1 - 1
res/layout-v14/generic_explanation.xml

@@ -19,7 +19,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/owncloud_white" 
+    android:background="@color/background_color" 
     android:id="@+id/explanation"
     android:orientation="vertical">
 

+ 1 - 1
res/layout/failed_upload_files.xml

@@ -20,7 +20,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:background="@color/owncloud_white"
+    android:background="@color/background_color"
     android:orientation="vertical"
     android:id="@+id/failed_files_list_view">
 

+ 1 - 1
res/layout/failed_upload_message_view.xml

@@ -2,7 +2,7 @@
     android:id="@+id/failed_upload_message_view"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:background="@color/owncloud_white"
+    android:background="@color/background_color"
     android:orientation="vertical" >
 
    <TextView android:id="@+id/faild_upload_message" 

+ 1 - 1
res/layout/file_preview.xml

@@ -23,7 +23,7 @@
     android:id="@+id/top"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/owncloud_white"
+    android:background="@color/background_color"
     android:gravity="center"
     tools:context=".ui.fragment.FilePreviewFragment" >
 

+ 1 - 1
res/layout/files.xml

@@ -20,7 +20,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/owncloud_white"
+    android:background="@color/background_color"
     android:orientation="horizontal"
     android:baselineAligned="false"
     >

+ 1 - 1
res/layout/fragment_changelog.xml

@@ -19,7 +19,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/owncloud_white" 
+    android:background="@color/background_color" 
     android:id="@+id/explanation"
     android:orientation="vertical">
 

+ 1 - 1
res/layout/generic_explanation.xml

@@ -19,7 +19,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/owncloud_white" 
+    android:background="@color/background_color" 
     android:id="@+id/explanation"
     android:orientation="vertical">
 

+ 2 - 2
res/layout/preview_image_fragment.xml

@@ -23,7 +23,7 @@
     android:id="@+id/fdScrollView"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:background="@color/owncloud_white" 
+    android:background="@color/background_color" 
     android:gravity="center_horizontal"
 -->
 
@@ -32,7 +32,7 @@
     android:id="@+id/top"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:background="@color/owncloud_white"
+    android:background="@color/background_color"
     tools:context=".ui.fragment.PreviewImageFragment" >
 
     <ProgressBar 

+ 1 - 1
res/layout/upload_files_layout.xml

@@ -20,7 +20,7 @@
     android:id="@+id/upload_files_layout"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:background="@color/owncloud_white"
+    android:background="@color/background_color"
     android:orientation="vertical" >
 
     <fragment

+ 0 - 1
res/values/colors.xml

@@ -21,6 +21,5 @@
     
     <color name="filelist_icon_backgorund">#DDDDDD</color>
     <color name="owncloud_blue_bright">#00ddff</color>
-    <color name="owncloud_white">#F7F7F7</color>
     
 </resources>

+ 5 - 0
res/values/setup.xml

@@ -1,5 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
+    <!-- Colors -->
+    <color name="background_color">#F7F7F7</color>
+    
     <string name="server_url"></string>
     <bool name="show_server_url_input">true</bool>
     
@@ -7,4 +10,6 @@
     <string name="auth_method_oauth2">off</string>
     <string name="auth_method_saml_web_sso">off</string>
     
+
+    
 </resources>

+ 4 - 4
src/com/owncloud/android/ui/activity/InstantUploadActivity.java

@@ -149,7 +149,7 @@ public class InstantUploadActivity extends Activity {
                 loadmoreBtn = new Button(this);
                 loadmoreBtn.setId(42);
                 loadmoreBtn.setText(getString(R.string.failed_upload_load_more_images));
-                loadmoreBtn.setBackgroundResource(R.color.owncloud_white);
+                loadmoreBtn.setBackgroundResource(R.color.background_color);
                 loadmoreBtn.setTextSize(12);
                 loadmoreBtn.setOnClickListener(new OnClickListener() {
                     @Override
@@ -328,14 +328,14 @@ public class InstantUploadActivity extends Activity {
 
         TextView failureTextView = new TextView(this);
         failureTextView.setText(getString(R.string.failed_upload_failure_text) + message);
-        failureTextView.setBackgroundResource(R.color.owncloud_white);
+        failureTextView.setBackgroundResource(R.color.background_color);
         failureTextView.setTextSize(8);
         failureTextView.setOnLongClickListener(getOnLongClickListener(message));
         failureTextView.setPadding(5, 5, 5, 10);
         TextView retryButton = new TextView(this);
         retryButton.setId(id);
         retryButton.setText(img_path);
-        retryButton.setBackgroundResource(R.color.owncloud_white);
+        retryButton.setBackgroundResource(R.color.background_color);
         retryButton.setTextSize(8);
         retryButton.setOnClickListener(getImageButtonOnClickListener(img_path));
         retryButton.setOnLongClickListener(getOnLongClickListener(message));
@@ -365,7 +365,7 @@ public class InstantUploadActivity extends Activity {
     private CheckBox getFileCheckbox(int id) {
         CheckBox retryCB = new CheckBox(this);
         retryCB.setId(id);
-        retryCB.setBackgroundResource(R.color.owncloud_white);
+        retryCB.setBackgroundResource(R.color.background_color);
         retryCB.setTextSize(8);
         retryCB.setTag(retry_chexbox_tag);
         return retryCB;