Skip to content

Commit

Permalink
Tune slider widget sizes
Browse files Browse the repository at this point in the history
Make sliders in lists (widgets and prefs) a bit less huge than they are
by default.

Signed-off-by: Danny Baumann <[email protected]>
  • Loading branch information
maniac103 committed Dec 1, 2024
1 parent ec93eec commit 5e4e08f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mobile/src/main/res/layout/chart_scaling_pref.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
android:focusable="false"
android:clickable="false"
android:background="@null"
app:trackHeight="12dp"
app:thumbHeight="32dp"
app:labelBehavior="gone" />

<TextView
Expand Down
4 changes: 3 additions & 1 deletion mobile/src/main/res/layout/widgetlist_slideritem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:max="100" />
android:max="100"
app:trackHeight="12dp"
app:thumbHeight="32dp" />

<TextView
android:id="@+id/widgetvalue"
Expand Down
4 changes: 3 additions & 1 deletion mobile/src/main/res/layout/widgetlist_slideritem_compact.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
android:layout_gravity="center_vertical"
android:layout_marginEnd="-8dp"
android:clipToOutline="false"
android:max="100" />
android:max="100"
app:trackHeight="8dp"
app:thumbHeight="24dp" />

</LinearLayout>

0 comments on commit 5e4e08f

Please sign in to comment.