瀏覽代碼

make font size value a constant

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 年之前
父節點
當前提交
ab14d9afff
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/src/main/java/com/nextcloud/talk/ui/theme/ViewThemeUtils.kt

+ 2 - 1
app/src/main/java/com/nextcloud/talk/ui/theme/ViewThemeUtils.kt

@@ -105,7 +105,7 @@ class ViewThemeUtils @Inject constructor(private val theme: ServerTheme, private
             // hacky as no default way is provided
             // hacky as no default way is provided
             val editText = searchView.findViewById<SearchAutoComplete>(R.id.search_src_text)
             val editText = searchView.findViewById<SearchAutoComplete>(R.id.search_src_text)
             val searchPlate = searchView.findViewById<LinearLayout>(R.id.search_plate)
             val searchPlate = searchView.findViewById<LinearLayout>(R.id.search_plate)
-            editText.textSize = 16f
+            editText.textSize = SEARCH_TEXT_SIZE
             editText.setHintTextColor(scheme.onSurfaceVariant)
             editText.setHintTextColor(scheme.onSurfaceVariant)
             editText.setTextColor(scheme.onSurface)
             editText.setTextColor(scheme.onSurface)
             editText.setBackgroundColor(scheme.surface)
             editText.setBackgroundColor(scheme.surface)
@@ -476,5 +476,6 @@ class ViewThemeUtils @Inject constructor(private val theme: ServerTheme, private
         private const val PROGRESS_LIGHTNESS_DARK_THEME: Float = 0.28f
         private const val PROGRESS_LIGHTNESS_DARK_THEME: Float = 0.28f
         private const val SURFACE_OPACITY_BUTTON_DISABLED: Float = 0.12f
         private const val SURFACE_OPACITY_BUTTON_DISABLED: Float = 0.12f
         private const val ON_SURFACE_OPACITY_BUTTON_DISABLED: Float = 0.38f
         private const val ON_SURFACE_OPACITY_BUTTON_DISABLED: Float = 0.38f
+        private const val SEARCH_TEXT_SIZE: Float = 16f
     }
     }
 }
 }