Browse Source

Updated dark mode colors to be more pleasing on the eye.

housekeeping/remove-warnings
Antoine POPINEAU 5 years ago
parent
commit
045248adc6
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 4
      app/build.gradle
  2. 1
      app/src/main/res/layout/activity_login.xml
  3. 3
      app/src/main/res/layout/fragment_browse.xml
  4. 6
      app/src/main/res/values-night/colors.xml
  5. 1
      app/src/main/res/values/colors.xml
  6. 11
      app/src/main/res/values/styles.xml

4
app/build.gradle

@ -18,8 +18,8 @@ android { @@ -18,8 +18,8 @@ android {
applicationId "com.github.apognu.otter"
minSdkVersion 23
targetSdkVersion 29
versionCode 4
versionName "1.0.3"
versionCode 5
versionName "1.0.4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

1
app/src/main/res/layout/activity_login.xml

@ -93,5 +93,6 @@ @@ -93,5 +93,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@color/colorAccent"
android:textColor="@android:color/white"
android:text="@string/login_submit" />
</LinearLayout>

3
app/src/main/res/layout/fragment_browse.xml

@ -13,7 +13,8 @@ @@ -13,7 +13,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="4dp"
app:tabMode="scrollable" />
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/controlColor" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/pager"

6
app/src/main/res/values-night/colors.xml

@ -1,10 +1,14 @@ @@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="surface">#121212</color>
<color name="colorPrimary">#71a5cd</color>
<color name="colorPrimary">#283f4e</color>
<color name="colorAccent">#99440c</color>
<color name="colorSelected">#525252</color>
<color name="itemTitle">#caffffff</color>
<color name="controlForeground">#caffffff</color>
<color name="controlColor">#327eae</color>
</resources>

1
app/src/main/res/values/colors.xml

@ -13,4 +13,5 @@ @@ -13,4 +13,5 @@
<color name="itemTitle">@android:color/black</color>
<color name="controlForeground">@color/colorPrimary</color>
<color name="controlColor">@color/colorPrimary</color>
</resources>

11
app/src/main/res/values/styles.xml

@ -8,12 +8,23 @@ @@ -8,12 +8,23 @@
<item name="colorAccent">@color/colorAccent</item>
<item name="android:navigationBarColor">@color/colorPrimary</item>
<item name="materialButtonStyle">@style/AppTheme.ButtonStyle</item>
<item name="preferenceTheme">@style/AppTheme.Preference</item>
</style>
<style name="AppTheme.Fragment">
</style>
<style name="AppTheme.ButtonStyle" parent="Widget.MaterialComponents.Button">
<item name="materialThemeOverlay">@style/AppTheme.ButtonStyleTextColor</item>
</style>
<style name="AppTheme.ButtonStyleTextColor">
<item name="colorPrimary">@android:color/transparent</item>
<item name="colorOnPrimary">@color/controlColor</item>
</style>
<style name="AppTheme.Title">
<item name="android:fontFamily">sans-serif-light</item>
<item name="android:textSize">28sp</item>

Loading…
Cancel
Save