forked from upstream-mirrors/OpenTracks
UI refactoring with a Bottom App Bar.
Only one button to play/stop. Stop Activity to edit track just recorded, resuming or finishing. Logo color to FF6D00. Fixes #1078 #437 #575 #1094.
This commit is contained in:
committed by
Román Martínez
parent
a350077e5c
commit
da62d26409
@@ -18,8 +18,8 @@ limitations under the License.
|
||||
<color name="opentracks_primary_color">#344955</color>
|
||||
<color name="opentracks_primary_variant_color">#232f34</color>
|
||||
<color name="opentracks_on_primary_color">@android:color/white</color>
|
||||
<color name="opentracks_secondary_color">#ff8800</color>
|
||||
<color name="opentracks_secondary_transparent">#55ff8800</color>
|
||||
<color name="opentracks_secondary_color">#FF6D00</color>
|
||||
<color name="opentracks_secondary_transparent">#55FF6D00</color>
|
||||
<color name="opentracks_on_secondary_color">@android:color/white</color>
|
||||
|
||||
<color name="opentracks_surface_day_background_color">#f5f5f5</color>
|
||||
|
||||
@@ -15,12 +15,7 @@ limitations under the License.
|
||||
-->
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- toolbar -->
|
||||
<style name="Widget.OpenTracks.Toolbar.Surface" parent="Widget.MaterialComponents.Toolbar.Surface">
|
||||
<item name="android:background">#ff0000</item>
|
||||
</style>
|
||||
|
||||
<!-- bottom bar -->
|
||||
<!-- bottom buttons bar -->
|
||||
<style name="BottomButton" parent="Widget.MaterialComponents.Button.TextButton">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
|
||||
@@ -29,8 +29,6 @@ limitations under the License.
|
||||
|
||||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
||||
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
|
||||
<item name="android:colorBackground">@android:color/white</item>
|
||||
<item name="colorOnBackground">@android:color/black</item>
|
||||
|
||||
@@ -46,6 +44,15 @@ limitations under the License.
|
||||
|
||||
<!-- Linear progress indicator -->
|
||||
<item name="linearProgressIndicatorStyle">@style/OpenTracksLinearProgressIndicator</item>
|
||||
|
||||
<!-- Bottom bar -->
|
||||
<item name="bottomAppBarStyle">@style/Widget.MaterialComponents.BottomAppBar.Colored</item>
|
||||
|
||||
<!-- Floating buttons -->
|
||||
<item name="floatingActionButtonStyle">@style/Widget.OpenTracks.FloatingActionButton</item>
|
||||
|
||||
<item name="android:windowActionModeOverlay">true</item>
|
||||
|
||||
</style>
|
||||
|
||||
<style name="OpenTracksLinearProgressIndicator" parent="Widget.MaterialComponents.LinearProgressIndicator">
|
||||
@@ -57,4 +64,9 @@ limitations under the License.
|
||||
<item name="android:navigationBarColor">@color/splashscreen_background</item>
|
||||
<item name="android:windowBackground">@drawable/splashscreen</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.OpenTracks.FloatingActionButton" parent="Widget.MaterialComponents.FloatingActionButton">
|
||||
<item name="fabCustomSize">64dp</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -52,4 +52,9 @@
|
||||
<item name="android:textColor">?attr/colorOnBackground</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.OpenTracks.OnBottomBarText" parent="TextAppearance.MaterialComponents.Headline6">
|
||||
<item name="android:textColor">?attr/colorOnPrimary</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user