From kde-commits Tue Mar 11 20:10:28 2014 From: Anne-Marie Mahfouf Date: Tue, 11 Mar 2014 20:10:28 +0000 To: kde-commits Subject: [klettres] /: New "Aqua" background theme by Anindya Sen Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=139456865522002 Git commit 689129a59562e2a609781dc23140c33225004637 by Anne-Marie Mahfouf. Committed on 11/03/2014 at 20:56. Pushed by annma into branch 'master'. New "Aqua" background theme by Anindya Sen Aqua svg theme + patch to support it, thanks to Anindya Sen! CCMAIL: anindyasen007@gmail.c M +54 -0 src/kltheme.cpp M +2 -0 themes/CMakeLists.txt A +4 -0 themes/aqua/CMakeLists.txt A +2779 -0 themes/aqua/klettres_aqua.svg http://commits.kde.org/klettres/689129a59562e2a609781dc23140c33225004637 diff --git a/src/kltheme.cpp b/src/kltheme.cpp index a3bfda1..b3f75fb 100644 --- a/src/kltheme.cpp +++ b/src/kltheme.cpp @@ -180,6 +180,57 @@ public: } }; = +///The 'Aqua' theme + +class KLThemeAqua : public KLTheme +{ +public: + KLThemeAqua() + : KLTheme() + { + } + + virtual QString name() const + { + return "aqua"; + } + + virtual QString uiName() const + { + return i18nc("@item:inlistbox", "Aqua"); + } + + virtual QString svgFileName() const + { + return "klettres_aqua.svg"; + } + + virtual QColor letterColor() const + { + return QColor(215, 215, 215); = + } + + virtual QColor backgroundInputColor() const + { + return QColor(0, 0, 100); = + } + + virtual QColor letterInputColor() const + { + return QColor(0, 0, 215); = + } + + virtual QRect wordRect(const QSize& windowsize) const + { + return QRect(windowsize.width()*150/800, windowsize.height()*180/6= 00, 250, 160); + } + + virtual QRect inputRect(const QSize& windowsize) const + { + return QRect(windowsize.width()*600/800, windowsize.height()*480/600, 250= , 160); + } +}; + KLThemeFactory* KLThemeFactory::instance() { static KLThemeFactory factory; @@ -204,6 +255,8 @@ KLTheme* KLThemeFactory::buildTheme(int id) const return new KLThemeDesert(); case 2: return new KLThemeSavannah(); + case 3: + return new KLThemeAqua(); } return 0; } @@ -219,6 +272,7 @@ QStringList KLThemeFactory::themeList() const ADD_THEME_NAME( KLThemeKid, ret ) ADD_THEME_NAME( KLThemeDesert, ret ) ADD_THEME_NAME( KLThemeSavannah, ret ) + ADD_THEME_NAME( KLThemeAqua, ret) return ret; } = diff --git a/themes/CMakeLists.txt b/themes/CMakeLists.txt index 7b3c92f..a68b4dc 100644 --- a/themes/CMakeLists.txt +++ b/themes/CMakeLists.txt @@ -1,3 +1,5 @@ add_subdirectory(kids) add_subdirectory(desert) add_subdirectory(savannah) +add_subdirectory(aqua) + diff --git a/themes/aqua/CMakeLists.txt b/themes/aqua/CMakeLists.txt new file mode 100644 index 0000000..1c5e64f --- /dev/null +++ b/themes/aqua/CMakeLists.txt @@ -0,0 +1,4 @@ + +install( FILES klettres_aqua.svg DESTINATION ${DATA_INSTALL_DIR}/klettr= es/pics/aqua ) + + diff --git a/themes/aqua/klettres_aqua.svg b/themes/aqua/klettres_aqua.svg new file mode 100644 index 0000000..b399171 --- /dev/null +++ b/themes/aqua/klettres_aqua.svg @@ -0,0 +1,2779 @@ + + + + + + + + image/svg+xml + + + + + + + + +