Skip to content

Commit

Permalink
Slightly darken night mode but trying to stay tolerable levels. Adjus…
Browse files Browse the repository at this point in the history
…t icons to work with light and dark modes
  • Loading branch information
mendhak committed Sep 28, 2021
1 parent 677ae70 commit b132ab6
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ private void clearLocationDisplay() {

TextView txtAccuracy = (TextView) rootView.findViewById(R.id.simpleview_txtAccuracy);
txtAccuracy.setText("");
txtAccuracy.setTextColor(ContextCompat.getColor(context, android.R.color.black));

ImageView imgAltitude = (ImageView)rootView.findViewById(R.id.simpleview_imgAltitude);
clearColor(imgAltitude);
Expand Down
Binary file modified gpslogger/src/main/res/drawable-mdpi/csv.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gpslogger/src/main/res/drawable-mdpi/distance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gpslogger/src/main/res/drawable-mdpi/geojson.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gpslogger/src/main/res/drawable-mdpi/gpx.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gpslogger/src/main/res/drawable-mdpi/kml.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed gpslogger/src/main/res/drawable-mdpi/link.png
Binary file not shown.
Binary file modified gpslogger/src/main/res/drawable-mdpi/nmea.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gpslogger/src/main/res/drawable-mdpi/points.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 13 additions & 6 deletions gpslogger/src/main/res/layout/fragment_simple_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@

<ImageView
android:id="@+id/simpleview_imgGpx"
android:paddingRight="2dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/log_gpx_title"
Expand All @@ -330,6 +331,7 @@

<ImageView
android:id="@+id/simpleview_imgKml"
android:paddingRight="2dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/log_kml_title"
Expand All @@ -338,6 +340,7 @@

<ImageView
android:id="@+id/simpleview_imgCsv"
android:paddingRight="2dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/log_plain_text_title"
Expand All @@ -346,27 +349,31 @@

<ImageView
android:id="@+id/simpleview_imgNmea"
android:paddingRight="4dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/log_nmea_title"
android:src="@drawable/nmea"
android:visibility="invisible" />

<ImageView
android:id="@+id/simpleview_imgLink"
android:id="@+id/simpleview_imgjson"
android:paddingRight="2dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/log_customurl_title"
android:src="@drawable/link"
android:contentDescription="@string/log_json_title"
android:src="@drawable/geojson"
android:visibility="invisible" />

<ImageView
android:id="@+id/simpleview_imgjson"
android:id="@+id/simpleview_imgLink"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/log_json_title"
android:src="@drawable/geojson"
android:contentDescription="@string/log_customurl_title"
android:src="@drawable/customurl"
android:visibility="invisible" />


</LinearLayout>

<Space
Expand Down
1 change: 1 addition & 0 deletions gpslogger/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!-- https://stackoverflow.com/a/52289175/974369 to avoid errors about MeasureSpec.EXACT -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">

<item name="android:windowBackground">@color/surfaceDark</item>
<!-- Material Drawer Colors, not all can be set via XML though, some are in code. -->
<item name="material_drawer_background">@color/primaryColor</item>
<item name="material_drawer_primary_text">@color/primaryColorLight</item>
Expand Down
8 changes: 8 additions & 0 deletions gpslogger/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,12 @@
<color name="icons">#FFFFFF</color>
<color name="divider">#B6B6B6</color>
<color name="golden">#ffff8100</color>


<color name="colorPrimaryBlack">#000000</color>
<color name="colorPrimaryBlackDark">#000000</color>
<color name="colorAccentBlack">#427add</color>
<color name="surfaceDark">#121212</color>


</resources>

0 comments on commit b132ab6

Please sign in to comment.