From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MvU9s-0008QC-8r for mharc-grub-devel@gnu.org; Wed, 07 Oct 2009 06:54:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvU9p-0008Px-SH for grub-devel@gnu.org; Wed, 07 Oct 2009 06:54:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvU9l-0008P1-BT for grub-devel@gnu.org; Wed, 07 Oct 2009 06:54:09 -0400 Received: from [199.232.76.173] (port=40847 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvU9l-0008Or-6l for grub-devel@gnu.org; Wed, 07 Oct 2009 06:54:05 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:33384) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvU9k-0004LM-SG for grub-devel@gnu.org; Wed, 07 Oct 2009 06:54:05 -0400 Received: by pxi40 with SMTP id 40so5062844pxi.24 for ; Wed, 07 Oct 2009 03:54:04 -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; bh=Dax4VMEQaxHQQIevEBk1vFsgEunJMVNlFPuHQaSDYyY=; b=LXWfEbL/IB+axZiNe6SDx38rlMGdMhK39tdDLZ0n+kWRbvlamVBYA588kwJE9UveRn 83lGxxJkYouWWyLQPIhsTdF/OPLqau/E+ecaslxWiK9l7KheLE1qZ9Cz/bSw/cAwAadM yf4pPYU1FvE9l+RT1Hlfa5ao9Q/ADFJbIGU8k= 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; b=XZPQWrszdKevp9kaE6JglxJyoTWyO5Zx8LScWge0Z0HALMKb24pFqsFLbg47uz1LRD HUw/f+PEFux33AbP/D2+M60w+GejGMAuVLPivxXPyT6kjsWMldGb+RTHk+d1kRMXAA7M NUDZwRKwKMBOn9gbVxtlE4oLoTlzhNAKTvFm4= MIME-Version: 1.0 Received: by 10.140.225.3 with SMTP id x3mr404262rvg.135.1254912844114; Wed, 07 Oct 2009 03:54:04 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Oct 2009 18:54:04 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 07 Oct 2009 10:54:10 -0000 Hi, Update: Support align in both direction, for example, this works now: screen { direction = left_to_right position = center panel { valign = extend halign = extend } panel { valign = extend halign = extend } } } The distributed of extra space is based on direction and position: direction = left_to_right position = near space is added to the rightmost widget direction = left_to_right position = center space is distributed evenly direction = left_to_right position = far space is added to the leftmost widget Remove hspace and vspace, as they're duplicated with margin properties, add space property which is the reserved space between two widgets. Image now support the following modes: top_left = "/menu/menu_tl.png,,black/cyan,#0x250F:/menu/select_tl.png,,black/green,#0x2554" Load bitmap in graphic mode, use box char in text mode, top_left = ",,black/cyan,#0x250F:,,black/green,#0x2554" Use box char in both graphic and text mode top_left = "/menu/menu_tl.png:/menu/select_tl.png" Load bitmap in graphic mode, empty in text mode top_left = "none,,black/cyan,#0x250F:none,,black/green,#0x2554" Use box char in text mode, empty in graphic mode Text widget support new property gfx_text, which can be used to displayed different text in graphic and text mode: text { text = "text mode" gfx_text="gfx mode" } Fix a few issue in edit/term widget, now it support the pageup/pagedown key, and backspace at the beginning of line would merge the current line with previous one. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/