Skip to content

Commit

Permalink
Dark Mode UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudrakaniya committed Aug 16, 2020
1 parent df6a495 commit 65b701a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ protected void onCreate(Bundle savedInstanceState) {

View aboutPage = new AboutPage(this)
.isRTL(false)
.enableDarkMode(false)
.enableDarkMode(true)
.setImage(R.drawable.dummy_image)
.addItem(new Element().setTitle("Version 6.2"))
.addItem(adsElement)
.addGroup("Connect with us")
.addEmail("elmehdi.sakout@gmail.com")
.addWebsite("https://mehdisakout.com/")
.addFacebook("the.medy")
.addTwitter("medyo80")
.addYoutube("UCdPQtdWIsg7_pi4mrRu46vA")
.addPlayStore("com.ideashower.readitlater.pro")
.addInstagram("medyo80")
.addGitHub("medyo")
.addItem(getCopyRightsElement())
.create();

Expand Down
13 changes: 8 additions & 5 deletions library/src/main/res/layout/about_page.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:fillViewport="true">

<LinearLayout
android:id="@+id/sub_wrapper"
style="@style/about_About.wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/sub_wrapper"
style="@style/about_About.wrapper">
android:orientation="vertical">

<LinearLayout style="@style/about_sub_wrapper">

Expand All @@ -21,7 +22,9 @@
style="@style/about_description" />
</LinearLayout>

<View android:id="@+id/description_separator" style="@style/about_separator" />
<View
android:id="@+id/description_separator"
style="@style/about_separator" />

<LinearLayout
android:id="@+id/about_providers"
Expand Down
2 changes: 0 additions & 2 deletions library/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<style name="about_About" />

<style name="about_About.wrapper">
<item name="android:gravity">center</item>
<item name="android:background">@color/about_background_color</item>
</style>

Expand Down Expand Up @@ -39,7 +38,6 @@
<item name="android:layout_width">match_parent</item>
<item name="android:background">@color/about_separator_color</item>
<item name="android:padding">0dp</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_marginTop">0dp</item>
<item name="android:layout_marginBottom">0dp</item>
</style>
Expand Down

0 comments on commit 65b701a

Please sign in to comment.