From 95b5b26d396622b5ae99a56d030b86725220d640 Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 20 Dec 2001 19:53:19 +0000 Subject: [PATCH] Random Themes for SquirrelMail by Jorey Bump These themes generate random colors whenever a page is refreshed or a new one is loaded. ** NOTE: Question Reality wasn't added since it was 100% random and would often produce unreadable results. From the readme, it was listed as "For demonstration purposes only!" I hope Jorey doesn't mind. ** Spice of Life: This theme creates contrasting colors for easier readability. I have also provided 2 variations, one that always provides a dark background and one that always provides a light background (my personal favorite). Greenhouse Effect, Kind of Blue, In the Pink, and Shades of Grey: As the titles suggest, these themes favor a specific color. Monostochastic: This creates a contrasting 2 color theme. There is only one color for text, one for the background. Very spartan. NOTES: These themes will not interfere with the message highlighting feature provided by SquirrelMail, but sometimes the results may be unpleasant. I haven't tried it, but I assume that any colors specified in an external css file will override the ones provided by any theme. On a slightly technical note, this code will actually cause 2 themes to be generated, one for each frame. The SquirrelMail developers have not formally declared that certain elements of the color array be used for text vs. background (although that would be nice!), so I had to make educated guesses during development. I've noticed that SquirrelMail borrows a background color from the right frame to use as a text color in the left, to display parent folder names. This sometimes causes the folder names to be barely legible. Since my code loads a different theme in each frame, this situation cannot occur. It's something to keep in mind when you're designing themes, however. Here's a fix, if you find this to be as annoying as I do: Change line 172 (in 1.2.0-rc2) of src/left_main.php from: $line .= ""; to: $line .= ""; Hopefully, this will be changed in future versions, and the color array will be standardized for text and background colors. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1874 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- themes/greenhouse_effect.php | 56 +++++++++++++++++++++++++++++ themes/in_the_pink.php | 52 +++++++++++++++++++++++++++ themes/kind_of_blue.php | 56 +++++++++++++++++++++++++++++ themes/monostochastic.php | 66 +++++++++++++++++++++++++++++++++++ themes/shades_of_grey.php | 55 +++++++++++++++++++++++++++++ themes/spice_of_life.php | 61 ++++++++++++++++++++++++++++++++ themes/spice_of_life_dark.php | 55 +++++++++++++++++++++++++++++ themes/spice_of_life_lite.php | 55 +++++++++++++++++++++++++++++ 8 files changed, 456 insertions(+) create mode 100755 themes/greenhouse_effect.php create mode 100755 themes/in_the_pink.php create mode 100755 themes/kind_of_blue.php create mode 100755 themes/monostochastic.php create mode 100755 themes/shades_of_grey.php create mode 100755 themes/spice_of_life.php create mode 100755 themes/spice_of_life_dark.php create mode 100755 themes/spice_of_life_lite.php diff --git a/themes/greenhouse_effect.php b/themes/greenhouse_effect.php new file mode 100755 index 00000000..2b52c0d8 --- /dev/null +++ b/themes/greenhouse_effect.php @@ -0,0 +1,56 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> diff --git a/themes/in_the_pink.php b/themes/in_the_pink.php new file mode 100755 index 00000000..395419df --- /dev/null +++ b/themes/in_the_pink.php @@ -0,0 +1,52 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> diff --git a/themes/kind_of_blue.php b/themes/kind_of_blue.php new file mode 100755 index 00000000..74da17be --- /dev/null +++ b/themes/kind_of_blue.php @@ -0,0 +1,56 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> diff --git a/themes/monostochastic.php b/themes/monostochastic.php new file mode 100755 index 00000000..f662f395 --- /dev/null +++ b/themes/monostochastic.php @@ -0,0 +1,66 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> diff --git a/themes/shades_of_grey.php b/themes/shades_of_grey.php new file mode 100755 index 00000000..81caa86c --- /dev/null +++ b/themes/shades_of_grey.php @@ -0,0 +1,55 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> diff --git a/themes/spice_of_life.php b/themes/spice_of_life.php new file mode 100755 index 00000000..6e519162 --- /dev/null +++ b/themes/spice_of_life.php @@ -0,0 +1,61 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> diff --git a/themes/spice_of_life_dark.php b/themes/spice_of_life_dark.php new file mode 100755 index 00000000..157ea989 --- /dev/null +++ b/themes/spice_of_life_dark.php @@ -0,0 +1,55 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> diff --git a/themes/spice_of_life_lite.php b/themes/spice_of_life_lite.php new file mode 100755 index 00000000..b6fc2704 --- /dev/null +++ b/themes/spice_of_life_lite.php @@ -0,0 +1,55 @@ + 1 quote + $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more + +**/ + +?> -- 2.25.1