Skip to content
Browse files

Appearance enhancements

  • Loading branch information...
1 parent dd2aaba commit 78cee4bd1c8efed3bb4f734022e422734284b36a tomek committed Aug 14, 2012
View
4 src/main/frontend/source/class/helenos/components/Header.js
@@ -18,8 +18,8 @@ qx.Class.define("helenos.components.Header",
alignY : "middle"
}),
padding : 8,
- backgroundColor : "#252525",
- textColor : "#E8E8E8"
+ height : 40,
+ appearance : 'app-header-black'
});
//TODO change components to appearance definitions
View
35 src/main/frontend/source/class/helenos/theme/Appearance.js
@@ -1,18 +1,27 @@
/* ************************************************************************
-
- Copyright:
-
- License:
-
- Authors:
-
-************************************************************************ */
-
+Copyright:
+ 2012 Tomek Kuprowski
+License:
+ GPLv2: http://www.gnu.org/licences/gpl.html
+Authors:
+ Tomek Kuprowski (tomekkuprowski at gmail dot com)
+ ************************************************************************ */
qx.Theme.define("helenos.theme.Appearance",
{
- extend : qx.theme.modern.Appearance,
+ extend : qx.theme.modern.Appearance,
+ title : 'Helenos app theme',
+
+ appearances : {
+ 'app-header-black' : {
+ style : function(states) {
+ return {
+ font : "bold",
+ textColor : "#E8E8E8",
+ padding : [ 8, 12 ],
+ decorator : "app-header-black"
+ };
+ }
+ }
- appearances :
- {
- }
+ }
});
View
16 src/main/frontend/source/class/helenos/theme/Color.js
@@ -1,13 +1,11 @@
/* ************************************************************************
-
- Copyright:
-
- License:
-
- Authors:
-
-************************************************************************ */
-
+Copyright:
+ 2012 Tomek Kuprowski
+License:
+ GPLv2: http://www.gnu.org/licences/gpl.html
+Authors:
+ Tomek Kuprowski (tomekkuprowski at gmail dot com)
+ ************************************************************************ */
qx.Theme.define("helenos.theme.Color",
{
extend : qx.theme.modern.Color,
View
18 src/main/frontend/source/class/helenos/theme/Decoration.js
@@ -6,11 +6,19 @@ License:
Authors:
Tomek Kuprowski (tomekkuprowski at gmail dot com)
************************************************************************ */
-qx.Theme.define("helenos.theme.Decoration",
+qx.Theme.define('helenos.theme.Decoration',
{
- extend : qx.theme.modern.Decoration,
+ extend : qx.theme.modern.Decoration,
- decorations :
- {
- }
+ decorations :
+ {
+ 'app-header-black':
+ {
+ decorator : qx.ui.decoration.Background,
+ style : {
+ backgroundImage : 'helenos/background.jpg',
+ backgroundRepeat : 'repeat-x'
+ }
+ }
+ }
});
View
24 src/main/frontend/source/class/helenos/theme/Font.js
@@ -1,18 +1,16 @@
/* ************************************************************************
-
- Copyright:
-
- License:
-
- Authors:
-
-************************************************************************ */
-
+Copyright:
+ 2012 Tomek Kuprowski
+License:
+ GPLv2: http://www.gnu.org/licences/gpl.html
+Authors:
+ Tomek Kuprowski (tomekkuprowski at gmail dot com)
+ ************************************************************************ */
qx.Theme.define("helenos.theme.Font",
{
- extend : qx.theme.modern.Font,
+ extend : qx.theme.modern.Font,
- fonts :
- {
- }
+ fonts :
+ {
+}
});
View
10 src/main/frontend/source/class/helenos/theme/Theme.js
@@ -1,5 +1,11 @@
-
-
+/* ************************************************************************
+Copyright:
+ 2012 Tomek Kuprowski
+License:
+ GPLv2: http://www.gnu.org/licences/gpl.html
+Authors:
+ Tomek Kuprowski (tomekkuprowski at gmail dot com)
+ ************************************************************************ */
qx.Theme.define("helenos.theme.Theme",
{
meta :
View
BIN src/main/frontend/source/resource/helenos/background.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 78cee4b

Please sign in to comment.
Something went wrong with that request. Please try again.