Skip to content

Commit

Permalink
r-7.1.1. small UI changes and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gcantoni committed Apr 12, 2019
1 parent 543dead commit 8018911
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 28 deletions.
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/dialog_theme.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<inset android:inset="16.0dip" xmlns:android="http://schemas.android.com/apk/res/android">
<shape android:shape="rectangle">
<corners android:radius="14.0dip" />
<corners android:radius="8.0dp" />
<solid android:color="@color/colorPrimaryDark" />
<stroke android:width="@dimen/dialog_round" android:color="@color/colorAccent" />
<stroke android:width="@dimen/dialog_round" android:color="@color/colorWhite" />
</shape>
</inset>
7 changes: 7 additions & 0 deletions app/src/main/res/drawable/ic_github.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="@color/iconPrimaryColor" android:pathData="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" />
</vector>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/pixel_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
android:layout_height="1dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:background="@android:color/transparent"
android:background="@color/colorDivider"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_margin="20dp" />
Expand All @@ -71,7 +71,7 @@
app:icon="@drawable/ic_chat"
app:iconTint="@color/colorWhite"
app:strokeColor="@color/colorPrimary"
app:strokeWidth="@dimen/button_stroke" />
app:strokeWidth="@dimen/button_stroke"/>

<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
Expand Down
62 changes: 44 additions & 18 deletions app/src/main/res/layout/pixel_activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
app:cardUseCompatPadding="true"
app:cardBackgroundColor="@color/colorPrimaryDark"
android:paddingTop="20dp"
app:cardCornerRadius="@dimen/card_round"
app:strokeColor="@color/colorAccent"
app:strokeWidth="@dimen/button_stroke">
app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_round">

<LinearLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -96,11 +95,10 @@
android:layout_height="wrap_content"
app:cardUseCompatPadding="true"
app:cardBackgroundColor="@color/colorPrimaryDark"
android:layout_marginTop="10dp"
android:layout_marginTop="0dp"
android:paddingTop="20dp"
app:cardCornerRadius="@dimen/card_round"
app:strokeColor="@color/colorPrimary"
app:strokeWidth="@dimen/button_stroke">
app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_round">

<LinearLayout
android:layout_width="match_parent"
Expand All @@ -115,9 +113,39 @@
android:layout_marginBottom="10dp"
android:fontFamily="@font/open_sans_reg"
android:text="@string/support_development"
android:textColor="@color/textPrimaryColor"
android:textColor="@color/colorAccent"
android:textStyle="bold" />

<LinearLayout
android:id="@+id/about_github"
style="@style/about_entry"
android:onClick="repoGithub">

<ImageView
android:src="@drawable/ic_github"
style="@style/icon" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
style="@style/about_title_text"
android:fontFamily="@font/open_sans_reg"
android:text="@string/about_github_title"
android:textColor="@color/textPrimaryColor" />

<TextView
style="@style/about_subtitle_text"
android:fontFamily="@font/open_sans_reg"
android:text="@string/about_github_subtitle"
android:textColor="@color/textUnderColor" />

</LinearLayout>

</LinearLayout>

<LinearLayout
android:id="@+id/about_debug"
style="@style/about_entry"
Expand Down Expand Up @@ -157,11 +185,10 @@
android:layout_height="wrap_content"
app:cardUseCompatPadding="true"
app:cardBackgroundColor="@color/colorPrimaryDark"
android:layout_marginTop="10dp"
android:layout_marginTop="0dp"
android:paddingTop="20dp"
app:cardCornerRadius="@dimen/card_round"
app:strokeColor="@color/colorPrimary"
app:strokeWidth="@dimen/button_stroke">
app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_round">

<LinearLayout
android:layout_width="match_parent"
Expand All @@ -176,7 +203,7 @@
android:layout_marginBottom="10dp"
android:fontFamily="@font/open_sans_reg"
android:text="@string/about_author"
android:textColor="@color/textPrimaryColor"
android:textColor="@color/colorAccent"
android:textStyle="bold" />

<LinearLayout
Expand Down Expand Up @@ -234,11 +261,10 @@
android:layout_height="wrap_content"
app:cardUseCompatPadding="true"
app:cardBackgroundColor="@color/colorPrimaryDark"
android:layout_marginTop="10dp"
android:layout_marginTop="0dp"
android:paddingTop="20dp"
app:cardCornerRadius="@dimen/card_round"
app:strokeColor="@color/colorPrimary"
app:strokeWidth="@dimen/button_stroke">
app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_round">

<LinearLayout
android:layout_width="match_parent"
Expand All @@ -253,7 +279,7 @@
android:layout_marginBottom="10dp"
android:fontFamily="@font/open_sans_reg"
android:text="@string/about_lib_mat"
android:textColor="@color/textPrimaryColor"
android:textColor="@color/colorAccent"
android:textStyle="bold" />

<LinearLayout
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<color name="colorAccent">#3f7aff</color>
<color name="colorWhite">#fff</color>
<color name="colorBottom">#fff</color>
<color name="colorDivider">#40000000</color>
<color name="textPrimaryColor">#212121</color>
<color name="iconPrimaryColor">#212121</color>
<color name="textSecondaryColor">#212121</color>
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<resources>
<dimen name="dialog_round">3dp</dimen>
<dimen name="button_stroke">3dp</dimen>
<dimen name="button_round">12dp</dimen>
<dimen name="button_round">32dp</dimen>
<dimen name="fab_stroke">3dp</dimen>
<dimen name="card_round">12dp</dimen>
<dimen name="card_round">8dp</dimen>
<dimen name="card_elevation">4dp</dimen>
</resources>
9 changes: 5 additions & 4 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@

<string name="app_link" translatable="false">https://play.google.com/store/apps/details?id=it.folgore95.pixeltheme</string>
<string name="website_link" translatable="false">https://giorgiocantoni.it/</string>
<string name="about_pixel_title">Version 7.1 | Play Store</string>
<string name="about_pixel_title">Version 7.1.1 | Play Store</string>
<string name="support_development">Support development</string>
<string name="about_rate_title">Rate</string>
<string name="about_rate_subtitle">If you like Pixel Theme, rate it on Play Store</string>
<string name="about_github_title">Github</string>
<string name="about_github_subtitle">Contribute to the development of new features</string>
<string name="github_link" translatable="false">https://github.com/gcantoni/pixeltheme</string>
<string name="about_bug_title">Report bugs</string>
<string name="about_bug_subtitle">Report bugs or request new features</string>
<string name="about_bug_subtitle">Report bugs or suggest new features</string>
<string name="about_author">Author</string>
<string name="about_author_title">Giorgio Cantoni</string>
<string name="about_author_subtitle">I\'m a student and an Android Developer.\nI\'m interested to Android apps development and cars automation.</string>
Expand Down

0 comments on commit 8018911

Please sign in to comment.