new theme standard...H

elmo9286

Joined: 2005-04-20
Posts: 15
Posted: Fri, 2005-07-15 03:53

has anyone been able to convert the classic or any of the other layouts into the new theme template format? I have tried to create the classic theme with the greymatter color scheme without sucess

 
itcheg

Joined: 2003-11-30
Posts: 87
Posted: Fri, 2005-07-15 07:16

have some patients the original layouts will eventually come back to the new themes

[edit]Classic theme is back[/edit]

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-07-15 16:30

there's also a colorpack module now.. we probably won't do anything with greymatter so you might try converting that to a colorpack.

 
stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Fri, 2005-07-15 16:44
elmo9286 wrote:
has anyone been able to convert the classic or any of the other layouts into the new theme template format? I have tried to create the classic theme with the greymatter color scheme without sucess

I will 'release' the greymatter color scheme based on the new Matrix theme (layout) once Beta4 is out. A quick and dirty port can already be seen at my site! 8)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-07-15 22:06

stoffer, cool!

but couldn't you try to do it as a color pack?
see the new colorpack module. basically, it's just a css file, similar to the beta 3 themes.

mindless said, you could just diff your theme.css with matrix' theme.css and create a color pack css file from it.

 
stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Sat, 2005-07-16 07:40
valiant wrote:
stoffer, cool!

but couldn't you try to do it as a color pack?
see the new colorpack module. basically, it's just a css file, similar to the beta 3 themes.

mindless said, you could just diff your theme.css with matrix' theme.css and create a color pack css file from it.

Well, the last time I looked at it, the color pack didn't include all that many Sections and I might need full 'control' so that black text doesn't shown up again a dark grey background etc.

 
stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Sat, 2005-07-16 09:39

Okay, I will try the color pack feature out and see whether it will be sufficient. 8)

Edit: Woohoo! The color pack is indeed sufficient for porting the greymatter theme. I still have a few issues which I have asked mindless about.

Check out my site for the current status on the Greymatter Color Pack (GCP). :)

 
mika

Joined: 2005-07-09
Posts: 71
Posted: Sat, 2005-07-16 13:30

Hi folks!

Likewise the color pack module is installed on mine, but I fail to see where I can pick a color scheme.

Any help appreciated

Cheers,
Marc

G2, latest CVS update

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-07-16 13:37

in site admin -> themes -> matrix (bottom of the page)

right now, there's only one available color pack, but that will change soon, i guess. creating a color pack is very easy, creating a theme is quite easy.
we hope that users create their own and share their work with the community :)

 
mika

Joined: 2005-07-09
Posts: 71
Posted: Sat, 2005-07-16 16:55
valiant wrote:
in site admin -> themes -> matrix (bottom of the page)

right now, there's only one available color pack, but that will change soon, i guess. creating a color pack is very easy, creating a theme is quite easy.
we hope that users create their own and share their work with the community :)

Oh! I see, I was looking for it in Classic since I prefer it over Matrix.

One would assume coloe packs would fit all themes, no?

no big deal, work in progress, will wait.

Cheers,
Marc

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2005-07-16 17:06

I see Color pack on Hybrid, Slider and Matrix. Shouldn't this be in Classic too?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-07-16 20:39

It is optional for themes to support colorpacks.. we decided this is better because some people will just want to design a theme to look exactly as they want, and those people don't have to think about css coming from colorpacks at all (all css in one place for full control). But yes, classic is setup to support colorpacks so it should have the option added too.

stoffer wrote:
I'm working on moving my greymatter theme over to color packs but have at least one problem.

The AddComment text field uses the gcBackground1 as background color which is a bad idea for those of us that uses a dark background as color theme. Is there any way to work around this?

Interestingly enough two text field under Edit Photo "Keywords" and "Description" works differently with a default of white color. This is not really an issue, but is there a way to controls those background colors too?

I will release the Greymatter color pack as soon as Beta4 is done!

