if (ValueInc == wxT("true")){
- SaveWindowPos = TRUE;
+ SaveWindowPos = true;
wxRect WindowPosition;
long PosX, PosY, PosH, PosW = 0;
settingfile->Read(wxT("HideLocalAddressBooks"), &ValueInc);
if (ValueInc == wxT("true")){
- HideLocalABs = TRUE;
+ HideLocalABs = true;
+ }
+
+ settingfile->Read(wxT("UseBackgroundContactColour"), &ValueInc);
+
+ if (ValueInc == wxT("true")){
+ UseBackgroundContactColour = true;
+ wxString BackgroundContactColourRead;
+ settingfile->Read(wxT("BackgroundContactColour"), &BackgroundContactColourRead);
+ if (BackgroundContactColourRead.Mid(0, 1) == "#"){
+ BackgroundContactColour.Set(BackgroundContactColourRead);
+ }
}
delete settingfile;
if (SettingName == wxT("SaveWindowPosition")) { return SaveWindowPos; }
else if (SettingName == wxT("HideLocalAddressBooks")) { return HideLocalABs; }
+ else if (SettingName == wxT("UseBackgroundContactColour")) { return UseBackgroundContactColour; }
- return FALSE;
+ return false;
}
}
+wxColour XABPreferences::GetBackgroundContactColourData(){
+
+ return BackgroundContactColour;
+
+}
+
+void XABPreferences::SetBackgroundContactColourData(wxColour ColourData){
+
+ BackgroundContactColour = ColourData;
+
+}
+
// XABPrefAccounts
XABPrefAccounts::XABPrefAccounts(){