[core/themes] Prepare adding of themeing support
* Add framework JSON definition for themes * Add framework test module * Add framework module see #23
This commit is contained in:
parent
aacc56a4e2
commit
60ae92c8e3
7 changed files with 103 additions and 2 deletions
6
bumblebee/theme.py
Normal file
6
bumblebee/theme.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
"""Theme support"""
|
||||
|
||||
class Theme(object):
|
||||
pass
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
3
testjson.sh
Executable file
3
testjson.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
find themes/ -name "*.json"|xargs cat|json_verify -s
|
|
@ -1,4 +1,4 @@
|
|||
# pylint: disable=C0103,C0111
|
||||
# pylint: disable=C0103,C0111,W0703
|
||||
|
||||
import unittest
|
||||
|
||||
|
|
3
tests/test_theme.py
Normal file
3
tests/test_theme.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
# pylint: disable=C0103,C0111
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
|
@ -1,4 +1,4 @@
|
|||
# pylint: disable=C0103,C0111
|
||||
# pylint: disable=C0103,C0111,W0613
|
||||
|
||||
from bumblebee.output import Widget
|
||||
|
||||
|
|
54
themes/icons/awesome-fonts.json
Normal file
54
themes/icons/awesome-fonts.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"defaults": { "separator": "" },
|
||||
"date": { "prefix": "" },
|
||||
"time": { "prefix": "" },
|
||||
"memory": { "prefix": "" },
|
||||
"cpu": { "prefix": "" },
|
||||
"disk": { "prefix": "" },
|
||||
"dnf": { "prefix": "" },
|
||||
"brightness": { "prefix": "" },
|
||||
"cmus": {
|
||||
"playing": { "prefix": "" },
|
||||
"paused": { "prefix": "" },
|
||||
"stopped": { "prefix": "" },
|
||||
"prev": { "prefix": "" },
|
||||
"next": { "prefix": "" },
|
||||
"shuffle": { "on": { "prefix": "" }, "off": { "prefix": "" } },
|
||||
"repeat": { "on": { "prefix": "" }, "off": { "prefix": "" } }
|
||||
},
|
||||
"pasink": {
|
||||
"muted": { "prefix": "" },
|
||||
"unmuted": { "prefix": "" }
|
||||
},
|
||||
"pasource": {
|
||||
"muted": { "prefix": "" },
|
||||
"unmuted": { "prefix": "" }
|
||||
},
|
||||
"nic": {
|
||||
"wireless-up": { "prefix": "" },
|
||||
"wireless-down": { "prefix": "" },
|
||||
"wired-up": { "prefix": "" },
|
||||
"wired-down": { "prefix": "" },
|
||||
"tunnel-up": { "prefix": "" },
|
||||
"tunnel-down": { "prefix": "" }
|
||||
},
|
||||
"battery": {
|
||||
"charged": { "prefix": "", "suffix": "" },
|
||||
"AC": { "suffix": "" },
|
||||
"charging": {
|
||||
"prefix": [ "", "", "", "", "" ],
|
||||
"suffix": ""
|
||||
},
|
||||
"discharging-10": { "prefix": "", "suffix": "" },
|
||||
"discharging-25": { "prefix": "", "suffix": "" },
|
||||
"discharging-50": { "prefix": "", "suffix": "" },
|
||||
"discharging-80": { "prefix": "", "suffix": "" },
|
||||
"discharging-100": { "prefix": "", "suffix": "" }
|
||||
},
|
||||
"caffeine": {
|
||||
"activated": {"prefix": " " }, "deactivated": { "prefix": " " }
|
||||
},
|
||||
"xrandr": {
|
||||
"on": { "prefix": " "}, "off": { "prefix": " "}
|
||||
}
|
||||
}
|
35
themes/solarized-powerline.json
Normal file
35
themes/solarized-powerline.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"icons": [ "awesome-fonts" ],
|
||||
"defaults": {
|
||||
"default-separators": false,
|
||||
"separator-block-width": 0,
|
||||
"cycle": [
|
||||
{ "fg": "#93a1a1", "bg": "#002b36" },
|
||||
{ "fg": "#eee8d5", "bg": "#586e75" }
|
||||
],
|
||||
"warning": {
|
||||
"fg": "#002b36",
|
||||
"bg": "#b58900"
|
||||
},
|
||||
"critical": {
|
||||
"fg": "#002b36",
|
||||
"bg": "#dc322f"
|
||||
}
|
||||
},
|
||||
"dnf": {
|
||||
"good": {
|
||||
"fg": "#002b36",
|
||||
"bg": "#859900"
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"charged": {
|
||||
"fg": "#002b36",
|
||||
"bg": "#859900"
|
||||
},
|
||||
"AC": {
|
||||
"fg": "#002b36",
|
||||
"bg": "#859900"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue