changed color of download blocks
This commit is contained in:
parent
239ef1c238
commit
39c2f31a22
|
@ -1,6 +1,5 @@
|
||||||
package us.shandian.giga.get;
|
package us.shandian.giga.get;
|
||||||
|
|
||||||
import android.os.Handler;
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import java.io.BufferedInputStream;
|
import java.io.BufferedInputStream;
|
||||||
|
|
|
@ -176,41 +176,23 @@ public class Utility
|
||||||
|
|
||||||
public static int getBackgroundForFileType(FileType type) {
|
public static int getBackgroundForFileType(FileType type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case APP:
|
|
||||||
return R.color.orange;
|
|
||||||
case MUSIC:
|
case MUSIC:
|
||||||
return R.color.cyan;
|
return R.color.audio_left_to_load_color;
|
||||||
case ARCHIVE:
|
|
||||||
return R.color.blue;
|
|
||||||
case VIDEO:
|
case VIDEO:
|
||||||
return R.color.green;
|
return R.color.video_left_to_load_color;
|
||||||
case WORD:
|
|
||||||
case EXCEL:
|
|
||||||
case POWERPOINT:
|
|
||||||
return R.color.brown;
|
|
||||||
case UNKNOWN:
|
|
||||||
default:
|
default:
|
||||||
return R.color.bluegray;
|
return R.color.gray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getForegroundForFileType(FileType type) {
|
public static int getForegroundForFileType(FileType type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case APP:
|
|
||||||
return R.color.orange_dark;
|
|
||||||
case MUSIC:
|
case MUSIC:
|
||||||
return R.color.cyan_dark;
|
return R.color.audio_already_load_color;
|
||||||
case ARCHIVE:
|
|
||||||
return R.color.blue_dark;
|
|
||||||
case VIDEO:
|
case VIDEO:
|
||||||
return R.color.green_dark;
|
return R.color.video_already_load_color;
|
||||||
case WORD:
|
|
||||||
case EXCEL:
|
|
||||||
case POWERPOINT:
|
|
||||||
return R.color.brown_dark;
|
|
||||||
case UNKNOWN:
|
|
||||||
default:
|
default:
|
||||||
return R.color.bluegray_dark;
|
return R.color.gray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,19 +18,14 @@
|
||||||
<color name="video_overlay_color">#66000000</color>
|
<color name="video_overlay_color">#66000000</color>
|
||||||
<color name="background_notification_color">#323232</color>
|
<color name="background_notification_color">#323232</color>
|
||||||
|
|
||||||
<!-- GigaGet Theme colors -->
|
<!-- GigaGet theme -->
|
||||||
<color name="blue">#2979FF</color>
|
|
||||||
<color name="blue_dark">#1565C0</color>
|
|
||||||
<color name="bluegray">#607D8B</color>
|
<color name="bluegray">#607D8B</color>
|
||||||
<color name="bluegray_dark">#546E7A</color>
|
|
||||||
<color name="cyan">#00BCD4</color>
|
<!-- GigaGet download Theme colors -->
|
||||||
<color name="cyan_dark">#00ACC1</color>
|
<color name="audio_left_to_load_color">#555555</color>
|
||||||
<color name="orange">#FF9800</color>
|
<color name="audio_already_load_color">#000000</color>
|
||||||
<color name="orange_dark">#EF6C00</color>
|
<color name="video_left_to_load_color">#CD5656</color>
|
||||||
<color name="green">#4CAF50</color>
|
<color name="video_already_load_color">#BC211D</color>
|
||||||
<color name="green_dark">#388E3C</color>
|
|
||||||
<color name="brown">#795548</color>
|
|
||||||
<color name="brown_dark">#5D4037</color>
|
|
||||||
|
|
||||||
<!-- GigaGet Component colors -->
|
<!-- GigaGet Component colors -->
|
||||||
<color name="white">#FFFFFF</color>
|
<color name="white">#FFFFFF</color>
|
||||||
|
|
Loading…
Reference in New Issue