Explorar o código

Add play icon and set better color for both theme

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk hai 1 ano
pai
achega
d5b111ae7e

+ 1 - 7
app/src/main/java/com/owncloud/android/ui/activity/UploadListActivity.java

@@ -290,18 +290,12 @@ public class UploadListActivity extends FileActivity {
         int iconId;
         String title;
         if (preferences.getGlobalUploadPaused()) {
-            iconId = R.drawable.ic_play_arrow;
+            iconId = R.drawable.ic_play;
             title = getString(R.string.upload_action_global_upload_resume);
         } else {
             iconId = R.drawable.ic_pause;
             title = getString(R.string.upload_action_global_upload_pause);
         }
-        /*
-        DrawableUtil drawableUtil = new DrawableUtil();
-        Drawable iconDrawable = AppCompatResources.getDrawable(this, iconId);
-        assert iconDrawable != null;
-        iconDrawable = drawableUtil.changeColor(iconDrawable, R.color.dark_background_text_color);
-         */
 
         pauseMenuItem.setIcon(iconId);
         pauseMenuItem.setTitle(title);

+ 1 - 1
app/src/main/res/drawable/ic_pause.xml

@@ -4,6 +4,6 @@
     android:viewportWidth="960"
     android:viewportHeight="960">
   <path
-      android:fillColor="#FFEEEEEE"
+      android:fillColor="@color/foreground_highlight"
       android:pathData="M560,760v-560h160v560L560,760ZM240,760v-560h160v560L240,760Z"/>
 </vector>

+ 30 - 0
app/src/main/res/drawable/ic_play.xml

@@ -0,0 +1,30 @@
+<!--
+  ~ Nextcloud Android client application
+  ~
+  ~ @author Alper Ozturk
+  ~ Copyright (C) 2023 Alper Ozturk
+  ~ Copyright (C) 2023 Nextcloud GmbH
+  ~
+  ~ This program is free software: you can redistribute it and/or modify
+  ~ it under the terms of the GNU Affero General Public License as published by
+  ~ the Free Software Foundation, either version 3 of the License, or
+  ~ (at your option) any later version.
+  ~
+  ~ This program is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  ~ GNU Affero General Public License for more details.
+  ~
+  ~ You should have received a copy of the GNU Affero General Public License
+  ~ along with this program. If not, see <https://www.gnu.org/licenses/>.
+  -->
+
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+    android:width="24dp"
+    android:height="24dp"
+    android:viewportWidth="960"
+    android:viewportHeight="960">
+  <path
+      android:fillColor="@color/foreground_highlight"
+      android:pathData="M320,760v-560l440,280 -440,280Z"/>
+</vector>

+ 1 - 0
app/src/main/res/values-night/colors.xml

@@ -33,6 +33,7 @@
     <color name="grey_200">#818181</color>
     <color name="nc_grey">#222222</color>
     <color name="icon_on_nc_grey">#ffffff</color>
+    <color name="foreground_highlight">#EAE0E5</color>
 
     <!-- Multiselect backgrounds -->
     <color name="action_mode_background">@color/appbar</color>

+ 1 - 0
app/src/main/res/values/colors.xml

@@ -59,6 +59,7 @@
     <color name="secondary_button_text_color">#000000</color>
     <color name="nc_grey">#ededed</color>
     <color name="icon_on_nc_grey">#000000</color>
+    <color name="foreground_highlight">#1D1B1E</color>
 
     <color name="process_dialog_background">#ffffff</color>
     <color name="indicator_dot_selected">#ffffff</color>