Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MvlRE-0002if-WC for mharc-grub-devel@gnu.org; Thu, 08 Oct 2009 01:21:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvlRD-0002iQ-1T for grub-devel@gnu.org; Thu, 08 Oct 2009 01:21:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvlR6-0002hq-GT for grub-devel@gnu.org; Thu, 08 Oct 2009 01:21:12 -0400 Received: from [199.232.76.173] (port=60559 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvlR6-0002hf-8n for grub-devel@gnu.org; Thu, 08 Oct 2009 01:21:08 -0400 Received: from mail-px0-f178.google.com ([209.85.216.178]:43939) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvlR5-00044N-SV for grub-devel@gnu.org; Thu, 08 Oct 2009 01:21:08 -0400 Received: by pxi8 with SMTP id 8so5574471pxi.27 for ; Wed, 07 Oct 2009 22:21:07 -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=gVgrpqbJECKlPZnAfXqDYwQw3VGPzlAYeCiZQm3iigs=; b=o78MsocjEbs2h+NQsunPaCqn6oyazB2Es/eSPJT91oMQIlLXoN3jtCwy7n48lDj+Jq WaMHMXi30Rf5WxqKrLaervtfZ6bZ1tfGLamGFmmuF2MtbQqL1rwzQW4LZE+CwCZ0Rwkl oXj7CKu2yWSsWClv2zYENpypxflyzJh47gM+M= 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=A3nSuSoMqJ2YaWJw513fh28+CjSHQFTvrB3b8K+R8kPaakcYNNonY+xvOH7AlHq6Rs reMMTmTrF9OVkoZI16eCvllzdrSO1ukzuodcRxZNFBEPcjYNKb3aOnT0nssttwViy5Iq 4lNcE50o357tlaic8swnqyeZsp+au/Bq8zEKg= MIME-Version: 1.0 Received: by 10.140.194.3 with SMTP id r3mr115531rvf.199.1254979267061; Wed, 07 Oct 2009 22:21:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Oct 2009 13:21:07 +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: Thu, 08 Oct 2009 05:21:15 -0000 Hi, Update: Rename position to extend, values are: first: extend the first child widget (near) all: extend all children widgets last: extend the last child widget (far), this is default value if not set For example: direction = left_to_right extend = all Add style support, each widget has style property, if it's set, menu would looks through the style section for additional property, for example: screen { background = "/menu/back.png,,blue" direction = bottom_to_top panel { height = 2 halign = extend style = text_border } panel { direction = left_to_right extend = all valign = extend halign = extend panel { valign = extend halign = extend style = text_border,padding term { width = 100% height = 100% } } panel { valign = extend halign = extend style = text_border,padding border_width = 2/0 border_height = 2/0 border_color = brown:red term { width = 100% height = 100% font = "Times Regular 18" } } } } style { text_border { top_left = ",,cyan/blue,#0x250F:,,light-gray/blue,#0x2554" top = ",tiling,cyan/blue,#0x2501:,,light-gray/blue,#0x2550" top_right = ",,cyan/blue,#0x2513:,,light-gray/blue,#0x2557" left = ",tiling,cyan/blue,#0x2503:,,light-gray/blue,#0x2551" right = ",tiling,cyan/blue,#0x2503:,,light-gray/blue,#0x2551" bottom_left = ",,cyan/blue,#0x2517:,,light-gray/blue,#0x255A" bottom = ",tiling,cyan/blue,#0x2501:,,light-gray/blue,#0x2550" bottom_right = ",tiling,cyan/blue,#0x251B:,,light-gray/blue,#0x255D" } padding { padding_top = 8/0 padding_bottom = 8/0 padding_left = 8/1 padding_right = 8/1 } term { color = "cyan/blue:light-gray/blue" } } panel that has "style = text_border,padding" would inherit the properties in text_border and padding section. If style is not set, it would search the section with the same class name (term for instance). -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/