Oh, on last issue: The jpg taps doesn't work to well with my greymatter. I will just give people the option of overwriting those with mine in dark grey. Or is there another solution?

The intention of colorpack is to standardize a few class names that themes can use so their appearance is properly affected by the selected colorpack.. these are things like gcBackground1, gcBorder2, giDescription, etc. However, in reality a colorpack is just an additional css file that will be loaded so you can put any css in there you want. Look in matrix/theme.css for things you may wish to override.. one example is the background-color for input:focus and textarea:focus. You can add a specific entry to override background colors in AddComment if you wish... #addCommentForm input, #addCommentForm textarea { .. } or something like that. As for the tabbar.. you can even add images in your colorpack directory and override the css to use your own custom tabbar (or override the css to not use images..)
Hope this helps..

 
mika

Joined: 2005-07-09
Posts: 71
Posted: Sun, 2005-07-17 01:29

Well I created themes/classic/local, copied ../theme.css with modules/colorpack/packs/blue/color.css appended to it.

Did the job for me!

Cheers,
Marc

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-07-17 02:51

FYI, the /local directory only works for .tpl files. Unless something of course something has changed.

You'd want to create your 'loca' directory under /classic/templates/ and copy any .tpl template files you want to change into that 'local' directory.

 
mika

Joined: 2005-07-09
Posts: 71
Posted: Sun, 2005-07-17 03:20
nivekiam wrote:
FYI, the /local directory only works for .tpl files. Unless something of course something has changed.

You'd want to create your 'loca' directory under /classic/templates/ and copy any .tpl template files you want to change into that 'local' directory.

I'm by far no expert when it comes to G2 code and convention, I'm pretty green, but I did create a local dir under themes/classic and put in it a modified themes.css and it get's picked up (it works).

(my next hunt: how to change the displayed date format...)

Cheers,
Marc

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-07-17 04:16

You're right it does. Now I remember being pleasantly surprised when I read about it that a few weeks back. Sorry about the confusion.

Quote:
(my next hunt: how to change the displayed date format...)

Search the G2 forums, there have been several discussions on this exact topic ;)

 
mika

Joined: 2005-07-09
Posts: 71
Posted: Sun, 2005-07-17 04:32
nivekiam wrote:
You're right it does. Now I remember being pleasantly surprised when I read about it that a few weeks back. Sorry about the confusion.

Quote:
(my next hunt: how to change the displayed date format...)

Search the G2 forums, there have been several discussions on this exact topic ;)

I shall try again, wasn't fruitfull when I searched.

**UPDATE**
Found it! http://tinyurl.com/8vh9r
**UPDATE**

Cheers,
Marc

 
stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Sun, 2005-07-17 13:33
mindless wrote:
However, in reality a colorpack is just an additional css file that will be loaded so you can put any css in there you want. Look in matrix/theme.css for things you may wish to override.. one example is the background-color for input:focus and textarea:focus. You can add a specific entry to override background colors in AddComment if you wish... #addCommentForm input, #addCommentForm textarea { .. } or something like that. As for the tabbar.. you can even add images in your colorpack directory and override the css to use your own custom tabbar (or override the css to not use images..)

Hope this helps..

Thanks for the reply, mindless. This was very helpful, but this still doesn't work:

#addCommentForm input { background-color: #ccc !important; }

#addCommentForm textarea { background-color: #ccc !important; }

Any ideas?

Beyond this small issue my greymatter color pack should be ready for release. :)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-07-17 21:28

make sure to shift-reload so you get the new color.css.. it works for me. you might want #addCommentForm input.gcBackground1 so it doesn't apply to the markup-bar buttons as well, or #addCommentForm #subject, #addCommentForm #comment

 
stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Mon, 2005-07-18 06:50
mindless wrote:
make sure to shift-reload so you get the new color.css.. it works for me. you might want #addCommentForm input.gcBackground1 so it doesn't apply to the markup-bar buttons as well, or #addCommentForm #subject, #addCommentForm #comment

Thanks. I will try this out later today.