Skip to content

Commit a664bc8

Browse files
jquick-axwaysgtcoolguy
authored andcommitted
feat(android): change button theme to not all-caps
1 parent fc77984 commit a664bc8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

android/titanium/res/values/values.xml

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
<colorname="ti_background">#FFFFFF</color>
1414
<colorname="ti_navigation_bar">#303F9F</color>
1515

16+
<!-- Titanium's button text style is not all-caps just like Google's apps. -->
17+
<stylename="TextAppearance.Titanium.Button"parent="TextAppearance.MaterialComponents.Button">
18+
<itemname="android:textAllCaps">false</item>
19+
</style>
20+
<stylename="Widget.Titanium.Button"parent="@style/Widget.AppCompat.Button">
21+
<itemname="android:textAllCaps">false</item>
22+
</style>
23+
1624
<!-- Root theme inherited by all other Titanium themes. -->
1725
<!-- Our "_build.js" will replace parent with ".NoActionBar" or ".Fullscreen" if set in "tiapp.xml". -->
1826
<stylename="Base.Theme.Titanium.RootStyle"parent="Theme.MaterialComponents.DayNight.DarkActionBar"/>
@@ -25,6 +33,9 @@
2533
<itemname="colorSurface">@color/ti_surface</item>
2634
<itemname="android:colorBackground">@color/ti_background</item>
2735
<itemname="android:navigationBarColor">@color/ti_navigation_bar</item>
36+
<itemname="android:buttonStyle">@style/Widget.Titanium.Button</item>
37+
<itemname="buttonStyle">@style/Widget.Titanium.Button</item>
38+
<itemname="textAppearanceButton">@style/TextAppearance.Titanium.Button</item>
2839
</style>
2940

3041
<!-- Base theme applied to all Titanium activities except splash. -->

0 commit comments

Comments
 (0)
close