Prepare release 2.4.0 (#283)

Remove Translucent background

Fix missing theme colors, layouts using standard

Fix toolbar color

Prepare 2.4.0 release

Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/283
This commit is contained in:
M M Arif
2020-03-15 15:09:26 +00:00
parent c981ec2f16
commit c47c81e71f
52 changed files with 98 additions and 114 deletions

View File

@ -7,7 +7,7 @@ android {
minSdkVersion 21
targetSdkVersion 29
versionCode 90
versionName "2.4.0-dev"
versionName "2.4.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
@ -28,7 +28,7 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "com.google.android.material:material:1.2.0-alpha04"
implementation "com.google.android.material:material:1.2.0-alpha05"
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
testImplementation "junit:junit:4.12"

View File

@ -59,7 +59,7 @@
android:name=".activities.RepoDetailActivity"
android:label="@string/title_activity_repo_detail"
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name=".activities.MainActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar">
<activity android:name=".activities.MainActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -55,7 +55,7 @@
android:labelFor="@+id/addCollaboratorSearch"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"
android:hint="@string/addCollaboratorSearchHint"
android:imeOptions="actionSend"/>

View File

@ -54,8 +54,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -59,8 +60,7 @@
android:layout_height="wrap_content"
android:text="@string/newIssueTitle"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
/>
android:textSize="16sp" />
<EditText
android:id="@+id/newIssueTitle"
@ -74,7 +74,7 @@
android:labelFor="@+id/newIssueTitle"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView
@ -131,8 +131,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/labelsIdHolder"
android:visibility="gone"
/>
android:visibility="gone" />
<TextView
android:layout_width="match_parent"

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
@ -52,8 +53,7 @@
android:layout_height="wrap_content"
android:text="@string/labelName"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
/>
android:textSize="16sp" />
<EditText
android:id="@+id/labelName"
@ -67,7 +67,7 @@
android:labelFor="@+id/labelName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<LinearLayout
@ -91,8 +91,7 @@
android:id="@+id/colorPicker"
android:layout_width="28dp"
android:layout_height="28dp"
android:background="@color/releasePre"
/>
android:background="@color/releasePre" />
</LinearLayout>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -57,8 +58,7 @@
android:layout_height="wrap_content"
android:text="@string/userFullNameText"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
/>
android:textSize="16sp" />
<EditText
android:id="@+id/fullName"
@ -72,7 +72,7 @@
android:labelFor="@+id/fullName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView
@ -81,8 +81,7 @@
android:text="@string/userUserName"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:layout_marginTop="10dp"
/>
android:layout_marginTop="10dp" />
<EditText
android:id="@+id/userUserName"
@ -96,7 +95,7 @@
android:labelFor="@+id/userUserName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView
@ -105,8 +104,7 @@
android:text="@string/userEmail"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:layout_marginTop="10dp"
/>
android:layout_marginTop="10dp" />
<EditText
android:id="@+id/userEmail"
@ -120,7 +118,7 @@
android:labelFor="@+id/userEmail"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView
@ -143,7 +141,7 @@
android:labelFor="@+id/userPassword"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<Button

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -57,8 +58,7 @@
android:layout_height="wrap_content"
android:text="@string/releaseTagNameText"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
/>
android:textSize="16sp" />
<EditText
android:id="@+id/releaseTagName"
@ -72,7 +72,7 @@
android:labelFor="@+id/releaseTagName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView
@ -109,8 +109,7 @@
android:text="@string/releaseTitleText"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:layout_marginTop="10dp"
/>
android:layout_marginTop="10dp" />
<EditText
android:id="@+id/releaseTitle"
@ -124,7 +123,7 @@
android:labelFor="@+id/releaseTitle"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView
@ -133,8 +132,7 @@
android:text="@string/releaseContentText"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:layout_marginTop="10dp"
/>
android:layout_marginTop="10dp" />
<EditText
android:id="@+id/releaseContent"
@ -151,7 +149,7 @@
android:textSize="14sp"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"
android:inputType="textCapSentences|textMultiLine" />

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
@ -56,8 +57,7 @@
android:layout_height="wrap_content"
android:text="@string/newTeamTitle"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
/>
android:textSize="16sp" />
<EditText
android:id="@+id/teamName"
@ -71,7 +71,7 @@
android:labelFor="@+id/teamName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView
@ -80,8 +80,7 @@
android:text="@string/newTeamDesc"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:layout_marginTop="10dp"
/>
android:layout_marginTop="10dp" />
<EditText
android:id="@+id/teamDesc"
@ -95,7 +94,7 @@
android:labelFor="@+id/teamDesc"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<TextView

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -72,7 +73,7 @@
android:labelFor="@+id/editIssueTitle"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor" />
<TextView

View File

@ -65,8 +65,7 @@
android:textColor="?attr/primaryTextColor"
android:textSize="14sp"
android:padding="15dp"
android:textIsSelectable="true"
/>
android:textIsSelectable="true" />
</ScrollView>

View File

@ -203,8 +203,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</RelativeLayout>

View File

@ -93,8 +93,7 @@
android:src="@drawable/ic_info_24dp"
android:layout_marginStart="120dp"
android:layout_marginTop="10dp"
android:contentDescription="@string/urlInfoTooltip"
/>
android:contentDescription="@string/urlInfoTooltip" />
</LinearLayout>

View File

@ -73,7 +73,7 @@
android:labelFor="@+id/newFileName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"
android:inputType="textCapSentences|text" />
@ -110,7 +110,7 @@
android:textSize="14sp"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"
android:inputType="textCapSentences|textMultiLine" />
@ -171,7 +171,7 @@
android:labelFor="@+id/newFileBranchName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"
android:inputType="textCapSentences|text" />
@ -204,7 +204,7 @@
android:labelFor="@+id/newFileCommitMessage"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"
android:inputType="textCapSentences|text" />

View File

@ -15,7 +15,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:background="?attr/primaryBackgroundColor"
tools:ignore="UnusedAttribute">
<ImageView

View File

@ -15,7 +15,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:background="?attr/primaryBackgroundColor"
tools:ignore="UnusedAttribute">
<ImageView

View File

@ -101,7 +101,7 @@
android:labelFor="@+id/newRepoName"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"
android:inputType="textCapSentences|text" />
@ -128,7 +128,7 @@
android:gravity="top|start"
android:textSize="14sp"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences|textMultiLine"
android:textColorHighlight="?attr/primaryTextColor"/>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
@ -13,7 +14,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:background="?attr/primaryBackgroundColor"
tools:ignore="UnusedAttribute">
<ImageView
@ -52,8 +53,7 @@
android:layout_height="wrap_content"
android:text="@string/profileEmailTitle"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
/>
android:textSize="16sp" />
<EditText
android:id="@+id/userEmail"
@ -67,7 +67,7 @@
android:labelFor="@+id/userEmail"
android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryBackgroundColor"
android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/>
<Button

View File

@ -41,8 +41,7 @@
android:id="@+id/allLinesLayout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
>
android:orientation="vertical">
</LinearLayout>
</HorizontalScrollView>

View File

@ -17,8 +17,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
<GridView
android:id="@+id/gridView"

View File

@ -12,8 +12,7 @@
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
android:orientation="vertical">
<TextView
android:id="@+id/fileStructure"

View File

@ -17,8 +17,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -17,8 +17,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -17,8 +17,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -17,8 +17,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -53,7 +52,6 @@
android:background="@drawable/circle"
android:padding="12dp"
android:visibility="gone"
android:contentDescription="@string/addNewContent"
/>
android:contentDescription="@string/addNewContent" />
</RelativeLayout>

View File

@ -111,8 +111,7 @@
android:layout_height="wrap_content"
android:indeterminate="true"
android:visibility="visible"
android:layout_centerInParent="true"
/>
android:layout_centerInParent="true" />
</RelativeLayout>

View File

@ -15,8 +15,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -15,8 +15,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -15,8 +15,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -17,8 +17,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -17,8 +17,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -329,8 +329,7 @@
android:layout_height="wrap_content"
android:indeterminate="true"
android:visibility="visible"
android:layout_centerInParent="true"
/>
android:layout_centerInParent="true" />
</RelativeLayout>

View File

@ -16,8 +16,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -51,7 +50,6 @@
android:layout_alignParentEnd="true"
android:background="@drawable/circle"
android:padding="12dp"
android:contentDescription="@string/addNewContent"
/>
android:contentDescription="@string/addNewContent" />
</RelativeLayout>

View File

@ -16,8 +16,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -16,7 +16,7 @@
<include
android:id="@+id/timeLayout"
layout="@layout/layout_settings_appearance"/>
layout="@layout/layout_settings_appearance" />
<View
android:id="@+id/fileViewDivider"
@ -26,8 +26,7 @@
android:layout_marginEnd="5dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_below="@id/timeLayout"
/>
android:layout_below="@id/timeLayout" />
<include
android:id="@+id/fileViewLayout"
@ -41,12 +40,11 @@
android:layout_marginEnd="5dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_below="@id/fileViewLayout"
/>
android:layout_below="@id/fileViewLayout" />
<include
android:id="@+id/langLayout"
layout="@layout/layout_settings_languages"/>
layout="@layout/layout_settings_languages" />
</RelativeLayout>

View File

@ -16,8 +16,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -51,7 +50,6 @@
android:layout_alignParentEnd="true"
android:background="@drawable/circle"
android:padding="12dp"
android:contentDescription="@string/addNewContent"
/>
android:contentDescription="@string/addNewContent" />
</RelativeLayout>

View File

@ -16,8 +16,7 @@
android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical"
/>
android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"

View File

@ -73,8 +73,7 @@
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="5dp"
android:background="?attr/inputBackgroundColor"
/>
android:background="?attr/inputBackgroundColor" />
<TextView
android:id="@+id/releaseZipDownload"

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="versionLow" translatable="false">1.9.0</string>
<string name="versionHigh" translatable="false">1.10.9</string>
<string name="versionLow" translatable="false">1.10.0</string>
<string name="versionHigh" translatable="false">1.11.15</string>
</resources>