Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mt5EH-0007GJ-Jl for mharc-grub-devel@gnu.org; Wed, 30 Sep 2009 15:52:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt5EF-0007E8-DX for grub-devel@gnu.org; Wed, 30 Sep 2009 15:52:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt5EA-00078y-JX for grub-devel@gnu.org; Wed, 30 Sep 2009 15:52:46 -0400 Received: from [199.232.76.173] (port=36783 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt5EA-00078p-BZ for grub-devel@gnu.org; Wed, 30 Sep 2009 15:52:42 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:53788) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt5E9-00054k-NO for grub-devel@gnu.org; Wed, 30 Sep 2009 15:52:41 -0400 Received: by pzk11 with SMTP id 11so4336891pzk.14 for ; Wed, 30 Sep 2009 12:52:40 -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=a1G6/q25jRka9hGgK/wY6TY+lQqi9f8O+cO1iDkstnU=; b=CV1ED3j5K2dqQ3E1jJDkWdvDwwCpNi7NdQd49qZq+iVGTCMEK94NduEYSeNnpuoirQ KWdXGWpCuSdCtwNKpBrhDDjpWvotoRkd3vAnGKZ9CxAE4NMNJLjuHD74V80Jup0iLgJZ 9D0PBaB6j0FcEN4YkRFYHQ41eGTgoYgiDJ3BI= 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=w93STyIFxc0/8rbncBMdlSBkvD0SEosoJzc8X3fjidplDqru242WKL3d/pFFfAntRH 8oYm67pI0V9cYhf2GN7uH15XuF8kkteDcKToUhJdBUHxPXI+cemuoJZN7xuXZ2RXjO8H EuO2aaldROKUH7ybnRV7FxM4wPnJotDUIhI0g= MIME-Version: 1.0 Received: by 10.141.18.9 with SMTP id v9mr11393rvi.89.1254340360375; Wed, 30 Sep 2009 12:52:40 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2009 03:52:40 +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, 30 Sep 2009 19:52:47 -0000 Hi, Update: Change the region structure, remove region tree as it's duplicate with similar function of widget. Change layout manger, only allow one dimension (direction = horizontal or vertical). Add margin_top, margin_left, margin_right, margin_bottom, border_width, border_height, border_color property for panel Create transparent panel when background is null. Remove label widget, adds image and text widget, as the layout function of label is duplicate with panel. Add selected state. You can specify the normal mode and selected mode bitmap with something like this: top_left = "/menu/menu_tl.png,,black/cyan,#0x250F:/menu/select_tl.png,,black/green,/" Likewise, to set normal mode and selected mode color: color = "yellow:light-green" : is used to separate the two parts. The demo first shows normal state, then selected state, then return. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/