Modify

Opened 5 years ago

Last modified 7 months ago

#6433 new defect

Set the theme per user basis

Reported by: miezuit Owned by: olemis
Priority: normal Component: ThemeEnginePlugin
Severity: normal Keywords: theme, user, preferences
Cc: lkraav, rjollos Trac Release: 0.11

Description

It would be nice if the theme could be selected in preferences by each user.

This way each user could select the desired theme from the list of available themes, like for example he can now select the Pygments Theme.

Attachments (0)

Change History (6)

comment:1 Changed 13 months ago by lkraav

Absolutely +1. This is a critical component of any theme development workflow. Regular users can keep on working on a stable theme, but development on real data, on real amounts of data, can keep happening on another.

Premiere theme switcher on WordPress is http://plugins.trac.wordpress.org/browser/toolbar-theme-switcher/trunk

It basically sets a browser cookie with the theme slug and then re-assigns the theme based on the cookie value early in the request. Inspecting the code should provide ideas how to transfer this to Trac.

Is there any reason above strategy wouldn't work here?

comment:2 Changed 13 months ago by lkraav

  • Cc lkraav added

comment:3 Changed 7 months ago by olemis

  • Owner changed from coderanger to olemis

comment:4 follow-up: Changed 7 months ago by lkraav

Hey olemis. Can you tell me about your plans for this ticket? I'm assuming you have interest? Any estimation on difficulty? Do you need help?

comment:5 Changed 7 months ago by rjollos

  • Cc rjollos added

comment:6 in reply to: ↑ 4 Changed 7 months ago by olemis

Replying to lkraav:

Hey olemis.

:)

Can you tell me about your plans for this ticket?

/me working on it ...

I'm assuming you have interest?

sure !

Any estimation on difficulty?

In order to store theme config data on per-user basis, we need a mechanism to store the equivalent of current config options in the DB and bind them somehow to the user (session data ?) . There are other (related) issues :

  • How much configurable ?
    • what to do about custom + advanced theme admin panels ?
    • what about color schemes et al. ?
  • What are the interactions with #11463 ?
    • should we forget about this and support per-user customizations based on pre-processor style sheets ?
  • Should we offer ways to limit the themes that may be chosen in a given environment ?
    • I'm thinking of a multi-env or multiproduct (e.g. Bloodhound) deployment with different sets of allowed themes in each case .

... those are open questions we still need to figure out

Do you need help?

If anybody has any patches for me to review they will be welcome , of course

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.