OX6:Gui Theming Description: Difference between revisions

From Open-Xchange
Line 60: Line 60:
[[Image:Cut calendar month.jpg|thumb|150px|none|Calendar Month View]]
[[Image:Cut calendar month.jpg|thumb|150px|none|Calendar Month View]]


#a
#wholeDayBackground
#a
#appointmentTEMPORARY
#a
#appointmentRESERVED
#appointmentABSENT
#appointmentFREE
#workTimeBackground
#offTimeBackground




Line 69: Line 73:
[[Image:Cut calendar new.jpg|thumb|150px|none|New Appointment]]
[[Image:Cut calendar new.jpg|thumb|150px|none|New Appointment]]


#a
#background-color-additional-content
#a
#font-color-disabled
#a
#border-color-design
#border-color-content-default
#background-color-content
#font-style-lable
#background-color-default




Line 78: Line 86:
[[Image:Cut calendar new serie.jpg|thumb|150px|none|New Appointment Series]]
[[Image:Cut calendar new serie.jpg|thumb|150px|none|New Appointment Series]]


#a
#popupHeaderBackground
#a
#popup-header
#a
#greywrapper
 
#background-color-additional-content
#border-color-design
#popupBackground


=== Calendar Week View ===
=== Calendar Week View ===
Line 87: Line 97:
[[Image:Cut calendar week.jpg|thumb|150px|none|Calendar Week View]]
[[Image:Cut calendar week.jpg|thumb|150px|none|Calendar Week View]]


#a
#border-color-design
#a
#font-style-low
#a




Line 96: Line 105:
[[Image:Cut mail.jpg|thumb|150px|none|Mail View]]
[[Image:Cut mail.jpg|thumb|150px|none|Mail View]]


#a
#selected
#a
#tr
#a
#font-style-big-headline
#font-style-lable
#border-color-design
#defaultContainer


== Setup description ==
== Setup description ==

Revision as of 12:48, 19 June 2008

Introduction

Open-Xchange SP4 will support theming functionality, so that you will be able to create own themes and make them available in the configuration frontend of the Open-Xchange Webinterface. The stylesheet files have been modified with SP4, so that everything that should affect the theming functionality can now be configured within an own theme. Besides also the images can be replaced per theme.

Creating an Open-Xchange Theme

All themes will be stored in the following directory of the Open-Xchange Server:

/var/www/ox6/themes/

Per default you will have at least three themes in this directory: darkseagreen, default and ochre. The easiest way to start with your own theme is to copy the default theme with:

cp -r /var/www/ox6/themes/default /var/www/ox6/themes/[YOUR_THEME_NAME]

Now, you should start modifying your theme, by editing the stylesheet files in /var/www/ox6/themes/[YOUR_THEME_NAME]/css, and exchanging the images from /var/www/ox6/themes/[YOUR_THEME_NAME]/images. The following screenshots will give you an overview of the stylesheet structure, and which tags have to be modified in order to get your theme customized:

Style

Open the Open-Xchange css files for this changes.

The Portal Page

The Portal Page
  1. <body> .background-color
  2. cpbottom-color
  3. font-color-disabled
  4. font-style-headline
  5. background-color-additional-content
  6. border-background-default
  7. font-color-default
  8. font-style-lable
  9. font-color-header
  10. cpheader-color
  11. font-style-headline
  12. border-color-design
  13. background-color-content
  14. font-color-header
  15. topHeaderBG


The Calendar Page

The Calendar Page
  1. font-color-disabled
  2. wholeDayBackground
  3. background-color-PMG-selection-elements
  4. offTimeBackground
  5. strokeCalendar
  6. sectionStrokeCalendar
  7. border-color-image
  8. font-style-big-headline
  9. kwSeperationBackGround
  10. workTimeBackground


Calendar Month View

Calendar Month View
  1. wholeDayBackground
  2. appointmentTEMPORARY
  3. appointmentRESERVED
  4. appointmentABSENT
  5. appointmentFREE
  6. workTimeBackground
  7. offTimeBackground


New Appointment

New Appointment
  1. background-color-additional-content
  2. font-color-disabled
  3. border-color-design
  4. border-color-content-default
  5. background-color-content
  6. font-style-lable
  7. background-color-default


New Appointment Series

New Appointment Series
  1. popupHeaderBackground
  2. popup-header
  3. greywrapper
  4. background-color-additional-content
  5. border-color-design
  6. popupBackground

Calendar Week View

Calendar Week View
  1. border-color-design
  2. font-style-low


Mail View

Mail View
  1. selected
  2. tr
  3. font-style-big-headline
  4. font-style-lable
  5. border-color-design
  6. defaultContainer

Setup description

After you have created and modified your theme, you should make those theme available in the configuration interface for users of the Open-Xchange Server. To do that, you only have to manifest your theme in the following server configuration file, afterwards your users can select your theme:

/opt/open-xchange/etc/groupware/themes.properties

Each key in this property file must be prefixed with the theme bundle identifier. This is "com.openexchange.themes". The prefix must be followed with the unique identifier of a theme. This unique identifier specifies the directory name of the theme on the web server (/var/www/ox6/themes/ per default), too. The value of the property can be any name to described the theme. This name will be displayed in the AJAX GUI for selecting a theme. For example you should add the following line to this configuration file:

com.openexchange.themes.[YOUR_THEME_NAME]=[YOUR_THEME_DESCRIPTION]

Afterwards, restart the Open-Xchange service groupware. Your users can now select your theme.

End user view

After you have created and configured your theme, your users will be able to select it in the configuration frontend:

Theme selection.png