New Moodle15 Theme (LightYellow)

New Moodle15 Theme (LightYellow)

Bertold Altaner -
回帖数:19
Hi,
I modified standardwhite slightly to appear whith lightyellow colors.
Have a look on:
http://bs.seminar-karlsruhe.de/forum/
Have fun with it!

Thanks a lot to Urs for his excellent theme-documentation!

Bertold

P.S:
Only changes are to styles_color: theese colors are changed:
diff -bB standard/styles_color.css standardlightyellow/styles_color.css
57c57
< background-color:#FAFAFA;
---
> background-color:#FFFFE0;
146c146
< background: #FFD991;
---
> background: #FFEBA6;
216c216
< background-color: #FAFAFA;
---
> background-color:#FFFFE0;
226c226
< background-color: #fafafa;
---
> background-color:#FFFFE0;
244c244
< background-color:#FCFCFC;
---
> background-color:#FFFFCC;
415c415
< background: #FFD991;
---
> background: #FFEBA6;
614c614
< background: #FFD991;
---
> background: #FFEBA6;
621c621
< border-color: #FFD991;
---
> border-color: #FFEBA6;

回复Bertold Altaner

Re: New Moodle15 Theme (LightYellow)

Bertold Altaner -
Attention!
This theme doesn't work correct!
The tabs aren't displayed correctly!

New tab layout:
new Tab

Old tab layout:
orig tab

Has anyone a solution (idea) for this problem?

Sorry for posting a not working theme!

Bertold

回复Bertold Altaner

Re: New Moodle15 Theme (LightYellow)

Jeffery Watkins -
Make sure you have the pix directory in your theme.  Copy it from the standard theme.

Jeff
回复Jeffery Watkins

Re: New Moodle15 Theme (LightYellow)

Bertold Altaner -
You'r the man!
Thank's a lot - it works fine now...
... but I don't understand this behavior, because in standardwhite or standardlogo there isn't a pix folder...

Bertold
回复Bertold Altaner

Re: New Moodle15 Theme (LightYellow)

Urs Hunkler -
Core developers的头像

"but I don't understand this behavior, because in standardwhite or standardlogo there isn't a pix folder"

Berthold, I suppose you decided to use custompix and use the line:

$THEME->custompix = true;

In this case you must also copy the tab folder into your pix folder. If you set

$THEME->custompix = false;

the tabs of your parent theme or the standard theme are taken, depending on your config.

Urs

PS. Sorry Jeff

Martin reworked "standardwhite" and "standardlogo" for Moodle 1.5. For only a few changes it is best to work as you see it in for example "standardwhite". Relay compleatly on the theme "standard" and use a small CSS file for your changes to overwrite some of the standard properties with your colors, fonts or whatever.

回复Urs Hunkler

Re: New Moodle15 Theme (LightYellow)

Jeffery Watkins -
That is really odd Urs.  I never have changed the custompix tag in the Config file, but I have had to add the pix directory to my themes....

My CoolBlueOrb theme is on my test site, with custompix set to false, and without the Pix directory, no tabs show.

Could I be using old 1.5 theme files?

Jeff


回复Jeffery Watkins

Re: New Moodle15 Theme (LightYellow)

Urs Hunkler -
Core developers的头像

Hi Jeff,

my themes took the tabs of the parent theme - so I thought it where the userpix configuration.

But it is not. If you use a copy of "styles_color.css" you must comment out or delete the tabs section in this CSS file. In this section the tab pix are linked - and they link to your theme folder. My themes did not have this tabs section and worked perfectly. I tried commenting the whole section out in the theme "metal" and the theme starts using the standard tabs. Like the theme "standardwhite" which does not have it's own tabs definition in CSS. If you know the reason it's quite logical.

Would you like to try with "CoolBlueOrb" and tell us, if this config works for you?

Thank you,
Urs

回复Urs Hunkler

Re: New Moodle15 Theme (LightYellow)

Jeffery Watkins -
That did the trick Urs.  I commented out the tabs pictures lines in the color css.

Jeff
回复Jeffery Watkins

Re: New Moodle15 Theme (LightYellow)

Urs Hunkler -
Core developers的头像

Great Jeff,

so we have found one more gem for the [Moodle Theme KnowledgeBase].

Urs

回复Urs Hunkler

Re: New Moodle15 Theme (LightYellow)

Jeffery Watkins -
Soon we will have the definitive guide on all things Moodle Themes!!!


Good work all around on this Urs!!!!

big grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grinbig grin
回复Jeffery Watkins

Re: New Moodle15 Theme (LightYellow)

W Page -

Hi Bertold & Jeffery!

Are you guys going to update and repost the theme after the bug fixes??

WP1

回复W Page

Re: New Moodle15 Theme (LightYellow)

Jeffery Watkins -
I include the pix directory in my themes because I have changed a few things, so all of mine are as bug free as my current knowledge of themes allows... big grin

However.... wink  if you find anything else, let me know so I can change immediately.

Jeff
回复W Page

Re: New Moodle15 Theme (LightYellow)

Bertold Altaner -
... no problem - I hope, it works now (not only for me)...

Bertold
回复Bertold Altaner

Re: New Moodle15 Theme (LightYellow)

Genner Cerna -
hidden topics are same color with not hidden topics, unlike before topics that are hidden is represented as gray in color and bronken lines border...

hope theres a quick fix...
回复Urs Hunkler

Re: New Moodle15 Theme (LightYellow)

Bertold Altaner -
Hi Urs,
thanks for your explanation, but that's what I thought (with your documentation)...
But it doesn't work when I don't copy the pix-folder in my new theme...
I don't want a custom-pix-folder (or better, I don't have the time to change it).

Thanks for help
Bertold
P.S:
My steps in creating a new them:
cp -r standardwhite standardlightyellow
edit config.php to use own colors
edit styles_color.css to change some colors

Here are the differencies:
diff -bB standardlightyellow/config.php standardwhite/config.php
9c9
< $THEME->sheets = array('gradients','styles_color');
---
> $THEME->sheets = array('gradients');
15c15,16
< $THEME->standardsheets = array('styles_layout','styles_fonts','styles_moz');
---
>
> $THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
Binary files standardlightyellow/gradient.jpg and standardwhite/gradient.jpg differ
Only in standardlightyellow: styles_color.css

回复Bertold Altaner

Re: New Moodle15 Theme (LightYellow)

Urs Hunkler -
Core developers的头像
Hi Berthold,

you copied exactly the "styles_color" with the tab definitions into your folder and excluded it form the list of standard CSS files.

If you add "styles_color" to the list of standard CSS files again and delete the tabs section from your "styles_color" and look for other parts with urls to the pix folder and delete them you should not need the pix folder any more.

It should work, it works for several other themes.

I wish you much success
Urs
回复Urs Hunkler

Re: New Moodle15 Theme (LightYellow)

Bertold Altaner -
Hi Urs,
thanks for your help!
It works now!
P.S: I don't have to delete the parts with the urls to the pix folder, I have to edit them from:
url('pix/tab/
to:
url('../standard/pix/tab/

Only deleting don't solve the problem, am i right?
(since there is no definition of tabs in other css-files, or?)

Bertold