author | zautrix <zautrix> | 2005-01-31 09:56:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-31 09:56:31 (UTC) |
commit | 3e0b1c7cd48903b6886e081210cd83b7441b48ac (patch) (unidiff) | |
tree | 69c1937849a14b137df9c76285e061b1f4620df7 | |
parent | 1c5f4d993bf5eeb4a21bacf61671a1a08ed1f3cd (diff) | |
download | kdepimpi-3e0b1c7cd48903b6886e081210cd83b7441b48ac.zip kdepimpi-3e0b1c7cd48903b6886e081210cd83b7441b48ac.tar.gz kdepimpi-3e0b1c7cd48903b6886e081210cd83b7441b48ac.tar.bz2 |
color fixes
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | korganizer/koagendaitem.cpp | 10 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 1 | ||||
-rw-r--r-- | korganizer/koprefs.h | 1 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 6 |
5 files changed, 18 insertions, 2 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index eec0b38..00f5c28 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1183,30 +1183,30 @@ | |||
1183 | { "journals","Journale" }, | 1183 | { "journals","Journale" }, |
1184 | { "public","öffentl." }, | 1184 | { "public","öffentl." }, |
1185 | { "private","privat" }, | 1185 | { "private","privat" }, |
1186 | { "confidential","vertraul." }, | 1186 | { "confidential","vertraul." }, |
1187 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, | 1187 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, |
1188 | { "Yesterday","Gestern" }, | 1188 | { "Yesterday","Gestern" }, |
1189 | { "Day after tomorrow","Übermorgen" }, | 1189 | { "Day after tomorrow","Übermorgen" }, |
1190 | { "Tomorrow","Morgen" }, | 1190 | { "Tomorrow","Morgen" }, |
1191 | { "Day before yesterday","Vorgestern" }, | 1191 | { "Day before yesterday","Vorgestern" }, |
1192 | { "Size %1","Größe %1" }, | 1192 | { "Size %1","Größe %1" }, |
1193 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1193 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1194 | { " (%1 y.)"," (%1 J.)" }, | 1194 | { " (%1 y.)"," (%1 J.)" }, |
1195 | { "Allday:","Ganztägig:" }, | 1195 | { "Allday:","Ganztägig:" }, |
1196 | { "compl.todos","erled.Todos" }, | 1196 | { "compl.todos","erled.Todos" }, |
1197 | { "Day view","Tagesansicht" }, | 1197 | { "Day view","Tagesansicht" }, |
1198 | { "Next days","Nächste Tage" }, | 1198 | { "Next days","Nächste Tage" }, |
1199 | { "Next week","Nächste Woche" }, | 1199 | { "Next week","Nächste Woche" }, |
1200 | { "Next two weeks","Nächste zwei Wochen" }, | 1200 | { "Next two weeks","Nächste zwei Wochen" }, |
1201 | { "Next month","Nächster Monat" }, | 1201 | { "Next month","Nächster Monat" }, |
1202 | { "Journal view","Journal" }, | 1202 | { "Journal view","Journal" }, |
1203 | { "Display all opened","Zeige alle geöffnet" }, | 1203 | { "Display all opened","Zeige alle geöffnet" }, |
1204 | { "Display all closed","Zeige alle geschlossen" }, | 1204 | { "Display all closed","Zeige alle geschlossen" }, |
1205 | { "Display all flat","Zeige alle flach" }, | 1205 | { "Display all flat","Zeige alle flach" }, |
1206 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1206 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1207 | { "","" }, | 1207 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1208 | { "","" }, | 1208 | { "","" }, |
1209 | { "","" }, | 1209 | { "","" }, |
1210 | { "","" }, | 1210 | { "","" }, |
1211 | { "","" }, | 1211 | { "","" }, |
1212 | { "","" }, | 1212 | { "","" }, |
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index ee9f39a..a05c60e 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp | |||
@@ -73,52 +73,60 @@ KOAgendaItem::KOAgendaItem(Incidence *incidence, QDate qd, QWidget *parent,bool | |||
73 | yPaintCoord = -1; | 73 | yPaintCoord = -1; |
74 | } | 74 | } |
75 | 75 | ||
76 | void KOAgendaItem::init ( Incidence *incidence, QDate qd ) | 76 | void KOAgendaItem::init ( Incidence *incidence, QDate qd ) |
77 | { | 77 | { |
78 | mIncidence = incidence; | 78 | mIncidence = incidence; |
79 | mDate = qd; | 79 | mDate = qd; |
80 | mFirstMultiItem = 0; | 80 | mFirstMultiItem = 0; |
81 | mNextMultiItem = 0; | 81 | mNextMultiItem = 0; |
82 | mLastMultiItem = 0; | 82 | mLastMultiItem = 0; |
83 | computeText(); | 83 | computeText(); |
84 | 84 | ||
85 | if ( (incidence->type() == "Todo") && | 85 | if ( (incidence->type() == "Todo") && |
86 | ( !((static_cast<Todo*>(incidence))->isCompleted()) && | 86 | ( !((static_cast<Todo*>(incidence))->isCompleted()) && |
87 | ((static_cast<Todo*>(incidence))->dtDue().date() <= QDate::currentDate()) ) ) { | 87 | ((static_cast<Todo*>(incidence))->dtDue().date() <= QDate::currentDate()) ) ) { |
88 | if ( (static_cast<Todo*>(incidence))->dtDue() < QDateTime::currentDateTime().date()) | 88 | if ( (static_cast<Todo*>(incidence))->dtDue() < QDateTime::currentDateTime().date()) |
89 | mBackgroundColor = KOPrefs::instance()->mTodoOverdueColor ; | 89 | mBackgroundColor = KOPrefs::instance()->mTodoOverdueColor ; |
90 | else | 90 | else |
91 | mBackgroundColor = KOPrefs::instance()->mTodoDueTodayColor; | 91 | mBackgroundColor = KOPrefs::instance()->mTodoDueTodayColor; |
92 | } | 92 | } |
93 | else { | 93 | else { |
94 | QStringList categories = mIncidence->categories(); | 94 | QStringList categories = mIncidence->categories(); |
95 | QString cat = categories.first(); | 95 | QString cat = categories.first(); |
96 | if (cat.isEmpty()) { | 96 | if (cat.isEmpty()) { |
97 | mBackgroundColor =KOPrefs::instance()->mEventColor; | 97 | if ( (incidence->type() == "Todo") &&((static_cast<Todo*>(incidence))->isCompleted()) ) |
98 | mBackgroundColor =KOPrefs::instance()->mTodoDoneColor; | ||
99 | else | ||
100 | mBackgroundColor =KOPrefs::instance()->mEventColor; | ||
98 | } else { | 101 | } else { |
99 | mBackgroundColor = *KOPrefs::instance()->categoryColor(cat); | 102 | mBackgroundColor = *KOPrefs::instance()->categoryColor(cat); |
103 | if ( (incidence->type() == "Todo") &&((static_cast<Todo*>(incidence))->isCompleted()) ) { | ||
104 | if ( mBackgroundColor == KOPrefs::instance()->mEventColor ) | ||
105 | mBackgroundColor =KOPrefs::instance()->mTodoDoneColor; | ||
106 | } | ||
100 | } | 107 | } |
108 | |||
101 | } | 109 | } |
102 | mColorGroup = QColorGroup( mBackgroundColor.light(), | 110 | mColorGroup = QColorGroup( mBackgroundColor.light(), |
103 | mBackgroundColor.dark(),mBackgroundColor.light(), | 111 | mBackgroundColor.dark(),mBackgroundColor.light(), |
104 | mBackgroundColor.dark(),mBackgroundColor, black, mBackgroundColor) ; | 112 | mBackgroundColor.dark(),mBackgroundColor, black, mBackgroundColor) ; |
105 | setBackgroundColor( mBackgroundColor ); | 113 | setBackgroundColor( mBackgroundColor ); |
106 | 114 | ||
107 | setCellXY(0,0,1); | 115 | setCellXY(0,0,1); |
108 | setCellXWidth(0); | 116 | setCellXWidth(0); |
109 | setSubCell(0); | 117 | setSubCell(0); |
110 | setSubCells(1); | 118 | setSubCells(1); |
111 | setMultiItem(0,0,0); | 119 | setMultiItem(0,0,0); |
112 | startMove(); | 120 | startMove(); |
113 | mSelected = true; | 121 | mSelected = true; |
114 | select(false); | 122 | select(false); |
115 | QFontMetrics fontinf(KOPrefs::instance()->mAgendaViewFont); | 123 | QFontMetrics fontinf(KOPrefs::instance()->mAgendaViewFont); |
116 | mFontPixelSize = fontinf.height();; | 124 | mFontPixelSize = fontinf.height();; |
117 | hide(); | 125 | hide(); |
118 | xPaintCoord = -1; | 126 | xPaintCoord = -1; |
119 | yPaintCoord = -1; | 127 | yPaintCoord = -1; |
120 | } | 128 | } |
121 | 129 | ||
122 | 130 | ||
123 | KOAgendaItem::~KOAgendaItem() | 131 | KOAgendaItem::~KOAgendaItem() |
124 | { | 132 | { |
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 32cc291..0548f14 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -176,48 +176,49 @@ KOPrefs::KOPrefs() : | |||
176 | addItemInt("LastSyncTime",&mLastSyncTime,0); | 176 | addItemInt("LastSyncTime",&mLastSyncTime,0); |
177 | 177 | ||
178 | #ifdef _WIN32_ | 178 | #ifdef _WIN32_ |
179 | QString hdp= locateLocal("data","korganizer")+"\\\\"; | 179 | QString hdp= locateLocal("data","korganizer")+"\\\\"; |
180 | #else | 180 | #else |
181 | QString hdp= locateLocal("data","korganizer")+"/"; | 181 | QString hdp= locateLocal("data","korganizer")+"/"; |
182 | #endif | 182 | #endif |
183 | 183 | ||
184 | KPrefs::setCurrentGroup("LoadSaveFileNames"); | 184 | KPrefs::setCurrentGroup("LoadSaveFileNames"); |
185 | 185 | ||
186 | addItemString("LastImportFile", &mLastImportFile ,hdp +"import.ics" ); | 186 | addItemString("LastImportFile", &mLastImportFile ,hdp +"import.ics" ); |
187 | addItemString("LastVcalFile", &mLastVcalFile ,hdp +"export.vcs" ); | 187 | addItemString("LastVcalFile", &mLastVcalFile ,hdp +"export.vcs" ); |
188 | addItemString("LastSaveFile", &mLastSaveFile ,hdp +"mybackup.ics" ); | 188 | addItemString("LastSaveFile", &mLastSaveFile ,hdp +"mybackup.ics" ); |
189 | addItemString("LastLoadFile", &mLastLoadFile ,hdp +"mybackup.ics" ); | 189 | addItemString("LastLoadFile", &mLastLoadFile ,hdp +"mybackup.ics" ); |
190 | 190 | ||
191 | 191 | ||
192 | KPrefs::setCurrentGroup("Locale"); | 192 | KPrefs::setCurrentGroup("Locale"); |
193 | addItemBool("ShortDateInViewer",&mShortDateInViewer,false); | 193 | addItemBool("ShortDateInViewer",&mShortDateInViewer,false); |
194 | 194 | ||
195 | 195 | ||
196 | KPrefs::setCurrentGroup("Colors"); | 196 | KPrefs::setCurrentGroup("Colors"); |
197 | addItemColor("Holiday Color",&mHolidayColor,defaultHolidayColor); | 197 | addItemColor("Holiday Color",&mHolidayColor,defaultHolidayColor); |
198 | addItemColor("Highlight Color",&mHighlightColor,defaultHighlightColor); | 198 | addItemColor("Highlight Color",&mHighlightColor,defaultHighlightColor); |
199 | addItemColor("Event Color",&mEventColor,mDefaultCategoryColor); | 199 | addItemColor("Event Color",&mEventColor,mDefaultCategoryColor); |
200 | addItemColor("Todo done Color",&mTodoDoneColor,QColor(111,255,115) ); | ||
200 | addItemColor("Agenda Background Color",&mAgendaBgColor,defaultAgendaBgColor); | 201 | addItemColor("Agenda Background Color",&mAgendaBgColor,defaultAgendaBgColor); |
201 | addItemColor("WorkingHours Color",&mWorkingHoursColor,defaultWorkingHoursColor); | 202 | addItemColor("WorkingHours Color",&mWorkingHoursColor,defaultWorkingHoursColor); |
202 | addItemColor("Todo due today Color",&mTodoDueTodayColor,defaultTodoDueTodayColor); | 203 | addItemColor("Todo due today Color",&mTodoDueTodayColor,defaultTodoDueTodayColor); |
203 | addItemColor("Todo overdue Color",&mTodoOverdueColor,defaultTodoOverdueColor); | 204 | addItemColor("Todo overdue Color",&mTodoOverdueColor,defaultTodoOverdueColor); |
204 | addItemColor("MonthViewEvenColor",&mMonthViewEvenColor,QColor( 160,160,255 )); | 205 | addItemColor("MonthViewEvenColor",&mMonthViewEvenColor,QColor( 160,160,255 )); |
205 | addItemColor("MonthViewOddColor",&mMonthViewOddColor,QColor( 160,255,160 )); | 206 | addItemColor("MonthViewOddColor",&mMonthViewOddColor,QColor( 160,255,160 )); |
206 | addItemColor("MonthViewHolidayColor",&mMonthViewHolidayColor,QColor( 255,160,160 )); | 207 | addItemColor("MonthViewHolidayColor",&mMonthViewHolidayColor,QColor( 255,160,160 )); |
207 | addItemBool("MonthViewUsesDayColors",&mMonthViewUsesDayColors,true); | 208 | addItemBool("MonthViewUsesDayColors",&mMonthViewUsesDayColors,true); |
208 | addItemBool("MonthViewSatSunTog",&mMonthViewSatSunTog,true); | 209 | addItemBool("MonthViewSatSunTog",&mMonthViewSatSunTog,true); |
209 | addItemBool("HightlightDateTimeEdit",&mHightlightDateTimeEdit,false); | 210 | addItemBool("HightlightDateTimeEdit",&mHightlightDateTimeEdit,false); |
210 | addItemColor("AppColor1",&mAppColor1,QColor( 130,170,255 )); | 211 | addItemColor("AppColor1",&mAppColor1,QColor( 130,170,255 )); |
211 | addItemColor("AppColor2",&mAppColor2,QColor( 174,216,255 )); | 212 | addItemColor("AppColor2",&mAppColor2,QColor( 174,216,255 )); |
212 | addItemBool("UseAppColors",&mUseAppColors,false); | 213 | addItemBool("UseAppColors",&mUseAppColors,false); |
213 | 214 | ||
214 | 215 | ||
215 | 216 | ||
216 | KPrefs::setCurrentGroup("Views"); | 217 | KPrefs::setCurrentGroup("Views"); |
217 | addItemBool("Show Date Navigator",&mShowDateNavigator,true); | 218 | addItemBool("Show Date Navigator",&mShowDateNavigator,true); |
218 | addItemInt("Hour Size",&mHourSize,8); | 219 | addItemInt("Hour Size",&mHourSize,8); |
219 | addItemBool("Show Daily Recurrences",&mDailyRecur,true); | 220 | addItemBool("Show Daily Recurrences",&mDailyRecur,true); |
220 | addItemBool("Show Weekly Recurrences",&mWeeklyRecur,true); | 221 | addItemBool("Show Weekly Recurrences",&mWeeklyRecur,true); |
221 | addItemBool("Show Month Daily Recurrences",&mMonthDailyRecur,true); | 222 | addItemBool("Show Month Daily Recurrences",&mMonthDailyRecur,true); |
222 | addItemBool("Show Month Weekly Recurrences",&mMonthWeeklyRecur,true); | 223 | addItemBool("Show Month Weekly Recurrences",&mMonthWeeklyRecur,true); |
223 | addItemBool("ShowShortMonthName",&mMonthShowShort,false); | 224 | addItemBool("ShowShortMonthName",&mMonthShowShort,false); |
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index b3acda7..8b849fa 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -102,48 +102,49 @@ class KOPrefs : public KPimPrefs | |||
102 | int mWorkingHoursEnd; | 102 | int mWorkingHoursEnd; |
103 | bool mExcludeHolidays; | 103 | bool mExcludeHolidays; |
104 | bool mExcludeSaturdays; | 104 | bool mExcludeSaturdays; |
105 | bool mMarcusBainsShowSeconds; | 105 | bool mMarcusBainsShowSeconds; |
106 | 106 | ||
107 | QFont mTimeBarFont; | 107 | QFont mTimeBarFont; |
108 | QFont mMonthViewFont; | 108 | QFont mMonthViewFont; |
109 | QFont mAgendaViewFont; | 109 | QFont mAgendaViewFont; |
110 | QFont mMarcusBainsFont; | 110 | QFont mMarcusBainsFont; |
111 | QFont mTimeLabelsFont; | 111 | QFont mTimeLabelsFont; |
112 | QFont mTodoViewFont; | 112 | QFont mTodoViewFont; |
113 | QFont mListViewFont; | 113 | QFont mListViewFont; |
114 | QFont mDateNavigatorFont; | 114 | QFont mDateNavigatorFont; |
115 | QFont mEditBoxFont; | 115 | QFont mEditBoxFont; |
116 | QFont mJornalViewFont; | 116 | QFont mJornalViewFont; |
117 | QFont mWhatsNextFont; | 117 | QFont mWhatsNextFont; |
118 | QFont mEventViewFont; | 118 | QFont mEventViewFont; |
119 | 119 | ||
120 | 120 | ||
121 | 121 | ||
122 | 122 | ||
123 | QColor mHolidayColor; | 123 | QColor mHolidayColor; |
124 | QColor mHighlightColor; | 124 | QColor mHighlightColor; |
125 | QColor mEventColor; | 125 | QColor mEventColor; |
126 | QColor mTodoDoneColor; | ||
126 | QColor mAgendaBgColor; | 127 | QColor mAgendaBgColor; |
127 | QColor mWorkingHoursColor; | 128 | QColor mWorkingHoursColor; |
128 | QColor mTodoDueTodayColor; | 129 | QColor mTodoDueTodayColor; |
129 | QColor mTodoOverdueColor; | 130 | QColor mTodoOverdueColor; |
130 | QColor mMonthViewEvenColor; | 131 | QColor mMonthViewEvenColor; |
131 | QColor mMonthViewOddColor; | 132 | QColor mMonthViewOddColor; |
132 | QColor mMonthViewHolidayColor; | 133 | QColor mMonthViewHolidayColor; |
133 | bool mMonthViewUsesDayColors; | 134 | bool mMonthViewUsesDayColors; |
134 | bool mMonthViewSatSunTog; | 135 | bool mMonthViewSatSunTog; |
135 | QColor mAppColor1; | 136 | QColor mAppColor1; |
136 | QColor mAppColor2; | 137 | QColor mAppColor2; |
137 | bool mUseAppColors; | 138 | bool mUseAppColors; |
138 | 139 | ||
139 | int mDayBegins; | 140 | int mDayBegins; |
140 | int mHourSize; | 141 | int mHourSize; |
141 | int mAllDaySize; | 142 | int mAllDaySize; |
142 | bool mShowFullMenu; | 143 | bool mShowFullMenu; |
143 | bool mDailyRecur; | 144 | bool mDailyRecur; |
144 | bool mWeeklyRecur; | 145 | bool mWeeklyRecur; |
145 | bool mMonthDailyRecur; | 146 | bool mMonthDailyRecur; |
146 | bool mMonthWeeklyRecur; | 147 | bool mMonthWeeklyRecur; |
147 | bool mMonthShowIcons; | 148 | bool mMonthShowIcons; |
148 | bool mMonthShowShort; | 149 | bool mMonthShowShort; |
149 | bool mEnableToolTips; | 150 | bool mEnableToolTips; |
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 1b24f56..580dff2 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -1155,48 +1155,54 @@ void KOPrefsDialog::setupColorsTab() | |||
1155 | updateCategoryColor(); | 1155 | updateCategoryColor(); |
1156 | 1156 | ||
1157 | 1157 | ||
1158 | // Holiday Color | 1158 | // Holiday Color |
1159 | 1159 | ||
1160 | KPrefsDialogWidColor *holidayColor = | 1160 | KPrefsDialogWidColor *holidayColor = |
1161 | addWidColor(i18n("Holiday color:"), | 1161 | addWidColor(i18n("Holiday color:"), |
1162 | &(KOPrefs::instance()->mHolidayColor),topFrame); | 1162 | &(KOPrefs::instance()->mHolidayColor),topFrame); |
1163 | topLayout->addWidget(holidayColor->label(),ii,0); | 1163 | topLayout->addWidget(holidayColor->label(),ii,0); |
1164 | topLayout->addWidget(holidayColor->button(),ii++,1); | 1164 | topLayout->addWidget(holidayColor->button(),ii++,1); |
1165 | 1165 | ||
1166 | // Highlight Color | 1166 | // Highlight Color |
1167 | KPrefsDialogWidColor *highlightColor = | 1167 | KPrefsDialogWidColor *highlightColor = |
1168 | addWidColor(i18n("Highlight color:"), | 1168 | addWidColor(i18n("Highlight color:"), |
1169 | &(KOPrefs::instance()->mHighlightColor),topFrame); | 1169 | &(KOPrefs::instance()->mHighlightColor),topFrame); |
1170 | topLayout->addWidget(highlightColor->label(),ii,0); | 1170 | topLayout->addWidget(highlightColor->label(),ii,0); |
1171 | topLayout->addWidget(highlightColor->button(),ii++,1); | 1171 | topLayout->addWidget(highlightColor->button(),ii++,1); |
1172 | 1172 | ||
1173 | // Event color | 1173 | // Event color |
1174 | KPrefsDialogWidColor *eventColor = | 1174 | KPrefsDialogWidColor *eventColor = |
1175 | addWidColor(i18n("Default event color:"), | 1175 | addWidColor(i18n("Default event color:"), |
1176 | &(KOPrefs::instance()->mEventColor),topFrame); | 1176 | &(KOPrefs::instance()->mEventColor),topFrame); |
1177 | topLayout->addWidget(eventColor->label(),ii,0); | 1177 | topLayout->addWidget(eventColor->label(),ii,0); |
1178 | topLayout->addWidget(eventColor->button(),ii++,1); | 1178 | topLayout->addWidget(eventColor->button(),ii++,1); |
1179 | eventColor = | ||
1180 | addWidColor(i18n("Default todo done color:"), | ||
1181 | &(KOPrefs::instance()->mTodoDoneColor),topFrame); | ||
1182 | topLayout->addWidget(eventColor->label(),ii,0); | ||
1183 | topLayout->addWidget(eventColor->button(),ii++,1); | ||
1184 | |||
1179 | 1185 | ||
1180 | // agenda view background color | 1186 | // agenda view background color |
1181 | KPrefsDialogWidColor *agendaBgColor = | 1187 | KPrefsDialogWidColor *agendaBgColor = |
1182 | addWidColor(i18n("Agenda view background color:"), | 1188 | addWidColor(i18n("Agenda view background color:"), |
1183 | &(KOPrefs::instance()->mAgendaBgColor),topFrame); | 1189 | &(KOPrefs::instance()->mAgendaBgColor),topFrame); |
1184 | topLayout->addWidget(agendaBgColor->label(),ii,0); | 1190 | topLayout->addWidget(agendaBgColor->label(),ii,0); |
1185 | topLayout->addWidget(agendaBgColor->button(),ii++,1); | 1191 | topLayout->addWidget(agendaBgColor->button(),ii++,1); |
1186 | 1192 | ||
1187 | // working hours color | 1193 | // working hours color |
1188 | KPrefsDialogWidColor *workingHoursColor = | 1194 | KPrefsDialogWidColor *workingHoursColor = |
1189 | addWidColor(i18n("Working hours color:"), | 1195 | addWidColor(i18n("Working hours color:"), |
1190 | &(KOPrefs::instance()->mWorkingHoursColor),topFrame); | 1196 | &(KOPrefs::instance()->mWorkingHoursColor),topFrame); |
1191 | topLayout->addWidget(workingHoursColor->label(),ii,0); | 1197 | topLayout->addWidget(workingHoursColor->label(),ii,0); |
1192 | topLayout->addWidget(workingHoursColor->button(),ii++,1); | 1198 | topLayout->addWidget(workingHoursColor->button(),ii++,1); |
1193 | 1199 | ||
1194 | KPrefsDialogWidBool *sb = | 1200 | KPrefsDialogWidBool *sb = |
1195 | addWidBool(i18n("Use colors for application:"), | 1201 | addWidBool(i18n("Use colors for application:"), |
1196 | &(KOPrefs::instance()->mUseAppColors),topFrame); | 1202 | &(KOPrefs::instance()->mUseAppColors),topFrame); |
1197 | topLayout->addMultiCellWidget(sb->checkBox(), ii, ii, 0,1 ); | 1203 | topLayout->addMultiCellWidget(sb->checkBox(), ii, ii, 0,1 ); |
1198 | 1204 | ||
1199 | ii++; | 1205 | ii++; |
1200 | KPrefsDialogWidColor * workingHoursColor1 = | 1206 | KPrefsDialogWidColor * workingHoursColor1 = |
1201 | addWidColor(i18n("Buttons, menus, etc.:"), | 1207 | addWidColor(i18n("Buttons, menus, etc.:"), |
1202 | &(KOPrefs::instance()->mAppColor1),topFrame); | 1208 | &(KOPrefs::instance()->mAppColor1),topFrame); |