Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e022e1e authored by Santiago Etchebehere's avatar Santiago Etchebehere
Browse files

Allow resizing text sample in style thumbnail

Different fonts get truncated with the current size in
smaller screens, so we're using autosize to make it fit
when needed.

Fixes: 143712313
Change-Id: I53a0cb7704ce50dcce97487c3da886a75b7a6d07
parent f668faed
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -62,9 +62,13 @@
            android:layout_height="@dimen/theme_option_font_sample_height"
            android:layout_alignParentBottom="true"
            android:layout_gravity="center_horizontal"
            android:autoSizeMaxTextSize="@dimen/theme_option_font_text_size"
            android:autoSizeMinTextSize="@dimen/theme_option_font_min_text_size"
            android:autoSizeTextType="uniform"
            android:gravity="center"
            android:textSize="@dimen/theme_option_font_text_size"
            android:letterSpacing=".2"
            android:text="@string/theme_font_example"/>
            android:text="@string/theme_font_example"
            android:textAlignment="center"
            android:textSize="@dimen/theme_option_font_text_size" />
    </RelativeLayout>
</LinearLayout>
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@
    <dimen name="option_bottom_margin">8dp</dimen>
    <!-- Note, using dp instead of sp as this text is more like a "snapshot" of the font -->
    <dimen name="theme_option_font_text_size">16dp</dimen>
    <dimen name="theme_option_font_min_text_size">15dp</dimen>
    <dimen name="theme_option_title_font_text_size">12sp</dimen>

    <dimen name="option_tile_margin_horizontal">6dp</dimen>