No mention highlight on join/part/quit lines, bump to 0.1.11
Only chat, action and notice lines get the mention tint now. Join, part, quit, nick and mode lines about you always contain your nick, so every one of your own joins used to be highlighted as a mention. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
efad80e141
commit
026e349db8
+2
-2
@@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "com.tpuahsiew.wirc"
|
||||
version = "0.1.10"
|
||||
version = "0.1.11"
|
||||
|
||||
// No project-level repositories{} block here: settings.gradle.kts sets
|
||||
// dependencyResolutionManagement.repositoriesMode = FAIL_ON_PROJECT_REPOS and already
|
||||
@@ -38,7 +38,7 @@ compose.desktop {
|
||||
appResourcesRootDir.set(project.file("installerResources"))
|
||||
targetFormats(TargetFormat.Msi, TargetFormat.Exe)
|
||||
packageName = "wIRC"
|
||||
packageVersion = "0.1.10"
|
||||
packageVersion = "0.1.11"
|
||||
windows {
|
||||
menuGroup = "wIRC"
|
||||
upgradeUuid = "8f14e45f-ceea-4a5e-9c3b-5b1f0e8c2b7a"
|
||||
|
||||
@@ -1031,7 +1031,10 @@ fun MessageScrollback(
|
||||
) { msg ->
|
||||
val ts = timeFormat.format(Date(msg.timestampMillis))
|
||||
val bodyAnnotated = parseMircToAnnotatedString(msg.rawText, textColor)
|
||||
val mentioned = isMention(msg.rawText)
|
||||
// Only real messages get the mention tint. Join/part/quit/nick/mode lines
|
||||
// always contain your nick when they're about you ("you joined #chan"),
|
||||
// which used to light up every one of your own joins.
|
||||
val mentioned = msg.kind in MENTION_KINDS && isMention(msg.rawText)
|
||||
val nickColor = if (displaySettings.nickColorsEnabled) colorForNick(msg.sender ?: "") else textColor
|
||||
val mutedColor = textColor.copy(alpha = 0.7f)
|
||||
val prefix = rowPrefix(msg, ts, mutedColor, nickColor)
|
||||
@@ -1399,6 +1402,8 @@ private fun MentionColorPickerDialog(currentArgb: Int, onDismiss: () -> Unit, on
|
||||
)
|
||||
}
|
||||
|
||||
private val MENTION_KINDS = setOf(MessageKind.CHAT, MessageKind.ACTION, MessageKind.NOTICE)
|
||||
|
||||
@Composable
|
||||
private fun WindowSettingsPanel(
|
||||
displaySettings: WindowDisplaySettings,
|
||||
|
||||
Reference in New Issue
Block a user