Changed the browser to use bold fonts for branches. Hardcoded for now.
[wmaker-crm.git] / WINGs / configuration.c
blobfd966551cac447a7a862a9856454e4c9f85eaac5
3 #include "WINGsP.h"
5 #include <proplist.h>
8 _WINGsConfiguration WINGsConfiguration;
12 #define SYSTEM_FONT "-*-helvetica-medium-r-normal-*-%d-*-*-*-*-*-*-*,-*-*-medium-r-*-*-%d-*-*-*-*-*-*-*"
14 #define BOLD_SYSTEM_FONT "-*-helvetica-bold-r-normal-*-%d-*-*-*-*-*-*-*,-*-*-bold-r-*-*-%d-*-*-*-*-*-*-*"
20 void
21 W_ReadConfigurations(void)
23 WMUserDefaults *defaults;
25 memset(&WINGsConfiguration, 0, sizeof(_WINGsConfiguration));
27 defaults = WMGetStandardUserDefaults();
29 if (defaults) {
30 WINGsConfiguration.systemFont =
31 WMGetUDStringForKey(defaults, "SystemFont");
33 WINGsConfiguration.boldSystemFont =
34 WMGetUDStringForKey(defaults, "BoldSystemFont");
36 WINGsConfiguration.useMultiByte =
37 WMGetUDBoolForKey(defaults, "MultiByteText");
39 WINGsConfiguration.doubleClickDelay =
40 WMGetUDIntegerForKey(defaults, "DoubleClickTime");
42 WINGsConfiguration.defaultFontSize =
43 WMGetUDIntegerForKey(defaults, "DefaultFontSize");
47 if (!WINGsConfiguration.systemFont) {
48 WINGsConfiguration.systemFont = SYSTEM_FONT;
50 if (!WINGsConfiguration.boldSystemFont) {
51 WINGsConfiguration.boldSystemFont = BOLD_SYSTEM_FONT;
53 if (WINGsConfiguration.doubleClickDelay == 0) {
54 WINGsConfiguration.doubleClickDelay = 250;
56 if (WINGsConfiguration.defaultFontSize == 0) {
57 WINGsConfiguration.defaultFontSize = 12;