Skip to content

Commit

Permalink
improved about page in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sleep-yearning committed Dec 14, 2021
1 parent 2e08dd1 commit ff5c32c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/src/main/res/layout/about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:layout_marginTop="15dp"
android:text="@string/app_name_long" />

Expand All @@ -50,6 +52,8 @@
<TextView
android:id="@+id/textFieldVersion"
android:layout_width="wrap_content"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/version_number" />
Expand All @@ -59,6 +63,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:layout_marginTop="5dp"
android:layout_toEndOf="@+id/textFieldVersion" />

Expand All @@ -69,6 +75,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:layout_marginTop="5dp"
android:text="@string/about_author" />

Expand All @@ -78,6 +86,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="5dp"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:textAlignment="center"
android:text="@string/about_author_names" />

Expand All @@ -86,6 +96,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:layout_marginTop="5dp"
android:text="@string/about_author_contributors" />

Expand All @@ -94,6 +106,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:layout_marginTop="30dp"
android:text="@string/about_affiliation"
android:textStyle="bold" />
Expand All @@ -110,13 +124,17 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:gravity="center_horizontal"
android:text="@string/privacy_friendly" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:layout_marginTop="15dp"
android:gravity="center"
android:text="@string/more_info" />
Expand All @@ -126,6 +144,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:text="@string/url"
android:textStyle="bold" />

Expand All @@ -135,6 +155,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:textColorLink="?attr/textColorLink"
android:textColor="?attr/textColor"
android:text="@string/github"
android:textStyle="bold" />

Expand All @@ -143,6 +165,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:text="@string/owm_about"
android:layout_marginTop="40dp" />

Expand All @@ -153,10 +177,13 @@
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:text="@string/owm_url"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:textStyle="bold" />

<ImageView
android:id="@+id/owm_logo_about"
android:layout_marginTop="3dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
Expand All @@ -168,6 +195,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:textColor="?attr/textColor"
android:textColorLink="?attr/textColorLink"
android:text="@string/owm_logo_copyright" />

</LinearLayout>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<item name="circleColor">@color/transparent</item>
<item name="rectangleColor">@color/textColorDarkTheme</item>
<item name="textColor">@color/textColorDarkTheme</item>
<item name="textColorLink">@color/cardBackgroundLightTheme</item>

<item name="circlebackground">@drawable/backgroundcircle_icons_night</item>
<item name="rectanglebackground">@drawable/backgroundrectangle_drops_night</item>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<attr name="circleColor" format="color" />
<attr name="rectangleColor" format="color" />
<attr name="textColor" format="color" />
<attr name="textColorLink" format="color" />

</declare-styleable>
<attr name="circlebackground" format="reference" />
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 @@ -11,6 +11,7 @@
<color name="cardBackgroundLightTheme">#37AAFF</color>
<color name="cardBackgroundDarkTheme">#00192C</color>
<color name="middlegrey">#A8A8A8</color>
<color name="darkgrey">#454545</color>
<color name="white">#ffffff</color>
<color name="black">#000000</color>
<color name="red">#d01530</color>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<item name="circleColor">@color/transorange</item>
<item name="rectangleColor">@color/transparent</item>
<item name="textColor">@color/textColorLightTheme</item>
<item name="textColorLink">@color/colorAccentLightTheme</item>

<item name="circlebackground">@drawable/backgroundcircle_icons_day</item>
<item name="rectanglebackground">@drawable/backgroundrectangle_drops_day</item>
Expand Down

0 comments on commit ff5c32c

Please sign in to comment.