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

Re: [MiNT] clarification of render_obj.c and gradient themes



Am 16.03.2012, 15:13 Uhr, schrieb Paul Wratt <paul.wratt@gmail.com>:

in render_obj.c at line 136 there is a #define in the middle of a
struct definition

struct theme
{
	struct xa_data_hdr h;

#define NAES3D			1
	unsigned long rflags;

I do not see any problem here (except that rflags is useless - does anyone know what REND_NAES3D might mean?).

also at the bottom of that same struct #if WITH_GRADIENTS there are
some (default?) gradients structs defined starting with:
 static struct xa_gradient menu_gradient =

the first seven (7) of which are also defined in each gradient file
(last 7 in each file), however the next three (3) structs are missing
from all gradient files:

The items are from me and are used in my gradient-files.

static struct xa_gradient box_gradient =
static struct xa_gradient box_gradient2 =
static struct xa_gradient text_gradient =

those last 3 should (also?) be in each gradient file for theming continuity

They are not used and thus not needed - XaAES stops reading at EOF. But if you want you can add them to the other gradient-files (disable with n_steps=-1).

Lastly, some clarification of individual gradients...

what are the ".._grey_gradient" used for in the interface?
 otop_grey_gradient
 utop_grey_gradient

I guess these are for everything in an object-tree that is not covered by any other gradient (please verify).

whats the applied (visual) definition of:
 menu_gradient = menu background ?

Main-menubar?

 sel_title_gradient = title bar when selected/clicked ?

Yep.

 sel_popent_gradient = menu item/entry ?

If selected.

 indbutt_gradient = (all) buttons ?

Not sure.

 sel_indbutt_gradient = button when selected (default?) ?

When selected.

 actbutt_gradient = active button ? (when clicked?)

Forgot ..

 popbkg_gradient = popup menu background ?

Yep - the box that pops up when a title is selected.

 box_gradient = (any) box area background ? (including window?)

Normal box, like a dialog - not related to any window.

 box_gradient2 = (different type of) box background ?

Big box (desktop-background).

 text_gradient = any text area/entry/box background ?

BOXTEXT, TEXT etc.

I'll put the resulting info (along with gradient method types and
options) into a doc that can then be used to build a (visual) config
tool, and help people understand how t change themes more thoroughly
(in the meantime)

Good. I thought it could help if someone would create an archive that contains all gradient-sources and makefile along with a compiler. That would enable people without compiler-knowlegde to just type a simple command to create a gradient-file and copy it into the XaAES-gradient-directory.


I thought I outlined the gradient methods in a text file that used to
be in "./xaaes/km.src/" but is no longer there. Only the IMG info from
that is present in the wiki, not the gradient info

Do you mean that one:

http://sparemint.org/cgi-bin/cvsweb/~checkout~freemint/doc/xaaes/themes.txt

--
Helmut Karlowski