Re: having trouble with stylesheet.css



On Wed, Jun 6, 2012 at 10:58 PM, Amy C <mathematical coffee gmail com> wrote:
> On 7 June 2012 11:46, Jasper St. Pierre <jstpierre mecheye net> wrote:
>> On Wed, Jun 6, 2012 at 9:36 PM, Amy C <mathematical coffee gmail com> wrote:
>>> When I load the extension, my popup menu item is the default
>>> background/text color that is used for all the other menu items,
>>> instead of red text and green background.
>>>
>>> If I instead do:
>>>
>>> dummy.set_style('color: #ff0000; background-color: #00ff00');
>>>
>>> it works.
>>
>> It shouldn't. You're trying to call set_style on something that is not
>> a StWidget. Maybe you wrote:
>>
>>    dummy.actor.set_style('color: #ff0000; background-color: #00ff00');
>>
>> instead? Make sure that that .actor exists.
>>
> Sorry, I did mean dummy.actor_set_style and
> dummy.actor.add_style_class_name. My problem remains - the style
> doesn't get applied unless I use .set_style directly or add my style
> class into /usr/share/gnome-shell/theme/gnome-shell.css. Adding to
> stylesheet.css doesn't work.

What does St.ThemeContext.get_for_stage(global.stage).get_theme().get_custom_stylesheets()
print out?

-- 
  Jasper


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]