mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
Make lock icon bigger and use primary color
This commit is contained in:
@ -74,6 +74,7 @@ class OpenNoteAdapter(
|
|||||||
val formattedText = note.getFormattedValue(context)
|
val formattedText = note.getFormattedValue(context)
|
||||||
open_note_item_text.beGoneIf(formattedText.isNullOrBlank() || note.isLocked())
|
open_note_item_text.beGoneIf(formattedText.isNullOrBlank() || note.isLocked())
|
||||||
icon_lock.beVisibleIf(note.isLocked())
|
icon_lock.beVisibleIf(note.isLocked())
|
||||||
|
icon_lock.setImageDrawable(activity.resources.getColoredDrawableWithColor(R.drawable.ic_lock_vector, properPrimaryColor))
|
||||||
open_note_item_text.apply {
|
open_note_item_text.apply {
|
||||||
text = formattedText
|
text = formattedText
|
||||||
setTextColor(textColor)
|
setTextColor(textColor)
|
||||||
|
@ -14,9 +14,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/open_note_popup_lock_size"
|
android:layout_height="@dimen/open_note_popup_lock_size"
|
||||||
android:layout_below="@+id/open_note_item_title"
|
android:layout_below="@+id/open_note_item_title"
|
||||||
android:alpha="0.5"
|
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
android:scaleType="centerInside"
|
android:padding="@dimen/small_margin"
|
||||||
android:src="@drawable/ic_lock_vector"
|
android:src="@drawable/ic_lock_vector"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user