mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android] Rework shape of zoom buttons
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
committed by
jeanbaptisteC
parent
a468bd3fab
commit
3c082b0629
@@ -1,9 +1,9 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
android:viewportWidth="960"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="960">
|
android:viewportHeight="24">
|
||||||
<path
|
<path
|
||||||
android:pathData="M240,520q-17,0 -28.5,-11.5T200,480q0,-17 11.5,-28.5T240,440h480q17,0 28.5,11.5T760,480q0,17 -11.5,28.5T720,520L240,520Z"
|
android:pathData="M19,13H5v-2h14v2z"
|
||||||
android:fillColor="#ffffff"/>
|
android:fillColor="#ffffff"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
android:viewportWidth="960"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="960">
|
android:viewportHeight="24">
|
||||||
<path
|
<path
|
||||||
android:pathData="M440,520L240,520q-17,0 -28.5,-11.5T200,480q0,-17 11.5,-28.5T240,440h200v-200q0,-17 11.5,-28.5T480,200q17,0 28.5,11.5T520,240v200h200q17,0 28.5,11.5T760,480q0,17 -11.5,28.5T720,520L520,520v200q0,17 -11.5,28.5T480,760q-17,0 -28.5,-11.5T440,720v-200Z"
|
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
|
||||||
android:fillColor="@android:color/white"/>
|
android:fillColor="@android:color/white"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
|||||||
@@ -11,14 +11,14 @@
|
|||||||
style="@style/MwmWidget.M3.FAB.MapButton.Zoom"
|
style="@style/MwmWidget.M3.FAB.MapButton.Zoom"
|
||||||
android:tint="?iconTint"
|
android:tint="?iconTint"
|
||||||
app:srcCompat="@drawable/ic_plus"
|
app:srcCompat="@drawable/ic_plus"
|
||||||
app:shapeAppearance="@style/Widget.MaterialComponents.FloatingActionButton"
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.MapButton.Zoom.Minus"
|
||||||
android:layout_marginBottom="@dimen/margin_half"
|
android:layout_marginBottom="@dimen/margin_eighth"
|
||||||
android:contentDescription="@string/zoom_in"/>
|
android:contentDescription="@string/zoom_in"/>
|
||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/nav_zoom_out"
|
android:id="@+id/nav_zoom_out"
|
||||||
style="@style/MwmWidget.M3.FAB.MapButton.Zoom"
|
style="@style/MwmWidget.M3.FAB.MapButton.Zoom"
|
||||||
android:tint="?iconTint"
|
android:tint="?iconTint"
|
||||||
app:srcCompat="@drawable/ic_minus"
|
app:srcCompat="@drawable/ic_minus"
|
||||||
app:shapeAppearance="@style/Widget.MaterialComponents.FloatingActionButton"
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.MapButton.Zoom.Plus"
|
||||||
android:contentDescription="@string/zoom_out"/>
|
android:contentDescription="@string/zoom_out"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<dimen name="nav_menu_landscape_width">360dp</dimen>
|
<dimen name="nav_menu_landscape_width">360dp</dimen>
|
||||||
|
|
||||||
<dimen name="nav_frame_padding">@dimen/margin_half</dimen>
|
<dimen name="nav_frame_padding">@dimen/margin_half</dimen>
|
||||||
<dimen name="zoom_buttons_margin">64dp</dimen>
|
<dimen name="zoom_buttons_margin">58dp</dimen>
|
||||||
<dimen name="map_buttons_bottom_margin">136dp</dimen>
|
<dimen name="map_buttons_bottom_margin">136dp</dimen>
|
||||||
<dimen name="map_buttons_bottom_max_width">300dp</dimen>
|
<dimen name="map_buttons_bottom_max_width">300dp</dimen>
|
||||||
|
|
||||||
|
|||||||
@@ -425,4 +425,17 @@
|
|||||||
<item name="android:maxWidth">@dimen/map_buttons_bottom_max_width</item>
|
<item name="android:maxWidth">@dimen/map_buttons_bottom_max_width</item>
|
||||||
<item name="android:padding">@dimen/nav_frame_padding</item>
|
<item name="android:padding">@dimen/nav_frame_padding</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="ShapeAppearance.MapButton.Zoom.Plus" parent="">
|
||||||
|
<item name="cornerSizeTopLeft">10%</item>
|
||||||
|
<item name="cornerSizeTopRight">10%</item>
|
||||||
|
<item name="cornerSizeBottomRight">50%</item>
|
||||||
|
<item name="cornerSizeBottomLeft">50%</item>
|
||||||
|
</style>
|
||||||
|
<style name="ShapeAppearance.MapButton.Zoom.Minus" parent="">
|
||||||
|
<item name="cornerSizeBottomLeft">10%</item>
|
||||||
|
<item name="cornerSizeBottomRight">10%</item>
|
||||||
|
<item name="cornerSizeTopLeft">50%</item>
|
||||||
|
<item name="cornerSizeTopRight">50%</item>
|
||||||
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user