author | harlekin <harlekin> | 2003-03-23 14:21:37 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-23 14:21:37 (UTC) |
commit | 47d6402958e3d95a49a116552979407b4b731670 (patch) (side-by-side diff) | |
tree | 052add898ebee1f60e8f0bd9b4187bb16ccf464e | |
parent | dca448bad29f0afbab1fc0ffe493560fd927c1b5 (diff) | |
download | opie-47d6402958e3d95a49a116552979407b4b731670.zip opie-47d6402958e3d95a49a116552979407b4b731670.tar.gz opie-47d6402958e3d95a49a116552979407b4b731670.tar.bz2 |
use the common config symbol and save some kb
-rw-r--r-- | core/pim/today/todaybase.cpp | 2 | ||||
-rw-r--r-- | pics/today/config.png | bin | 990 -> 0 bytes |
2 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 826e253..da4efa3 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp @@ -1,81 +1,81 @@ /* * todaybase.cpp * * copyright : (c) 2002 by Maximilian Reiß * email : harlekin@handhelds.org * */ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "todaybase.h" #include <qlabel.h> #include <qimage.h> #include <qpixmap.h> #include <qapplication.h> #include <qwhatsthis.h> #include <qpe/resource.h> TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) : QWidget( parent, name, WStyle_ContextHelp ) { QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla - QPixmap config = Resource::loadPixmap( "today/config" ); // config icon + QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon layout = new QVBoxLayout( this ); QPalette pal = this->palette(); QColor col = pal.color( QPalette::Active, QColorGroup::Background ); pal.setColor( QPalette::Active, QColorGroup::Button, col ); pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); pal.setColor( QPalette::Normal, QColorGroup::Button, col ); pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); this->setPalette( pal ); // --- logo Section --- QPalette pal2; QColorGroup cg; cg.setColor( QColorGroup::Text, white ); cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); pal2.setActive( cg ); // today logo Frame = new QLabel( this, "Frame" ); Frame->setPalette( pal2 ); Frame->setFrameShape( QFrame::StyledPanel ); Frame->setFrameShadow( QFrame::Raised ); Frame->setLineWidth( 0 ); Frame->setMaximumHeight( 50 ); Frame->setMinimumHeight( 50 ); // Today text QLabel* TodayLabel = new QLabel( Frame, "TodayText" ); TodayLabel->setGeometry( QRect( 10, 1, 168, 40 ) ); QFont TodayLabel_font( TodayLabel->font() ); TodayLabel_font.setBold( TRUE ); TodayLabel_font.setPointSize( 40 ); TodayLabel->setFont( TodayLabel_font ); TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); // date DateLabel = new QLabel( Frame, "TextLabel1" ); DateLabel->setGeometry( QRect( 10, 35, 168, 12 ) ); QFont DateLabel_font( DateLabel->font() ); DateLabel_font.setBold( TRUE ); DateLabel->setFont( DateLabel_font ); DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); DateLabel->setTextFormat( RichText ); // Opiezilla QLabel* Opiezilla = new QLabel( Frame, "OpieZilla" ); Opiezilla->setPixmap( opiezilla ); diff --git a/pics/today/config.png b/pics/today/config.png Binary files differdeleted file mode 100644 index 79737ce..0000000 --- a/pics/today/config.png +++ b/dev/null |