mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +00:00
Dimensional adjustments
This commit is contained in:
parent
b05d26aa66
commit
b4c8dc0006
2 changed files with 7 additions and 7 deletions
|
|
@ -193,7 +193,7 @@ class UIUtils(context: Context) {
|
||||||
|
|
||||||
// Size
|
// Size
|
||||||
fun setClockSize(clock: TextClock) {
|
fun setClockSize(clock: TextClock) {
|
||||||
setTextSize(clock, sharedPreferenceManager.getClockSize(), 58F, 68F, 78F)
|
setTextSize(clock, sharedPreferenceManager.getClockSize(), 58F, 70F, 78F)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setDateSize(dateText: TextClock) {
|
fun setDateSize(dateText: TextClock) {
|
||||||
|
|
@ -227,8 +227,8 @@ class UIUtils(context: Context) {
|
||||||
|
|
||||||
"medium" -> {
|
"medium" -> {
|
||||||
shortcut.setAutoSizeTextTypeUniformWithConfiguration(
|
shortcut.setAutoSizeTextTypeUniformWithConfiguration(
|
||||||
23, // Min text size in SP
|
22, // Min text size in SP
|
||||||
29, // Max text size in SP
|
28, // Max text size in SP
|
||||||
2, // Step granularity in SP
|
2, // Step granularity in SP
|
||||||
TypedValue.COMPLEX_UNIT_SP // Unit of measurement
|
TypedValue.COMPLEX_UNIT_SP // Unit of measurement
|
||||||
)
|
)
|
||||||
|
|
@ -261,12 +261,12 @@ class UIUtils(context: Context) {
|
||||||
regionText: TextView? = null
|
regionText: TextView? = null
|
||||||
) {
|
) {
|
||||||
val size = sharedPreferenceManager.getAppSize()
|
val size = sharedPreferenceManager.getAppSize()
|
||||||
setTextSize(textView, size, 24F, 27F, 30F)
|
setTextSize(textView, size, 24F, 26F, 30F)
|
||||||
if (editText != null) {
|
if (editText != null) {
|
||||||
setTextSize(editText, size, 24F, 27F, 30F)
|
setTextSize(editText, size, 24F, 26F, 30F)
|
||||||
}
|
}
|
||||||
if (regionText != null) {
|
if (regionText != null) {
|
||||||
setTextSize(regionText, size, 14F, 17F, 20F)
|
setTextSize(regionText, size, 14F, 16F, 20F)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@
|
||||||
<Space
|
<Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="0.21" />
|
android:layout_weight="0.22" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/app1"
|
android:id="@+id/app1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue