Move threshold and mute indicators directly after number
I don't know why I ruled this out originally, it's more visually pleasing to me now especially that threshold is likely to remain set at "+" for a long time.weechat-hashes
parent
5dde56d692
commit
422fe6cd29
11
ui.c
11
ui.c
|
@ -398,14 +398,11 @@ static void statusUpdate(void) {
|
||||||
char buf[256] = "";
|
char buf[256] = "";
|
||||||
struct Cat cat = { buf, sizeof(buf), 0 };
|
struct Cat cat = { buf, sizeof(buf), 0 };
|
||||||
catf(
|
catf(
|
||||||
&cat, "\3%d%s %u ",
|
&cat, "\3%d%s %u%s%s %s ",
|
||||||
idColors[window->id], (num == windows.show ? "\26" : ""), num
|
idColors[window->id], (num == windows.show ? "\26" : ""),
|
||||||
|
num, window->thresh[(const char *[]) { "-", "", "+", "++" }],
|
||||||
|
&"="[!window->mute], idNames[window->id]
|
||||||
);
|
);
|
||||||
if (window->thresh != Cold || window->mute) {
|
|
||||||
const char *thresh[] = { "-", "", "+", "++" };
|
|
||||||
catf(&cat, "%s%s ", thresh[window->thresh], &"="[!window->mute]);
|
|
||||||
}
|
|
||||||
catf(&cat, "%s ", idNames[window->id]);
|
|
||||||
if (window->mark && window->unreadWarm) {
|
if (window->mark && window->unreadWarm) {
|
||||||
catf(
|
catf(
|
||||||
&cat, "\3%d+%d\3%d%s",
|
&cat, "\3%d+%d\3%d%s",
|
||||||
|
|
Loading…
Reference in New Issue