Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MqXUK-0000Et-8E for mharc-grub-devel@gnu.org; Wed, 23 Sep 2009 15:26:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqXUI-0000Dz-GA for grub-devel@gnu.org; Wed, 23 Sep 2009 15:26:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqXUE-0000CU-Qr for grub-devel@gnu.org; Wed, 23 Sep 2009 15:26:50 -0400 Received: from [199.232.76.173] (port=48636 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqXUE-0000CO-Ix for grub-devel@gnu.org; Wed, 23 Sep 2009 15:26:46 -0400 Received: from mail-pz0-f183.google.com ([209.85.222.183]:39617) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqXUE-0003Zq-9s for grub-devel@gnu.org; Wed, 23 Sep 2009 15:26:46 -0400 Received: by pzk13 with SMTP id 13so817017pzk.25 for ; Wed, 23 Sep 2009 12:26:44 -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=KsWDPZ1DoCEFODSO/WaT+SyDuCgP/4dU5ZNJ+AbSiz4=; b=cs2dmv4o1XbszyZhEUNSaVkT/u2GIhiucMGlSJOqhKezfOg+AvFJn74KPUJqCMl5rR 5O0qQ7kehxEM9lGm7lsyG3uhwlv9VBGN0cB93jXomWWvMrm3NC1RFxaAA2wEdz+xNiBm P8G3SiA2HmqmJuNx1+7+jcn1BAUT47ZM1WY5w= 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=G666SndfTwtDD/hmM4U20JdviwDsjXG0zrhF9xg/0N4IIs/QvzLB9h5fOEU0sbZMDT f/xUfTCNCNgGo2kCPopr40rdLN0vlJtLkml3qhZLmBPQkvlgqrmOkvX7D7+5wiz1CIg5 E1xzDASRo5+2BDNZZUUu302Sq4CtcBDWn20Ec= MIME-Version: 1.0 Received: by 10.140.148.19 with SMTP id v19mr163238rvd.261.1253734004338; Wed, 23 Sep 2009 12:26:44 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Sep 2009 03:26:44 +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, 23 Sep 2009 19:26:50 -0000 Hi, Update: Add label widget Simple layout manager for panel widget. The resource file for new demo is uploaded at: http://grub4dos.sourceforge.net/menu.zip Here is the theme file for new demo: screen { panel { x = "5" y = "5" top_left = "/menu/menu_tl.png,,black/cyan/#0x250F" top = "/menu/menu_t.png,tiling,black/cyan/#0x2501" top_right = "/menu/menu_tr.png,,black/cyan/#0x2513" left = "/menu/menu_l.png,tiling,black/cyan/#0x2503" right = "/menu/menu_r.png,tiling,black/cyan/#0x2503" bottom_left = "/menu/menu_bl.png,,black/cyan/#0x2517" bottom = "/menu/menu_b.png,tiling,black/cyan/#0x2501" bottom_right = "/menu/menu_br.png,tiling,black/cyan/#0x251B" background = "/menu/back.png,,#808080/cyan" label { color = "black/cyan" image = "/menu/debian.png,,blue" title = "Hello Debian" spacing = 1 } label { color = "yellow/cyan" image = "/menu/ubuntu.png,,blue" title = "Hello Ubuntui (long)" spacing = 1 } label { color = "blue/cyan" image = "/menu/gentoo.png,,blue" title = "Hello Gentoo" spacing = 1 } } } The x/y/width/height property is not set in label widget, they'll be calculated automatically by panel. The width/height property of panel is also skipped, which means using the minimum width/height that contains child widgets. The full properties of these widgets are: screen: background - background image panel: background - background image top_left. top, top_right, left, right, bottom_left, bottom, bottom_right - image for borders label font - font name color - font color image - icon image title - title text spacing - space between image and title -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/