[modules/git] Nicer formatting of stati

Add separate widgets for each state, so that each state can have a
custom icon *and* a custom coloring.
This commit is contained in:
Tobias Witek 2019-01-23 19:56:16 +01:00
parent 1698e4ad4c
commit 87f185e62b
11 changed files with 75 additions and 31 deletions

View file

@ -49,5 +49,10 @@
"fg": "#1d2021",
"bg": "#b8bb26"
}
}
},
"git": {
"modified": { "bg": "#458588" },
"deleted": { "bg": "#9d0006" },
"new": { "bg": "#b16286" }
}
}

View file

@ -49,5 +49,10 @@
"fg": "#1d2021",
"bg": "#b8bb26"
}
},
"git": {
"modified": { "bg": "#458588" },
"deleted": { "bg": "#9d0006" },
"new": { "bg": "#b16286" }
}
}

View file

@ -49,5 +49,10 @@
"fg": "#1d2021",
"bg": "#b8bb26"
}
},
"git": {
"modified": { "bg": "#458588" },
"deleted": { "bg": "#9d0006" },
"new": { "bg": "#b16286" }
}
}

View file

@ -49,5 +49,10 @@
"fg": "#1d2021",
"bg": "#b8bb26"
}
}
},
"git": {
"modified": { "bg": "#458588" },
"deleted": { "bg": "#9d0006" },
"new": { "bg": "#b16286" }
}
}

View file

@ -121,5 +121,11 @@
"ONLINE": {"prefix": "pool"},
"FAULTED": {"prefix": "pool (!)"},
"DEGRADED": {"prefix": "pool (!)"}
},
"git": {
"main": { "prefix": "" },
"new": { "prefix": "[n]" },
"modified": { "prefix": "[m]" },
"deleted": { "prefix": "[d]" }
}
}

View file

@ -186,9 +186,9 @@
}
},
"git": {
"prefix": "",
"new": "",
"modified": "",
"deleted": ""
"main": { "prefix": "" },
"new": { "prefix": "" },
"modified": { "prefix": "" },
"deleted": { "prefix": "" }
}
}

View file

@ -40,5 +40,10 @@
"fg": "#002b36",
"bg": "#859900"
}
}
},
"git": {
"modified": { "bg": "#2aa198" },
"deleted": { "bg": "#d33682" },
"new": { "bg": "#859900" }
}
}

View file

@ -42,5 +42,10 @@
"fg": "#002b36",
"bg": "#859900"
}
}
},
"git": {
"modified": { "bg": "#2aa198" },
"deleted": { "bg": "#d33682" },
"new": { "bg": "#859900" }
}
}

View file

@ -44,5 +44,10 @@
"fg": "#002b36",
"bg": "#859900"
}
}
},
"git": {
"modified": { "bg": "#2aa198" },
"deleted": { "bg": "#d33682" },
"new": { "bg": "#859900" }
}
}