aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2011-09-08 12:35:33 +0000
committerokan2011-09-08 12:35:33 +0000
commitce2d7e32150af2dba656d99ed0bf931645425ee7 (patch)
treec3035f9d197cd3137faf2d34230ea932335733ee /conf.c
parentf62e165e708a0095e787f98912d4d2e24c0d8b01 (diff)
downloadcwm-ce2d7e32150af2dba656d99ed0bf931645425ee7.tar.gz
allow configurable menu font color; from Alexander Polakov with a tweak
from me. ok oga@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 85e5f0f..93bac36 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.95 2011/09/08 12:00:49 okan Exp $
+ * $OpenBSD: conf.c,v 1.96 2011/09/08 12:35:33 okan Exp $
*/
#include <sys/param.h>
@@ -62,6 +62,7 @@ conf_gap(struct conf *c, struct screen_ctx *sc)
void
conf_font(struct conf *c, struct screen_ctx *sc)
{
+ font_init(sc, c->color[CWM_COLOR_FONT].name);
sc->font = font_make(sc, c->font);
}
@@ -72,6 +73,7 @@ static struct color color_binds[] = {
{ "red", 0 }, /* CWM_COLOR_BORDOR_UNGROUP */
{ "black", 0 }, /* CWM_COLOR_FG_MENU */
{ "white", 0 }, /* CWM_COLOR_BG_MENU */
+ { "black", 0 }, /* CWM_COLOR_FONT */
};
void