[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] FlowView vertical margin is 0?
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] FlowView vertical margin is 0?
- From: "James Harkins" <jamshark70@xxxxxxxxx>
- Date: Mon, 8 Dec 2008 11:18:41 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=oOf37wpGtg58u0rRmJW9FO9UBhh3JFlofmwM9ksRqNM=; b=tzlaSlCRw2Rzxj90Pn0jYKRmnpkFVwyL3DPuOYxWW3JP5xNlzXq2vp1xF9XbPbfYYC SHDEubbSHscMYrJNLJSuWAoR0Mliz9rRC075SqanydEubCgTWTA9R4Gkop2XmjuDwGgE KGPbMq4ExJhAV4tBvl0IRi+vvuUDvcl0xwiPc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TAAT1RSZIgJzk8nX4W17RGqWlxlxqY9gSANBPbZvfHR5+V20mbnv1YlKeUAfVtlQrj xXZilmfflMOZh86WYTb7A+fmtrsQCXAnEnVLcO3Y4XncjWtZjrNswGRFSNxopwPuqbge Py45gQ0to/9QNAhW0lLfSVJiyWfQ9L5iRwLGA=
- In-reply-to: <493D2FEA.40405@xxxxxxxx>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <608687AE-C1EE-44E5-A2C0-BED0021F4163@xxxxxxxxxxxxxxxxx> <493D2FEA.40405@xxxxxxxx>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
On Mon, Dec 8, 2008 at 9:32 AM, jostM <sc3@xxxxxxxx> wrote:
> Well FlowView is part of CrucialLib, and I think that the new look of all
> the automatic gui stuff depends an that setting. not sure though (can't test
> it now) . I had some trouble with the margin at first too, but felix really
> did a fantastic remake of his gui, so ....
Yes, I agree, the new gui code on his side is cleaner and a lot more
robust. I'm raising only a minor, minor cosmetic point.
It's easier to see if the FlowView has a background color. To me it
looks a little off to have the views crammed right up against the top,
e.g.
w = GUI.window.new("Demo", Rect(10, 50, 200, 160)).front;
w.view.decorator = FlowLayout(w.view.bounds);
GUI.staticText.new(w, Rect(0, 0, 190, 50)).string_("spacer").align_(\center);
f = FlowView(w, Rect(0, 0, 190, 100)).background_(Color.gray);
GUI.button.new(f, Rect(0, 0, 100, 20))
.states_([["OK"]]);
// vs. with a vertical margin, looks cleaner to me
w = GUI.window.new("Demo", Rect(10, 50, 200, 160)).front;
w.view.decorator = FlowLayout(w.view.bounds);
GUI.staticText.new(w, Rect(0, 0, 190, 50)).string_("spacer").align_(\center);
f = FlowView(w, Rect(0, 0, 190, 100), margin: 2@2).background_(Color.gray);
GUI.button.new(f, Rect(0, 0, 100, 20))
.states_([["OK"]]);
I could just go thru every use of FlowView in my lib and explicitly
state the margin. But I tend to think the default behavior should be
aesthetically pleasing / what users would expect.
hjh
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/