mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Brighter colours.
This commit is contained in:
@@ -12,8 +12,7 @@ public class HorizontalBorder extends View {
|
||||
|
||||
public HorizontalBorder(Context ctx) {
|
||||
super(ctx);
|
||||
int width = LayoutUtils.getSeparatorWidth(ctx);
|
||||
setLayoutParams(new LayoutParams(MATCH_PARENT, width));
|
||||
setLayoutParams(new LayoutParams(MATCH_PARENT, 1));
|
||||
setBackgroundColor(getResources().getColor(R.color.horizontal_border));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,12 +7,6 @@ import android.view.WindowManager;
|
||||
|
||||
public class LayoutUtils {
|
||||
|
||||
public static int getSeparatorWidth(Context ctx) {
|
||||
DisplayMetrics metrics = getDisplayMetrics(ctx);
|
||||
int percent = Math.max(metrics.widthPixels, metrics.heightPixels) / 100;
|
||||
return Math.max(2, percent - 8);
|
||||
}
|
||||
|
||||
public static int getPadding(Context ctx) {
|
||||
DisplayMetrics metrics = getDisplayMetrics(ctx);
|
||||
int percent = Math.max(metrics.widthPixels, metrics.heightPixels) / 100;
|
||||
|
||||
Reference in New Issue
Block a user