From de47c4464b82fd6f64e4f781ed772a8b648b2447 Mon Sep 17 00:00:00 2001 From: "David A. Cuadrado" Date: Wed, 7 Nov 2007 09:12:40 -0500 Subject: [PATCH] Renamed dash binary to dash-studio --- dash.desktop | 2 +- src/shell/shell.pro | 2 +- src/shell/splashscreen.cpp | 19 +++++++++++++------ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/dash.desktop b/dash.desktop index f031a90..c5e83ff 100644 --- a/dash.desktop +++ b/dash.desktop @@ -2,7 +2,7 @@ Encoding=UTF-8 Name=Dash: Animation and multimedia Name[es]=Dash: AnimaciĆ³n y multimedia -Exec=dash +Exec=dash-studio Icon=dash.png Type=Application #MimeType= diff --git a/src/shell/shell.pro b/src/shell/shell.pro index 1ebf323..cd5a0fd 100644 --- a/src/shell/shell.pro +++ b/src/shell/shell.pro @@ -25,7 +25,7 @@ comm/chatwindow.cpp \ CONFIG += warn_on -TARGET = dash +TARGET = dash-studio QT += network diff --git a/src/shell/splashscreen.cpp b/src/shell/splashscreen.cpp index a08156b..9eb910b 100644 --- a/src/shell/splashscreen.cpp +++ b/src/shell/splashscreen.cpp @@ -24,6 +24,8 @@ #include #include +#include + class ViewPort : public QWidget { public: @@ -73,18 +75,19 @@ SplashScreen::SplashScreen(QWidget *parent) scene->setSceneRect(rect); setScene(scene); + QColor c(DCore::Algorithm::randomColor()); { QRectF br = scene->sceneRect(); QLinearGradient gradient(QPointF(0,0), QPointF(0,300)); gradient.setSpread(QGradient::RepeatSpread); - QColor c(0x168000); +// QColor c(0x168000); + c.setAlpha(180); gradient.setColorAt(0.0, c); - gradient.setColorAt(1.0, c); - - c.setAlpha(180); - gradient.setColorAt(0.65, Qt::blue); + gradient.setColorAt(1.0, DCore::Algorithm::randomColor()); + + gradient.setColorAt(0.65, DCore::Algorithm::randomColor()); setBackgroundBrush(gradient); @@ -97,8 +100,12 @@ SplashScreen::SplashScreen(QWidget *parent) font.setPointSize(64); dash->setFont(font); + QTransform transform = dash->transform(); + transform.rotate(50, Qt::XAxis); + transform.rotate(30, Qt::YAxis); + dash->setTransform(transform); + { - QColor c(Qt::blue); // c.setAlpha(180); dash->setDefaultTextColor(c); } -- 2.11.4.GIT