[core/output] Add generic pango support
Allow any piece of a theme that specifies a set of attributes (default, cycles, states, widgets) to use pango *instead* of the usual attributes. If pango is present, this will have precedence. A practical example of this can be found in the powerline-pango theme, which is added solely for demonstration purposes. fixes #531
This commit is contained in:
parent
89247d834b
commit
b5c2ca6ccf
4 changed files with 118 additions and 6 deletions
70
themes/powerline-pango.json
Normal file
70
themes/powerline-pango.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"icons": [ "awesome-fonts" ],
|
||||
"defaults": {
|
||||
"separator-block-width": 0,
|
||||
"critical": {
|
||||
"pango": {
|
||||
"foreground": "#ffffff",
|
||||
"background": "#ff0000"
|
||||
}
|
||||
},
|
||||
"warning": {
|
||||
"pango": {
|
||||
"foreground": "#d75f00",
|
||||
"background": "#ffd700"
|
||||
}
|
||||
},
|
||||
"default_separators": false
|
||||
},
|
||||
"cycle": [
|
||||
{
|
||||
"pango": {
|
||||
"foreground": "#ffd700",
|
||||
"background": "#d75f00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pango": {
|
||||
"foreground": "#ffffff",
|
||||
"background": "#0087af"
|
||||
}
|
||||
}
|
||||
],
|
||||
"dnf": {
|
||||
"good": {
|
||||
"fg": "#494949",
|
||||
"bg": "#41db00"
|
||||
}
|
||||
},
|
||||
"apt": {
|
||||
"good": {
|
||||
"fg": "#494949",
|
||||
"bg": "#41db00"
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"charged": {
|
||||
"fg": "#494949",
|
||||
"bg": "#41db00"
|
||||
},
|
||||
"AC": {
|
||||
"fg": "#494949",
|
||||
"bg": "#41db00"
|
||||
}
|
||||
},
|
||||
"pomodoro": {
|
||||
"paused": {
|
||||
"fg": "#d75f00",
|
||||
"bg": "#ffd700"
|
||||
},
|
||||
"work": {
|
||||
"fg": "#ffd700",
|
||||
"bg": "#d75f00"
|
||||
},
|
||||
"break": {
|
||||
"fg": "#494949",
|
||||
"bg": "#41db00"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue