ギャップ部分の背景色を変更できる

This commit is contained in:
tateisu 2020-09-22 07:06:43 +09:00
parent 593f3c7fc0
commit 1064d219bd
5 changed files with 12 additions and 1 deletions

View File

@ -768,13 +768,17 @@ val appSettingRoot = AppSettingItem(null, SettingType.Section, R.string.app_sett
colorAlpha(Pref.ipEventBgColorReaction, R.string.reaction)
colorAlpha(Pref.ipEventBgColorQuote, R.string.quote_renote)
colorAlpha(Pref.ipEventBgColorVote, R.string.vote_polls)
colorAlpha(Pref.ipEventBgColorStatus, R.string.status)
colorAlpha(
Pref.ipConversationMainTootBgColor,
R.string.conversation_main_toot_background_color
)
colorAlpha(Pref.ipEventBgColorStatus, R.string.status)
colorAlpha(Pref.ipEventBgColorGap, R.string.gap)
}
group(R.string.button_accent_color) {
colorAlpha(Pref.ipButtonBoostedColor, R.string.boost)
colorAlpha(Pref.ipButtonFavoritedColor, R.string.favourites)

View File

@ -1101,6 +1101,9 @@ internal class ItemViewHolder(
btnGapTail.vg(column.type.gapDirection(column, false))
?.imageTintList = content_color_csl
val c = Pref.ipEventBgColorGap(App1.pref)
if(c != 0) this.viewRoot.backgroundColor = c
}
private fun showSearchGap(item : TootSearchGap) {

View File

@ -533,6 +533,8 @@ object Pref {
val ipEventBgColorFollowRequest = IntPref("EventBgColorFollowRequest", 0)
val ipEventBgColorStatus = IntPref("EventBgColorStatus", 0)
val ipEventBgColorGap = IntPref("EventBgColorGap", 0)
val ipCcdHeaderBg = IntPref("ipCcdHeaderBg", 0)
val ipCcdHeaderFg = IntPref("ipCcdHeaderFg", 0)
val ipCcdContentBg = IntPref("ipCcdContentBg", 0)

View File

@ -1049,4 +1049,5 @@
<string name="input_sharp_itself">\'#\'だけを入力</string>
<string name="notify_posts_from_this_user">このユーザの投稿を通知する</string>
<string name="stop_notify_posts_from_this_user">このユーザの投稿の通知を解除</string>
<string name="gap">ギャップ</string>
</resources>

View File

@ -1058,4 +1058,5 @@
<string name="input_sharp_itself">Input \'#\' itself</string>
<string name="notify_posts_from_this_user">Notify posts from this user</string>
<string name="stop_notify_posts_from_this_user">Stop notify posts from this user</string>
<string name="gap">Gap</string>
</resources>