Merge branch 'ui' into 'master'
slight changes to the user interface fdroid/fdroidclient!646
@ -911,7 +911,7 @@ public class AppDetailsRecyclerViewAdapter
|
||||
|
||||
int margin = context.getResources().getDimensionPixelSize(R.dimen.layout_horizontal_margin);
|
||||
int padding = context.getResources().getDimensionPixelSize(R.dimen.details_activity_padding);
|
||||
ViewCompat.setPaddingRelative(view, margin + padding + ViewCompat.getPaddingStart(view), view.getPaddingTop(), ViewCompat.getPaddingEnd(view), view.getPaddingBottom());
|
||||
ViewCompat.setPaddingRelative(view, margin + padding + ViewCompat.getPaddingStart(view), view.getPaddingTop(), margin + padding + ViewCompat.getPaddingEnd(view), view.getPaddingBottom());
|
||||
}
|
||||
|
||||
public void bindModel(final Apk apk) {
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 6.4 KiB |
@ -1,24 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="fill_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/details_activity_padding"
|
||||
android:clickable="true"
|
||||
app:cardBackgroundColor="?attr/appDetailsCardBackground"
|
||||
app:cardCornerRadius="3dp"
|
||||
app:cardElevation="3dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="?attr/detailPanel"
|
||||
android:padding="@dimen/details_activity_padding">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/donate_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textAlignment="center"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:gravity="center"
|
||||
tools:text="F-Droid is created by F-Droid Limited and Contributors. Buy them a coffee!"
|
||||
android:layout_marginBottom="12dp" />
|
||||
android:textAlignment="center"
|
||||
android:textSize="15sp"
|
||||
tools:text="F-Droid is created by F-Droid Limited and Contributors. Buy them a coffee!" />
|
||||
|
||||
<android.support.v7.widget.GridLayout
|
||||
android:id="@+id/donation_options"
|
||||
@ -27,3 +32,4 @@
|
||||
app:columnCount="3" />
|
||||
|
||||
</LinearLayout>
|
||||
</android.support.v7.widget.CardView>
|
@ -6,6 +6,7 @@
|
||||
android:layout_margin="@dimen/details_screenshot_margin"
|
||||
android:padding="10dp"
|
||||
app:cardBackgroundColor="#ffffff"
|
||||
app:cardCornerRadius="0dp"
|
||||
app:cardElevation="3dp">
|
||||
|
||||
<ImageView
|
||||
@ -14,6 +15,6 @@
|
||||
android:layout_height="match_parent"
|
||||
android:adjustViewBounds="true"
|
||||
android:minWidth="@dimen/details_screenshot_width"
|
||||
android:scaleType="fitCenter" />
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
</android.support.v7.widget.CardView>
|
@ -9,8 +9,7 @@
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
>
|
||||
android:background="?attr/selectableItemBackground">
|
||||
|
||||
<TextView android:id="@+id/version"
|
||||
android:textStyle="bold"
|
||||
@ -100,7 +99,6 @@
|
||||
tools:text=""
|
||||
tools:visibility="gone" />
|
||||
|
||||
|
||||
<TextView android:id="@+id/incompatible_reasons"
|
||||
android:textSize="13sp"
|
||||
android:layout_below="@id/container_added_nativecode"
|
||||
|
@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:layout_height="30dp"
|
||||
android:padding="4dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:src="@drawable/donation_option_bitcoin"
|
||||
android:contentDescription="@string/menu_bitcoin" />
|
@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:layout_height="30dp"
|
||||
android:padding="6dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:src="@drawable/donation_option_flattr"
|
||||
android:contentDescription="@string/menu_flattr" />
|
@ -6,5 +6,9 @@
|
||||
android:drawableLeft="@drawable/ic_donate"
|
||||
android:drawableStart="@drawable/ic_donate"
|
||||
android:drawablePadding="4dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/menu_donate" />
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_height="30dp"
|
||||
android:padding="2dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:src="@drawable/donation_option_litecoin"
|
||||
android:contentDescription="@string/menu_litecoin" />
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 302 KiB |
BIN
metadata/en-US/images/phoneScreenshots/screenshot-dark-home.png
Normal file
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 41 KiB |
@ -7,5 +7,12 @@ for f in `find $(dirname $0)/../app/src/ -type f -name \*.png`; do
|
||||
echo $f | grep -Eo '\.9\.png$' && continue # do not optimized 9-patch, it breaks them
|
||||
tmpfile=$(mktemp)
|
||||
aapt singleCrunch -v -i $f -o $tmpfile
|
||||
exiftool -all= $tmpfile
|
||||
mv $tmpfile $f
|
||||
done
|
||||
|
||||
for f in metadata/*/images/*Screenshots/*.png; do
|
||||
exiftool -all= $f
|
||||
tmpfile=$(mktemp)
|
||||
(zopflipng --filters=01234mepb --lossy_8bit --lossy_transparent -y $f $tmpfile && mv $tmpfile $f) &
|
||||
done
|
||||
|