Mallard is looking pretty colorful lately. What's going on?


While the default color scheme for Mallard remains black text on a white background with blue links, there are several ways to set different color schemes on your material and quizzes. This is very useful for "color coding" different types of material to give students an added sense of organization.

How do I set the color scheme in my course material?

You can set the color scheme used in course material in three locations: Essentially what this means is that you set the color scheme when you create the link to the course material. Remember that the Lessons Page is simply a list of links to material and quizzes.

You can indicate the color scheme you wish to use in three ways:

You can also use both the type and html body tags. In this case, the specific body arguments you supply will override those given in the type, with the rest of the arguments defaulting to the values in the type.
Note: specifying body arguments only is essentially specifying body arguments along with a type value of "default." Hence, specifying only "text=green" will give you green text, on a white background.

What colors are available for me to use?

You can specify colors in two ways:

For example, the following two lines are equivalent:

	<link src=myfile title="My File" link_text="file" bgcolor=red>
	<link src=myfile title="My File" link_text="file" bgcolor=FF0000>

What background images are available for me to use?

You may use as a background image any image previously uploaded to the Mallard image directory for your course. This means that:

Background images are not used to color in buttons and checkboxes in forms (such as the "submit" button on Mallard quizzes). These elements will appear drawn in the background color. Therefore, when specifying a background image, it is a good idea to also specify a background color that harmonizes well with the image.

How can I create my own material types?

When you have fifty spiffy lectures that all need to have yellow backgrounds, MidnightBlue text, and red links, it can be a hassle to specify that information in every link to every one of those lectures. The solution is to use a course material type. The simple type= field is a shorthand way of specifying not only the color scheme for your material but also the icons used with the title and even whether the type of the material will appear in the title of the material.

You will need to meet with your Mallard administrator to set up the different types of material that will be available for your course. It is a good idea to set these up at the same time that you arrange the grading policies that you will be using for the quizzes in your course.
(Note: In the future you will be able to set up the material types yourself from the Mallard course homepage.)

Each material type has five components which must be set:

The Mallard administrator specifies the values of these fields in a file named "material.reg" in the course subdirectory.

What about the color schemes used in my quizzes?

The color schemes and type names for quizzes are set in the Grade Policy.

Unlike course material, you may not override the color scheme or type name (homework, quiz, Heinous Test, etc) set by the grade policy chosen for the quiz. The only way to change the color scheme or type name of a quiz is to change the grade policy used for it. Note that it is certainly possible to have more than one grade policy available for a course, and to have multiple grade policies that differ only in type name and color scheme.

In the future you will be able to set the color scheme and type name part of the grade policy from the Mallard course home page. Currently, you must ask your Mallard administrator to do this.

Previous users of Mallard should note that a new field has been added to the grade policy: use_name_in_titles. This functions identically to the analogous field in the material types.

Examples!

For the following examples, assume that there is a material type Lecture defined as follows:

Examples:

  1. <link src=tennis title="Basic Tennis Rules" type=lecture link_text="read about tennis rules" window=popup>

    This will create a link "read about tennis" in your document which when clicked opens a pop-up window containing the file "tennis", printed in the color scheme defined in the "lect" type - on a background image of "barley.jpg", with any buttons or checkboxes appearing in yellow, midnight blue text, and red links. Links you have followed will be in the default color for them that your browser uses, as a color for them was not specified in the material type explicitly with the "vlink" field. The title of the page will be "Lecture: Basic Tennis Rules". The title will have icons "Lecture.gif" on each side.

  2. <link src=tennis title="Basic Tennis Rules" background = "" bgcolor=pink type=lecture link_text="read about tennis rules" window=popup>

    This will create a link "read about tennis" in your document, the same as the first example, only on a pink background and with pink buttons instead of yellow.
    Note: if your material type has a background image specified and you wish to override it, you must either specify a different image or use the empty field background="". Specifying a new bgcolor will change the color of the buttons (which are always drawn in the background color) but does nothing to override the background image.

  3. <link src=tennis title="Basic Tennis Rules" bgcolor=pink link_text="read about tennis rules" window=popup>

    This will create a link "read about tennis" in your document which when clicked opens a pop-up window containing the file "tennis", printed on a pink background with black text and blue links (the default text and link colors when no material type is given). The title of the page will be "Basic Tennis Rules". The title will have the default course material icons on each side.
    (Note: If you omit the title, the title will default to "Course Material" in the case that no material type is specified.)


Comments? Questions? General harassment? Mail it to maiko@wocket.csl.uiuc.edu