mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[github] Use inactive text color for author and date in a commit info panel
GitOrigin-RevId: 13b67e13665a23d79488eef0fda8ae2ec5d7c023
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2bf3e51745
commit
2529ce409d
+8
-1
@@ -4,7 +4,11 @@ package org.jetbrains.plugins.github.pullrequest.ui.details
|
||||
import com.intellij.collaboration.ui.VerticalListPanel
|
||||
import com.intellij.collaboration.ui.util.bindText
|
||||
import com.intellij.collaboration.ui.util.bindVisibility
|
||||
import com.intellij.openapi.util.text.HtmlBuilder
|
||||
import com.intellij.openapi.util.text.HtmlChunk
|
||||
import com.intellij.ui.ColorUtil
|
||||
import com.intellij.util.text.DateFormatUtil
|
||||
import com.intellij.util.ui.NamedColorUtil
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.flow.map
|
||||
import org.jetbrains.plugins.github.pullrequest.ui.details.model.GHPRCommitsViewModel
|
||||
@@ -25,7 +29,10 @@ internal object GHPRDetailsCommitInfoComponentFactory {
|
||||
bindText(scope, commitsVm.selectedCommit.map { commit ->
|
||||
commit ?: return@map ""
|
||||
val author = commit.author?.user ?: commitsVm.ghostUser
|
||||
"${author.getPresentableName()} ${DateFormatUtil.formatPrettyDateTime(commit.committedDate)}"
|
||||
HtmlBuilder()
|
||||
.append(HtmlChunk.text("${author.getPresentableName()} ${DateFormatUtil.formatPrettyDateTime(commit.committedDate)}"))
|
||||
.wrapWith(HtmlChunk.font(ColorUtil.toHex(NamedColorUtil.getInactiveTextColor())))
|
||||
.toString()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user