On 03-Jun-2002 Grahame Bowland wrote: > Hi all, > > I'm interested in being able to change certain parts of decorations on a > per-window basis, namely the colour of the titlebar. With fvwm I used to > colour code my xterms and I'd like to add that feature to blackbox. > > As far as I can tell I'd just need to change things like ftitle_pixel in > the _frame struct of BlackboxWindow - is this correct? > > How would I go about implementing this in a way most useful for > integrating back into Blackbox? >
This will require a good bit of work. the foo_pixel items are used *IF* a gradient is texture (i.e. gradient) is not used. If a gradient is in use _pixel is NOT used. So what you would really have to do is define a method in the style for allocating window styles by name. Then when a window is opened it needs to look in the style first for its name and if not then use the generic style.
