mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Minor tweaks
This commit is contained in:
parent
c6cadf8d35
commit
bf25a44f7b
@ -48,7 +48,8 @@ class InputBarButton : RelativeLayout {
|
||||
result.layoutParams = LayoutParams(size, size)
|
||||
result.scaleType = ImageView.ScaleType.CENTER_INSIDE
|
||||
result.setImageResource(iconID)
|
||||
result.imageTintList = ColorStateList.valueOf(resources.getColorWithID(R.color.text, context.theme))
|
||||
val colorID = if (isSendButton) R.color.black else R.color.text
|
||||
result.imageTintList = ColorStateList.valueOf(resources.getColorWithID(colorID, context.theme))
|
||||
result
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,7 @@ import org.thoughtcrime.securesms.database.model.MmsMessageRecord
|
||||
import org.thoughtcrime.securesms.loki.utilities.UiMode
|
||||
import org.thoughtcrime.securesms.loki.utilities.UiModeUtilities
|
||||
import org.thoughtcrime.securesms.loki.utilities.getColorWithID
|
||||
import org.thoughtcrime.securesms.loki.utilities.toPx
|
||||
import java.lang.IllegalStateException
|
||||
|
||||
class VisibleMessageContentView : LinearLayout {
|
||||
@ -103,7 +104,9 @@ class VisibleMessageContentView : LinearLayout {
|
||||
// region Convenience
|
||||
private fun getBodyTextView(message: MessageRecord): TextView {
|
||||
val result = TextView(context)
|
||||
result.setPadding(resources.getDimension(R.dimen.small_spacing).toInt())
|
||||
val vPadding = resources.getDimension(R.dimen.small_spacing).toInt()
|
||||
val hPadding = toPx(12, resources)
|
||||
result.setPadding(hPadding, vPadding, hPadding, vPadding)
|
||||
result.text = message.body
|
||||
result.setTextSize(TypedValue.COMPLEX_UNIT_PX, resources.getDimension(R.dimen.medium_font_size))
|
||||
val uiMode = UiModeUtilities.getUserSelectedUiMode(context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user