author | sandman <sandman> | 2002-09-27 00:57:22 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-27 00:57:22 (UTC) |
commit | 6ac98209a82c5aa24ab09faf79525cd9aa5a8a1d (patch) (unidiff) | |
tree | 5a81f96aa27867e6ce30c1fe81b5004d73299cf7 | |
parent | 82012ba8a063b729dec92db60c939834530a9fa4 (diff) | |
download | opie-6ac98209a82c5aa24ab09faf79525cd9aa5a8a1d.zip opie-6ac98209a82c5aa24ab09faf79525cd9aa5a8a1d.tar.gz opie-6ac98209a82c5aa24ab09faf79525cd9aa5a8a1d.tar.bz2 |
- fixed the default bg type
-rw-r--r-- | core/launcher/launcher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index dc81c9e..1bd1156 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -242,51 +242,51 @@ void CategoryTabWidget::initializeCategories(AppLnkSet* rootFolder, | |||
242 | docview->setFileSystems(fs); | 242 | docview->setFileSystems(fs); |
243 | docview->setToolsEnabled(TRUE); | 243 | docview->setToolsEnabled(TRUE); |
244 | setTabAppearance( "Documents", cfg ); // No tr | 244 | setTabAppearance( "Documents", cfg ); // No tr |
245 | 245 | ||
246 | connect( categoryBar, SIGNAL(selected(int)), stack, SLOT(raiseWidget(int)) ); | 246 | connect( categoryBar, SIGNAL(selected(int)), stack, SLOT(raiseWidget(int)) ); |
247 | 247 | ||
248 | ((LauncherView*)stack->widget(0))->setFocus(); | 248 | ((LauncherView*)stack->widget(0))->setFocus(); |
249 | 249 | ||
250 | categoryBar->show(); | 250 | categoryBar->show(); |
251 | stack->show(); | 251 | stack->show(); |
252 | } | 252 | } |
253 | 253 | ||
254 | void CategoryTabWidget::setTabAppearance( const QString &id, Config &cfg ) | 254 | void CategoryTabWidget::setTabAppearance( const QString &id, Config &cfg ) |
255 | { | 255 | { |
256 | QString grp( "Tab %1" ); // No tr | 256 | QString grp( "Tab %1" ); // No tr |
257 | cfg.setGroup( grp.arg(id) ); | 257 | cfg.setGroup( grp.arg(id) ); |
258 | LauncherView *v = view( id ); | 258 | LauncherView *v = view( id ); |
259 | int idx = ids.findIndex( id ); | 259 | int idx = ids.findIndex( id ); |
260 | CategoryTab *tab = (CategoryTab *)categoryBar->tab( idx ); | 260 | CategoryTab *tab = (CategoryTab *)categoryBar->tab( idx ); |
261 | 261 | ||
262 | // View | 262 | // View |
263 | QString view = cfg.readEntry( "View", "Icon" ); | 263 | QString view = cfg.readEntry( "View", "Icon" ); |
264 | if ( view == "List" ) // No tr | 264 | if ( view == "List" ) // No tr |
265 | v->setViewMode( LauncherView::List ); | 265 | v->setViewMode( LauncherView::List ); |
266 | QString bgType = cfg.readEntry( "BackgroundType", "Ruled" ); | 266 | QString bgType = cfg.readEntry( "BackgroundType", "Image" ); |
267 | if ( bgType == "Image" ) { // No tr | 267 | if ( bgType == "Image" ) { // No tr |
268 | QString pm = cfg.readEntry( "BackgroundImage", "wallpaper/marble" ); | 268 | QString pm = cfg.readEntry( "BackgroundImage", "launcher/opie-background" ); |
269 | v->setBackgroundType( LauncherView::Image, pm ); | 269 | v->setBackgroundType( LauncherView::Image, pm ); |
270 | } else if ( bgType == "SolidColor" ) { | 270 | } else if ( bgType == "SolidColor" ) { |
271 | QString c = cfg.readEntry( "BackgroundColor" ); | 271 | QString c = cfg.readEntry( "BackgroundColor" ); |
272 | v->setBackgroundType( LauncherView::SolidColor, c ); | 272 | v->setBackgroundType( LauncherView::SolidColor, c ); |
273 | } | 273 | } |
274 | QString textCol = cfg.readEntry( "TextColor" ); | 274 | QString textCol = cfg.readEntry( "TextColor" ); |
275 | if ( textCol.isEmpty() ) | 275 | if ( textCol.isEmpty() ) |
276 | v->setTextColor( QColor() ); | 276 | v->setTextColor( QColor() ); |
277 | else | 277 | else |
278 | v->setTextColor( QColor(textCol) ); | 278 | v->setTextColor( QColor(textCol) ); |
279 | QStringList font = cfg.readListEntry( "Font", ',' ); | 279 | QStringList font = cfg.readListEntry( "Font", ',' ); |
280 | if ( font.count() == 4 ) | 280 | if ( font.count() == 4 ) |
281 | v->setViewFont( QFont(font[0], font[1].toInt(), font[2].toInt(), font[3].toInt()!=0) ); | 281 | v->setViewFont( QFont(font[0], font[1].toInt(), font[2].toInt(), font[3].toInt()!=0) ); |
282 | 282 | ||
283 | // Tabs | 283 | // Tabs |
284 | QString tabCol = cfg.readEntry( "TabColor" ); | 284 | QString tabCol = cfg.readEntry( "TabColor" ); |
285 | if ( tabCol.isEmpty() ) | 285 | if ( tabCol.isEmpty() ) |
286 | tab->bgColor = QColor(); | 286 | tab->bgColor = QColor(); |
287 | else | 287 | else |
288 | tab->bgColor = QColor(tabCol); | 288 | tab->bgColor = QColor(tabCol); |
289 | QString tabTextCol = cfg.readEntry( "TabTextColor" ); | 289 | QString tabTextCol = cfg.readEntry( "TabTextColor" ); |
290 | if ( tabTextCol.isEmpty() ) | 290 | if ( tabTextCol.isEmpty() ) |
291 | tab->fgColor = QColor(); | 291 | tab->fgColor = QColor(); |
292 | else | 292 | else |