diff --git a/app/src/main/java/eu/faircode/netguard/SinkholeService.java b/app/src/main/java/eu/faircode/netguard/SinkholeService.java index efa7e255..63cca858 100644 --- a/app/src/main/java/eu/faircode/netguard/SinkholeService.java +++ b/app/src/main/java/eu/faircode/netguard/SinkholeService.java @@ -324,7 +324,7 @@ public class SinkholeService extends VpnService { // Determine max long xmax = 0; - float ymax = base * 1.1f; + float ymax = base * 1.5f; for (int i = 0; i < gt.size(); i++) { long t = gt.get(i); float tx = gtx.get(i); @@ -359,9 +359,9 @@ public class SinkholeService extends VpnService { paint.setStrokeWidth(Util.dips2pixels(2, SinkholeService.this)); // Draw paths - paint.setColor(Color.MAGENTA); + paint.setColor(ContextCompat.getColor(SinkholeService.this, R.color.colorSend)); canvas.drawPath(ptx, paint); - paint.setColor(Color.BLUE); + paint.setColor(ContextCompat.getColor(SinkholeService.this, R.color.colorReceive)); canvas.drawPath(prx, paint); // Draw base line diff --git a/app/src/main/res/layout/traffic.xml b/app/src/main/res/layout/traffic.xml index 7ee00de0..4a797d15 100644 --- a/app/src/main/res/layout/traffic.xml +++ b/app/src/main/res/layout/traffic.xml @@ -33,7 +33,7 @@ android:alpha="0.5" android:text="▲" android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info" - android:textColor="#ffff00ff" /> + android:textColor="@color/colorSend" /> + android:textColor="@color/colorReceive" /> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 6db2dee7..46c200bd 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -6,4 +6,7 @@ #00796B #FF5722 + + #FF5722 + #009688