summaryrefslogtreecommitdiff
path: root/openbox/config.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-04 07:18:04 +0000
committerDana Jansens <danakj@orodu.net>2007-03-04 07:18:04 +0000
commit17b2d57717504e2018d3ba23e0deffe55fc6d084 (patch)
treef3d66e77cd5a0decf7fe89ff561861e0d8895b3c /openbox/config.h
parentd0f9d647aaed5c9f2d3cc3a16cc2d4b717622bc0 (diff)
Fonts are now going to be configured in the rc.xml file. The format is such as
<theme> ... <font place="ActiveWindow"> <name>arial,sans</name> <size>8</size> <weight>bold</weight> <slant>italic</slant> <shadow>yes</shadow> <shadowOffset>1</shadowOffset> <shadowTint>64</shadowTint> </font> </theme> Valid place="" are ActiveWindow, InactiveWindow, MenuTitle, and MenuItem. Only valid weight is "bold" Valid slants are "italic" and "oblique" shadowTint is a value between -100 and 100 size is the font size in points. pixelsize could possibly be added in the form of 8px, but it's not right now. the name can contain multiple families and they will all be used to match characters You can omit any fields and get the default for it. You can omit naming a font for a place="" and get the default font for it. This is completely replacing theme-specified fonts, for better or for worse. Font shadowing may go back into the theme at some point, instead of in the rc.xml.
Diffstat (limited to 'openbox/config.h')
-rw-r--r--openbox/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbox/config.h b/openbox/config.h
index fc300d6c..96cd782c 100644
--- a/openbox/config.h
+++ b/openbox/config.h
@@ -23,6 +23,7 @@
#include "misc.h"
#include "stacking.h"
#include "place.h"
+#include "render/render.h"
#include <glib.h>
@@ -93,6 +94,15 @@ extern gchar *config_title_layout;
/*! Append a unique number to windows with same titles */
extern gboolean config_title_number;
+/*! The font for the active window's title */
+extern RrFont *config_font_activewindow;
+/*! The font for inactive windows' titles */
+extern RrFont *config_font_inactivewindow;
+/*! The font for menu titles */
+extern RrFont *config_font_menutitle;
+/*! The font for menu items */
+extern RrFont *config_font_menuitem;
+
/*! The number of desktops */
extern gint config_desktops_num;
/*! Desktop to start on, put 5 to start in the center of a 3x3 grid */