initial work on adding new theme
This commit is contained in:
@ -18,9 +18,9 @@
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/backgroundColor"
|
||||
android:background="?attr/primaryBackgroundColor"
|
||||
android:id="@+id/toolbar"
|
||||
app:titleTextColor="@color/white"
|
||||
app:titleTextColor="?attr/primaryTextColor"
|
||||
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
android:elevation="4dp">
|
||||
@ -31,6 +31,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="18sp"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:id="@+id/toolbar_title" />
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
@ -49,9 +50,9 @@
|
||||
android:id="@+id/nav_view"
|
||||
app:headerLayout="@layout/nav_header"
|
||||
app:menu="@menu/drawer_menu"
|
||||
android:background="@color/backgroundColor"
|
||||
app:itemIconTint="@color/white"
|
||||
android:background="?attr/primaryBackgroundColor"
|
||||
app:itemIconTint="?attr/primaryTextColor"
|
||||
app:itemTextAppearance="@style/DrawerIcon"
|
||||
app:itemTextColor="@color/white" />
|
||||
app:itemTextColor="?attr/primaryTextColor" />
|
||||
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:fitsSystemWindows="true"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="@color/colorPrimary">
|
||||
android:background="?attr/primaryBackgroundColor">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
@ -16,7 +15,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:background="?attr/primaryBackgroundColor"
|
||||
tools:ignore="UnusedAttribute">
|
||||
|
||||
<ImageView
|
||||
@ -35,7 +34,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/pageTitleNewRepo"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:maxLines="1"
|
||||
android:textSize="20sp" />
|
||||
|
||||
@ -46,7 +45,7 @@
|
||||
<ScrollView xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/backgroundColor" >
|
||||
android:background="?attr/primaryBackgroundColor" >
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
@ -61,7 +60,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/newRepoOwner"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<Spinner
|
||||
@ -79,7 +78,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/newRepoTintCopy"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<EditText
|
||||
@ -92,16 +91,16 @@
|
||||
tools:ignore="Autofill"
|
||||
android:labelFor="@+id/newRepoName"
|
||||
android:background="@drawable/shape_inputs"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColorHint="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textColorHint="?attr/primaryBackgroundColor"
|
||||
android:inputType="textCapSentences|text"
|
||||
android:textColorHighlight="@color/colorWhite"/>
|
||||
android:textColorHighlight="?attr/primaryTextColor"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/newRepoDescTintCopy"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="10dp" />
|
||||
|
||||
@ -119,16 +118,16 @@
|
||||
android:scrollbars="vertical"
|
||||
android:gravity="top|start"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColorHint="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textColorHint="?attr/primaryBackgroundColor"
|
||||
android:inputType="textCapSentences|textMultiLine"
|
||||
android:textColorHighlight="@color/colorWhite"/>
|
||||
android:textColorHighlight="?attr/primaryTextColor"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/newRepoDescInfo"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="12sp"
|
||||
android:gravity="end" />
|
||||
|
||||
@ -141,7 +140,7 @@
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:theme="@style/checkBoxTheme"
|
||||
android:textColor="@color/colorWhite"/>
|
||||
android:textColor="?attr/primaryTextColor"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/createNewRepoButton"
|
||||
|
@ -5,13 +5,12 @@
|
||||
|
||||
<ScrollView android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary">
|
||||
android:background="?attr/primaryBackgroundColor">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:theme="@style/AppTheme"
|
||||
android:fitsSystemWindows="true"
|
||||
android:gravity="start"
|
||||
android:layout_marginStart="20dp"
|
||||
@ -35,7 +34,7 @@
|
||||
android:textIsSelectable="true"
|
||||
android:layout_marginTop="5dp"
|
||||
android:textSize="24sp"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<TextView
|
||||
@ -46,7 +45,7 @@
|
||||
android:textIsSelectable="true"
|
||||
android:layout_marginTop="5dp"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<TextView
|
||||
@ -57,9 +56,9 @@
|
||||
android:textIsSelectable="true"
|
||||
android:layout_marginTop="25dp"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:padding="5dp"
|
||||
android:background="@drawable/round_corners_with_background"
|
||||
android:background="?attr/primaryBackgroundColor"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<TextView
|
||||
@ -69,9 +68,9 @@
|
||||
android:text="@string/commitPage"
|
||||
android:layout_marginTop="15dp"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:padding="5dp"
|
||||
android:background="@drawable/round_corners_with_background"
|
||||
android:background="?attr/primaryBackgroundColor"
|
||||
android:autoLink="web" />
|
||||
|
||||
<LinearLayout
|
||||
@ -80,7 +79,7 @@
|
||||
android:layout_marginTop="15dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="5dp"
|
||||
android:background="@drawable/round_corners_with_background">
|
||||
android:background="?attr/primaryBackgroundColor">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/donationLink"
|
||||
@ -128,7 +127,7 @@
|
||||
android:layout_marginTop="15dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="5dp"
|
||||
android:background="@drawable/round_corners_with_background">
|
||||
android:background="?attr/primaryBackgroundColor">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sponsorsButton"
|
||||
|
@ -14,7 +14,7 @@
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary"
|
||||
android:background="?attr/primaryBackgroundColor"
|
||||
android:padding="4dp"
|
||||
android:scrollbars="vertical"
|
||||
/>
|
||||
@ -28,7 +28,7 @@
|
||||
android:layout_margin="15dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/noData"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="20sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/backgroundColor" >
|
||||
android:background="?attr/primaryBackgroundColor" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/repoType"
|
||||
@ -20,7 +20,6 @@
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
android:layout_margin="10dp"
|
||||
android:theme="@style/AppTheme"
|
||||
tools:context=".activities.MainActivity">
|
||||
|
||||
<ImageView
|
||||
@ -51,7 +50,7 @@
|
||||
android:layout_weight=".95"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:text="@string/repoName"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<ImageView
|
||||
@ -71,7 +70,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:text="@string/repoFullname"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
@ -80,7 +79,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="@string/repoDescription"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
@ -101,7 +100,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/repoWatchers"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
@ -114,7 +113,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/repoStars"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
@ -127,7 +126,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/repoWatchers"
|
||||
android:textColor="@color/colorWhite"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<ImageView
|
||||
|
Reference in New Issue
Block a user