Hi Deepak, actually we do have an annotation called @CssClass, which you could use. It's not fully documented, but there's some information on [1]
However, the intent of that annotation is to target specific object members, eg as shown in the todo app [2]. What you want to do is to change the theme of an entire page. So you've got me thinking ... wouldn't it be better for there to simply be some sort of configuration property that you could add into viewer_wicket.properties [3], eg: isis.viewer.wicket.cssClass=myclass which would then be added to the <body> ? You could then target any element of the page, as well as avoiding lots of clutter in your domain objects. Let me know what you think (and if you like the idea, raise a ticket on it). Cheers Dan [1] http://isis.apache.org/core/dynamic-layouts.html [2] https://github.com/apache/isis/blob/isis-viewer-wicket-1.3.1-RC1/example/application/quickstart_wicket_restful_jdo/dom/src/main/java/dom/todo/ToDoItem.java#L172 [3] https://github.com/apache/isis/blob/isis-viewer-wicket-1.3.1-RC1/example/application/quickstart_wicket_restful_jdo/webapp/src/main/webapp/WEB-INF/viewer_wicket.properties#L44 On 8 Jan 2014 03:15, "Deepak Gopalakrishnan" <[email protected]> wrote: > Going to raise a ticket. I imagine it to be some kind of @Css(id="id", > class="class1 class2") and then if I could write the css in my > application.css( or any other css file that is bound) for the ids, classes, > that should take priority over any other css that is used. > > Thx > > > On Tue, Jan 7, 2014 at 8:49 PM, Dan Haywood <[email protected] > >wrote: > > > Not that I can think of, but that sounds like a reasonable enhancement. > > > > If you want to raise a ticket to explain exactly how you'd like this to > > work, I'll see about implementing it. > > > > Ta > > Dan > > > > > > > > On 7 January 2014 14:23, Deepak Gopalakrishnan <[email protected]> wrote: > > > > > Hello Dan, > > > > > > I'm inspecting the rendered html to identify the divs and then adding > css > > > properties for these. Is there a way to add a css property to all the > > > actions listed by isis and use this css property in my custom css? > > > > > > > > > On Tue, Jan 7, 2014 at 6:45 PM, Dan Haywood < > > [email protected] > > > >wrote: > > > > > > > Hi Deepak, > > > > Sorry to say that there's not any easy way. > > > > > > > > You can override CSS using your own app.css (in WEB-INF), but that's > > all > > > at > > > > the moment. > > > > > > > > I have talked about reskinning the Wicket viewer using Bootstrap, > which > > > > would give us "themeability"; ....and indeed work was started on this > > by > > > > someone else but got aborted. But unless that idea gets picked up or > > > > priorities change, right now there's no easy way to customize the > > > > look-n-feel. > > > > > > > > Dan > > > > > > > > > > > > > > > > > > > > > > > > On 7 January 2014 13:06, Deepak Gopalakrishnan <[email protected]> > > wrote: > > > > > > > > > Hello, > > > > > > > > > > I'd like to do some theme change to the actions listed on the > wicket > > > > > viewer. Is there a single point where I can change the theme color > of > > > > > 20B5C2 to something else? > > > > > > > > > > -- > > > > > Regards, > > > > > *Deepak Gopalakrishnan* > > > > > *Mobile*:+918891509774 > > > > > *Skype* : deepakgk87 > > > > > http://myexps.blogspot.com > > > > > > > > > > > > > > > > > > > > > -- > > > Regards, > > > *Deepak Gopalakrishnan* > > > *Mobile*:+918891509774 > > > *Skype* : deepakgk87 > > > http://myexps.blogspot.com > > > > > > > > > -- > Regards, > *Deepak Gopalakrishnan* > *Mobile*:+918891509774 > *Skype* : deepakgk87 > http://myexps.blogspot.com >
