Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mvsj5-0000qI-Gg for mharc-grub-devel@gnu.org; Thu, 08 Oct 2009 09:08:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mvsj3-0000pY-Sr for grub-devel@gnu.org; Thu, 08 Oct 2009 09:08:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mvsiz-0000m7-5l for grub-devel@gnu.org; Thu, 08 Oct 2009 09:08:09 -0400 Received: from [199.232.76.173] (port=54767 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvsiz-0000ls-2B for grub-devel@gnu.org; Thu, 08 Oct 2009 09:08:05 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:63603) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mvsiw-0000X9-2d for grub-devel@gnu.org; Thu, 08 Oct 2009 09:08:04 -0400 Received: by pxi40 with SMTP id 40so6247229pxi.24 for ; Thu, 08 Oct 2009 06:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=QJX7MTgxuaNgqaz6fEaOC7VH8NdtcCYZ8wKEm954SP0=; b=rxXJyNSAh3Tn0K1ZUuFRmD/sxpP3jKSFibqNlxvApwlC9WjLDWZA8eF10lZZSsvkFr R2f80AXYrEcf1Moa2cIWsaxaMcyefMe4FVArP5seicuA0+tnKrDsKb0LgSk71Ih57v0k /wn+1eep5xtH1QYxqI9LPpiaNlwBHYM/IJSWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=X1Fj+n1n4NjvBiqo+Sxickf0zJbMofCaXUZKNiy5imkprCc8F+gLP/sOxVZtBQ9owX aT/7mh9ScS+HeSX+1PsW5NwCdvRaUneuw5crFRCjAARw0lWpuSlG5HbutXZXmuAXGU6h aB5yfLwckCt9rnr/IpxAWIyfPmjbvZQ0jP0o8= MIME-Version: 1.0 Received: by 10.141.34.20 with SMTP id m20mr141624rvj.120.1255007279761; Thu, 08 Oct 2009 06:07:59 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Oct 2009 21:07:59 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2009 13:08:10 -0000 On Thu, Oct 8, 2009 at 7:18 PM, Michal Suchanek wrote= : >> 2, You should use far position as you want to extend the widget at the >> far side (top). > > This dependency is a problem. The rules for creating a working layout > are then complicated and hard to understand. > > Also I have no idea why I should set position on the screen, it is > never positioned. Hi, For example, if parent width=3D10, two children, width=3D4, then the extend property decide how to assign the extra 2 space: extend=3Dfirst, space is added to first widget, which is 6,4 extend=3Dall, space is distributed to alls widget, which is 5,5 extend=3Dlast, space is added to last widget, which is 4,6 This is different than the halign property of children, which indicate how it uses the extra space, for example, when extend=3Dfirst, the first widget gets two extra space, halign can be: left: starts at 0, width=3D4 center: starts at 1, width=3D4 right: starts at 2, width=3D4 extend: starts at 0, width=3D6 > >> >> 3, border_width only draws left/right border, to draw top/bottom >> border, you need to add border_height as well. > > That's quite surprising. In other layout systems I have seen so far there= is > =A0- border width (of all borders) > =A0- border top/left/bottom/right width (for particular borders, > sometimes not available) > > It would be useful to have aliases for margin and padding so that > vertical./horizontal/all can be set in one assignment. Right, I can use border_top/border_left/border_right/border_bottom to control four different borders, if users want to set all of them at the same time, he can use border_size. --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/