mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-30 20:05:04 +00:00
New graph colors, lower base line
This commit is contained in:
parent
e27244d674
commit
6373a722f4
3 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
android:alpha="0.5"
|
||||
android:text="▲"
|
||||
android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info"
|
||||
android:textColor="#ffff00ff" />
|
||||
android:textColor="@color/colorSend" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvRx"
|
||||
|
@ -50,6 +50,6 @@
|
|||
android:alpha="0.5"
|
||||
android:text="▼"
|
||||
android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info"
|
||||
android:textColor="#ff0000ff" />
|
||||
android:textColor="@color/colorReceive" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -6,4 +6,7 @@
|
|||
<color name="colorPrimaryDark">#00796B</color>
|
||||
<!-- Deep orange A200 -->
|
||||
<color name="colorAccent">#FF5722</color>
|
||||
|
||||
<color name="colorSend">#FF5722</color>
|
||||
<color name="colorReceive">#009688</color>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue