mirror of
https://github.com/russok/FitoTrack.git
synced 2025-10-28 16:22:12 -07:00
Dark mode fixes: make Cycling-brown a bit brighter
This commit is contained in:
parent
6cf233a5ea
commit
32724a58f2
@ -32,7 +32,7 @@ public class LauncherActivity extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setTheme(android.R.style.Theme_Material_Light_NoActionBar);
|
||||
setTheme(R.style.AppThemeNoActionbar);
|
||||
setContentView(R.layout.activity_main);
|
||||
}
|
||||
|
||||
|
||||
@ -144,11 +144,20 @@ public class ShowWorkoutActivity extends WorkoutActivity implements DialogUtils.
|
||||
}
|
||||
|
||||
private void updateCommentText() {
|
||||
String commentStr = getString(R.string.comment) + ": " + workout.comment;
|
||||
String str = "";
|
||||
if (workout.edited) {
|
||||
commentStr = getString(R.string.workoutEdited) + "\n" + commentStr;
|
||||
str += getString(R.string.workoutEdited);
|
||||
}
|
||||
commentView.setText(commentStr);
|
||||
if (workout.comment != null && workout.comment.length() > 0) {
|
||||
if (str.length() > 0) {
|
||||
str += "\n";
|
||||
}
|
||||
str += getString(R.string.comment) + ": " + workout.comment;
|
||||
}
|
||||
if (str.length() == 0) {
|
||||
str = getString(R.string.noComment);
|
||||
}
|
||||
commentView.setText(str);
|
||||
}
|
||||
|
||||
private String getDate() {
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:theme="@android:style/Theme.Material.Light.NoActionBar"
|
||||
android:theme="@style/AppThemeNoActionbar"
|
||||
tools:context=".activity.LauncherActivity">
|
||||
|
||||
<ImageView
|
||||
|
||||
@ -27,6 +27,9 @@
|
||||
<color name="colorPrimaryBicycling">#523220</color>
|
||||
<color name="colorPrimaryDarkBicycling">#462A1D</color>
|
||||
|
||||
<color name="colorPrimaryBicyclingLighter">#6E422A</color>
|
||||
<color name="colorPrimaryDarkBicyclingLighter">#5A3625</color>
|
||||
|
||||
<color name="colorAccent">#4CAF50</color>
|
||||
<color name="colorAccentDark">#2E7D32</color>
|
||||
|
||||
|
||||
@ -174,4 +174,5 @@
|
||||
<string name="OpenStreetMapAttribution">© OpenStreetMap contributors</string>
|
||||
<string name="theme">Theme</string>
|
||||
<string name="hintRestart">Please restart the app to apply changes</string>
|
||||
<string name="noComment">No comment</string>
|
||||
</resources>
|
||||
|
||||
@ -19,6 +19,11 @@
|
||||
|
||||
<resources>
|
||||
|
||||
<style name="AppThemeNoActionbar" parent="android:Theme.Material.Light.NoActionBar">
|
||||
<item name="android:colorPrimary">@color/colorPrimary</item>
|
||||
<item name="android:colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="android:colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
|
||||
<item name="android:colorPrimary">@color/colorPrimary</item>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user