From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mvt0m-00046G-0D for mharc-grub-devel@gnu.org; Thu, 08 Oct 2009 09:26:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mvt0j-000460-Gr for grub-devel@gnu.org; Thu, 08 Oct 2009 09:26:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mvt0e-00045K-Qe for grub-devel@gnu.org; Thu, 08 Oct 2009 09:26:24 -0400 Received: from [199.232.76.173] (port=35746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvt0d-00044b-OE for grub-devel@gnu.org; Thu, 08 Oct 2009 09:26:20 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:42189) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mvt0c-0003ik-Oe for grub-devel@gnu.org; Thu, 08 Oct 2009 09:26:19 -0400 Received: by pzk11 with SMTP id 11so4205965pzk.14 for ; Thu, 08 Oct 2009 06:26:17 -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=h7+t1dUdErpKmiaVNwG082ZRebjAKkTTmiGIoKEQ4TE=; b=q0bwb9HGbBP4QshQEUdUkh2M2LSv74reqB8rp7+lI3stIQBz74hr9SkRwK0b1nY5Q+ Vu7GyUTU26kSeX86+R5pvj6VcrHnE2mXqVJiLhs154Phnvv7qqFJ2fOGAaatOmxhDObV GUxdtr5FDtGFg9mie1J9A9FRUGfQglxYh7ct8= 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=nVLwhkHZADgvnqd2xaFrNWjCuxJOK3PBtXI72KH5Z+lBG0t/s+KdNYa6llZReM9zeI aV/7B67Z6cJDfc5jTC3FLG9XOiGXjaaihqaJ7gQFbDKHaQWjAW6ywXcKJFw/Sb0rvCWJ /bk/EUoURI+zluALB1CwnQ7mYri5tIrjBMfiA= MIME-Version: 1.0 Received: by 10.141.29.16 with SMTP id g16mr148964rvj.81.1255008377664; Thu, 08 Oct 2009 06:26:17 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Oct 2009 21:26:17 +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 13:26:26 -0000 On Thu, Oct 8, 2009 at 7:26 PM, Michal Suchanek wrote: > I am not sure this is the right approach. > > Style writers should be free to style any widget without special > support in the widget. Hi, The style property is parsed by the menu system, no special handling for individual widgets. > > If there is special styling property it should not refer to a > particular visual representation. They should specify the purpose of > the widget and the style should decide how widgets of that type are > visually realized. In order to support this, I can just add recursive handling to the style section, something like this: screen { panel { style=dialog }} style { frame { } padding { } dialog { style=frame,padding } } -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/