Newbie Guide for People Patching Styles

= How do I File a New Bug? =


 * In Bugzilla, click on New. Select Dreamwidth Development. In Component, select Style System. Enter a Summary and a Description. Mention style and theme names in the summary. Indicate style name, theme name(s), the name of the author and the Dreamscapes submission URL in the description.


 * Click on Show Advanced Fields. Set Initial State to ASSIGNED and enter your Bugzilla e-mail address in Assign To.

= Where are Style Files? =


 * core2.s2 is in


 * Theme and layout .s2 files are in  or


 * .pm layout files are in  or


 * S2Theme.pm is in


 * S2Theme_local.pm is in


 * s2layers.dat is in


 * s2layers-local.dat is in

= Adding a New Style =

Edit s2layers.dat

 * If this is a new Core2 layout, add:


 * If this is a child of Tabula Rasa, add:

Edit S2Theme.pm

 * Scroll down to  and add the layout and default theme:

Create LAYOUTNAME.pm

 * Create LAYOUTNAME.pm in.


 * Add:

Remove display options that don't apply to the layout, of course.

Create the LAYOUTNAME directory

 * Create a directory with the name of the layout in  or.

Create layout.s2

 * In the directory you've created, create a file named.


 * Add the layout code.

Create themes.s2

 * In the directory you've created, create a file named.


 * Follow the steps outlined in the next section.

= Adding a New Color Theme =

Edit themes.s2

 * Make sure the color theme has the right header. As Afuna explained here in dw_dev_training, it should look like this:


 * If the color theme author is not the style author, add this this line below, separated by a blank line:


 * If the theme has any images, name them like this: . Keep the image name used in other themes if there are any. If they're generic images used in other themes, simply use  . In the theme, use   or   for the URLs.


 * If you need to add theme-specific CSS, use:


 * Make sure to add the theme code in the right place (themes should be alphabetically sorted).

Edit LAYOUTNAME.pm
You must include the theme into the general layout file. Otherwise, people wouldn't be able to select it at Customize.


 * Find the correct place in the file so that themes stay alphabetically sorted.


 * Add the following code:


 * If this is the base layout, type this instead:


 * If the color theme author is not the style author, add this line:

= On PuTTY =


 * Type  if this patch adds or delete files then.

= On your Dreamhack =


 * Test, test and test. Make sure styles/themes are correctly listed in Customize and that names are correct. Make sure you can select the layouts working with your style. Make sure you can customize your style. On your test account, check general colors and link colors for themes. For styles, make sure all types of layouts, all pages, all sorts of entries and comments display correctly and display correctly in various screen resolutions and font sizes. Also make sure community journals look fine.


 * Make preview pictures if you can. Their size is 150x114. You may need to add/edit/remove entries, add/edit/remove modules, change screen resolution and font size so that your screen cap can be resized to this exact size.

= On Bugzilla =


 * Don't forget to zip images and attach them to your bug if there are any. Also set them to review ? and commit ?


 * If you can't do the preview pictures mention it so that someone can do them for you.