Bugs item #1801220, was opened at 2007-09-24 16:51
Message generated for change (Settings changed) made by dooglus
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1801220&group_id=144022

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Usability
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Genete (genete)
Assigned to: Nobody/Anonymous (nobody)
Summary: Some Ubuntu Themes don't show the red border in edition mode

Initial Comment:
Using Ubuntu 6.10 and the 0.61.06 svn 743.

See this discussion for more details.

http://wiki.synfig.com/Talk:Animation_Basics

----------------------------------------------------------------------

Comment By: dooglus (dooglus)
Date: 2007-09-26 00:20

Message:
Logged In: YES 
user_id=1546005
Originator: NO

Fixed in svn r758.

I switched over to the alternative code, and put a comment there saying
why.  It seems to work nicely.

http://kibi.dyndns.org:8083/~dooglus/gitweb.pl?p=synfig;a=commitdiff;h=64176c252fa383e886a755f361a2787bf3e6f91c

----------------------------------------------------------------------

Comment By: dooglus (dooglus)
Date: 2007-09-25 23:22

Message:
Logged In: YES 
user_id=1546005
Originator: NO

The point of the small Python script is to demonstrate that the problem is
nothing to do with Synfig, other than that Synfig chose to use setting the
frame's background color as its method of indicating that it's in edit
mode, and it's possible for a Gtk theme to hide the frame's background.

It's not clear whether the theme should be hiding the edge of the frame
like that.  If it was hiding all buttons, for instance, that would clearly
not be a good thing, but this is quite the edge case.

It's not really an Ubuntu problem - they're themes are mostly just the
same as the Debian themes they've copied.  I wouldn't recommend reporting a
bug in the Ubuntu tracker, but it might be worth trying the Debian one, or
even the GNOME one.

Alternatively, Synfig could try using a different method of showing Edit
mode...  There's some commented code already in place to do just that
(please humour me as I play with the new web-browseable source repository
mirror):
  http://snurl.com/redborder

I'll try that code out and see how it works.

----------------------------------------------------------------------

Comment By: Genete (genete)
Date: 2007-09-25 22:55

Message:
Logged In: YES 
user_id=1874777
Originator: YES

So finally where is the problem in the themes engines or at synfig?, and
the most important, does it have a solution?
Thanks for your interest.
Carlos

----------------------------------------------------------------------

Comment By: dooglus (dooglus)
Date: 2007-09-25 17:17

Message:
Logged In: YES 
user_id=1546005
Originator: NO

I made a short Python script that shows the problem with the Ubuntu
themes:

  http://dooglus.rincevent.net/synfig/red_border.py

Save it in the current directory and run:

  python red_border.py

in a terminal.  It will draw a simple box with a red border, just like
Synfig Studio does.  The box isn't visible in some of the Ubuntu themes -
specifically, any that use these engines:

  crux-engine
  hcengine
  industrial
  mist
  ubuntulooks

also, themes with use the xfce engine with xthickness and ythickness set
to 1 in the first section.

----------------------------------------------------------------------

Comment By: Genete (genete)
Date: 2007-09-25 16:00

Message:
Logged In: YES 
user_id=1874777
Originator: YES

Here it is:
http://www.darthfurby.com/genete/Other/gtkrc

----------------------------------------------------------------------

Comment By: dooglus (dooglus)
Date: 2007-09-25 10:58

Message:
Logged In: YES 
user_id=1546005
Originator: NO

Could you post a copy of /usr/share/themes/Clearlooks/gtk-2.0/gtkrc from
your ubuntu please?

----------------------------------------------------------------------

Comment By: dooglus (dooglus)
Date: 2007-09-25 02:26

Message:
Logged In: YES 
user_id=1546005
Originator: NO

I think the problem is this:  all synfig does is asks Gtk to draw the
border in red.  If Ubuntu's themes have set the border size to zero then
you won't see the border color when it changes.

I suspect it would be relatively easy to make a change to ~/.gtkrc-2.0 to
globally modify the border with back to 1 or 2 pixels.

I'll look into it - tomorrow...  :)

If I find a way of doing it, I'll add it to the FAQ.

(Incidentally, I found a way of changing the color of the active CPoint in
the gradient dialog - I was finding that the currently selected CPoint was
highlighted in white, against a light grey background, making it very hard
to see.

I put this in my ~/.gtkrc-2.0 and now the selected CPoint is red:

style "arrow" = "clearlooks-default"     {
  fg[SELECTED] = "#c40" # selected cpoints
  engine "xfce" {}
}
widget_class "gtk*Dialog*GtkTable*GtkDrawingArea" style "arrow"

OK - maybe that only works for the ClearLooks theme, I'm not sure, but
that's the one I use...  Probably removing "clearlooks-" from the above
will make it work elsewhere if it doesn't already.

The "engine" line may depend on having xfce installed, too, so that can be
removed if you like.

----------------------------------------------------------------------

Comment By: Genete (genete)
Date: 2007-09-24 18:44

Message:
Logged In: YES 
user_id=1874777
Originator: YES

No luck. It was Anime Studio. It has its own GUI and don't use GTK, QT or
similar. And also it is not opensource...
It place the red border when you're at frame 0. It uses that frame as its
"non animation edition mode". Placing the cursor at any other frame means
automatically being in "animation edition mode".

I'm sorry. 

Regarding to Ubuntu Themes I believe it is a problem of the position of
the red border. I'm sure that the red border is drawn but it is hidden by
the guides for some themes. Maybe you could change the guides's colour or
draw the red border OVER the guide instead of draw it over the canvas. It
is only an idea.

best, Carlos

----------------------------------------------------------------------

Comment By: dooglus (dooglus)
Date: 2007-09-24 18:22

Message:
Logged In: YES 
user_id=1546005
Originator: NO

You mentioned that some other apps use the same 'red border' trick to show
when they're in a different mode.  Do these other apps work even in the
themes you have listed as not working with synfig's red border?

If so, which apps are you talking about?  Hopefully they're open source
apps so I can take a look and see what they're doing differently.

----------------------------------------------------------------------

Comment By: Genete (genete)
Date: 2007-09-24 17:14

Message:
Logged In: YES 
user_id=1874777
Originator: YES

The svn was 745 sorry.

The working themes are:

    * Resillience
    * LargePrint
    * LowContrastLargePrint
    * Glider
    * Mist (partially; the thick of the red border is a half)
    * LowContrast
    * LightHouseWhite
    * Raleight
    * Redmond
    * Simple
    * ThinIce 

The non working Themes are:
    * Silicon
    * Outdoors
    * LegacyHuman
    * IndustrialTango
    * Industrial
    * Human
    * HighContrastLargePrintInverse
    * HighContrastLargePrint
    * HighContrastInverse
    * HighContrast
    * Crux
    * ClearLooks

I haven't more control themes installed. The changes at window border and
icons don't affect to the red border.

More information at the discussion link. I think it is a waste time to
make more screen shots because simply the red border is shown or not. 

You're welcome.

----------------------------------------------------------------------

Comment By: dooglus (dooglus)
Date: 2007-09-24 16:56

Message:
Logged In: YES 
user_id=1546005
Originator: NO

Did you try other themes?  Do some work and others not work?  Can you give
a few examples of each?

Thanks.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1801220&group_id=144022

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to