From 0253a0bfca988f81fdec4fb29e1a1d4137a0c480 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 14 Nov 2005 00:28:57 +0000 Subject: Added theme demo. --- .gitattributes | 2 ++ demos/controls/protected/pages/HomePage.php | 7 +++++++ demos/controls/protected/pages/config.xml | 2 +- demos/controls/protected/themes/BlueTheme/buttons.skin | 2 ++ demos/controls/protected/themes/BlueTheme/labels.skin | 2 ++ 5 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 demos/controls/protected/themes/BlueTheme/buttons.skin create mode 100644 demos/controls/protected/themes/BlueTheme/labels.skin diff --git a/.gitattributes b/.gitattributes index 50d7c49e..21b6ef4d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,6 +11,8 @@ demos/controls/protected/pages/config.xml -text demos/controls/protected/pages/private/MemberPage.php -text demos/controls/protected/pages/private/MemberPage.tpl -text demos/controls/protected/pages/private/config.xml -text +demos/controls/protected/themes/BlueTheme/buttons.skin -text +demos/controls/protected/themes/BlueTheme/labels.skin -text demos/images/fungii_logo.gif -text docs/conceptual-structure.vsd -text docs/request-sequence.vsd -text diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php index 4cfc3b0a..6c69e44b 100644 --- a/demos/controls/protected/pages/HomePage.php +++ b/demos/controls/protected/pages/HomePage.php @@ -2,6 +2,13 @@ class HomePage extends TPage { + public function onPreInit($param) + { + parent::onPreInit($param); + if(!$this->getUser()->getIsGuest()) + $this->setTheme(''); + } + public function testClick($sender,$param) { if($sender->BackColor==='') diff --git a/demos/controls/protected/pages/config.xml b/demos/controls/protected/pages/config.xml index 224a058c..f6bbc9a3 100644 --- a/demos/controls/protected/pages/config.xml +++ b/demos/controls/protected/pages/config.xml @@ -4,7 +4,7 @@ - + diff --git a/demos/controls/protected/themes/BlueTheme/buttons.skin b/demos/controls/protected/themes/BlueTheme/buttons.skin new file mode 100644 index 00000000..9b155fd4 --- /dev/null +++ b/demos/controls/protected/themes/BlueTheme/buttons.skin @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/demos/controls/protected/themes/BlueTheme/labels.skin b/demos/controls/protected/themes/BlueTheme/labels.skin new file mode 100644 index 00000000..64a8c469 --- /dev/null +++ b/demos/controls/protected/themes/BlueTheme/labels.skin @@ -0,0 +1,2 @@ + + \ No newline at end of file -- cgit v1.2.3