Author Topic: Change Background Color  (Read 2956 times)

aboettger

  • Guest
Change Background Color
« on: December 30, 2010, 20:37:39 »
Can I change the background color, e.g. for the fullscreen?

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Change Background Color
« Reply #1 on: December 31, 2010, 03:04:39 »
as far as i understood you can do that from within your gtk-theme. look here.

the other option would be to use skins, but i would personally try the gtk-theme way. (having said that, i'm not sure whether the window of the fullscreen is considered a different widget than the normal main window.)

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Change Background Color
« Reply #2 on: December 31, 2010, 21:09:34 »
Yes, it can be done with gtk themes, but of course it's not very easy to distribute.
I may try to allow gtk theme settings inside the layout, we will see.

(having said that, i'm not sure whether the window of the fullscreen is considered a different widget than the normal main window.)
gmb sets the name of the window to the layout name, so it is possible to make a gtk theme that act only on some layouts

You can do that using the skin system, which use a picture, but that can be a 1x1 picture, with this line :
Skin            = background.png::s
(the background.png is first searched in the folder of the layout)

I've just noticed, it seems there is a display bug in some cases when using the Skin option, only part of the window is drawn when switching to fullscreen, it seems to be linked with using the FB container.

I'll probably add a simpler way to do that at some point, I'm not sure how.
note that not all widgets will use the background color, in particular widgets in tabs won't.