Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mvr8h-00089b-EZ for mharc-grub-devel@gnu.org; Thu, 08 Oct 2009 07:26:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mvr8c-00088k-Rn for grub-devel@gnu.org; Thu, 08 Oct 2009 07:26:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mvr8c-00088Y-2W for grub-devel@gnu.org; Thu, 08 Oct 2009 07:26:26 -0400 Received: from [199.232.76.173] (port=35731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvr8b-00088N-Mk for grub-devel@gnu.org; Thu, 08 Oct 2009 07:26:25 -0400 Received: from fg-out-1718.google.com ([72.14.220.159]:59327) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mvr8Y-0000aJ-D6 for grub-devel@gnu.org; Thu, 08 Oct 2009 07:26:24 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1297602fga.12 for ; Thu, 08 Oct 2009 04:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=g2Bnd/aLg9nYGqpho0BfT/2nusx33lQNgV9cQZ68gzI=; b=FtCpSzYZlCq1AhqLCMPmkyfyT3gnTko5c9xBpQmP51Nb0gLE2hFS/9vhs8fHg67IJc zd6EoQaS3ht0uxAg8rUheq1aobYeAujTdB2AU6mnFrXOtTpwOzNfuFhwWtGYNwMuifE9 jqKhcnbSS0AeQilGcYV5l9m11rBqVWfBjqVpc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Nkisj5dBxYeIZxTQqmjNBkrtCqCrggzE0c2/ODe4jZhRVXPYRJDtpBcXOBLRNzwR7h /Y+n2jteEeOyQqMFrigK/kl9kfgtUfvEm/1EJNJou4SqtzpLCpr4abzV1IxDngB0TbId Ow5v2teKx06ej0EH9JaYGmb17zoaE73szKc4I= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.235.14 with SMTP id i14mr1021340fgh.52.1255001180968; Thu, 08 Oct 2009 04:26:20 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Oct 2009 13:26:20 +0200 X-Google-Sender-Auth: 1766c58d9a5856b4 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 11:26:27 -0000 2009/10/8 Bean : > 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 se= t > > For example: > direction =3D left_to_right > extend =3D 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 { > =C2=A0background =3D "/menu/back.png,,blue" > =C2=A0direction =3D bottom_to_top > > =C2=A0panel { > =C2=A0 =C2=A0height =3D 2 > =C2=A0 =C2=A0halign =3D extend > =C2=A0 =C2=A0style =3D text_border > =C2=A0} > > =C2=A0panel { > =C2=A0 =C2=A0direction =3D left_to_right > =C2=A0 =C2=A0extend =3D all > =C2=A0 =C2=A0valign =3D extend > =C2=A0 =C2=A0halign =3D extend > > =C2=A0 =C2=A0panel { > =C2=A0 =C2=A0 =C2=A0valign =3D extend > =C2=A0 =C2=A0 =C2=A0halign =3D extend > =C2=A0 =C2=A0 =C2=A0style =3D text_border,padding > > =C2=A0 =C2=A0 =C2=A0term { > =C2=A0 =C2=A0 =C2=A0 =C2=A0width =3D 100% > =C2=A0 =C2=A0 =C2=A0 =C2=A0height =3D 100% > =C2=A0 =C2=A0 =C2=A0} > =C2=A0 =C2=A0} > > =C2=A0 =C2=A0panel { > =C2=A0 =C2=A0 =C2=A0valign =3D extend > =C2=A0 =C2=A0 =C2=A0halign =3D extend > =C2=A0 =C2=A0 =C2=A0style =3D text_border,padding > =C2=A0 =C2=A0 =C2=A0border_width =3D 2/0 > =C2=A0 =C2=A0 =C2=A0border_height =3D 2/0 > =C2=A0 =C2=A0 =C2=A0border_color =3D brown:red > > =C2=A0 =C2=A0 =C2=A0term { > =C2=A0 =C2=A0 =C2=A0 =C2=A0width =3D 100% > =C2=A0 =C2=A0 =C2=A0 =C2=A0height =3D 100% > =C2=A0 =C2=A0 =C2=A0 =C2=A0font =3D "Times Regular 18" > =C2=A0 =C2=A0 =C2=A0} > =C2=A0 =C2=A0} > =C2=A0} > } > > style { > =C2=A0text_border { > =C2=A0 =C2=A0top_left =3D ",,cyan/blue,#0x250F:,,light-gray/blue,#0x2554" > =C2=A0 =C2=A0top =3D ",tiling,cyan/blue,#0x2501:,,light-gray/blue,#0x2550= " > =C2=A0 =C2=A0top_right =3D ",,cyan/blue,#0x2513:,,light-gray/blue,#0x2557= " > =C2=A0 =C2=A0left =3D ",tiling,cyan/blue,#0x2503:,,light-gray/blue,#0x255= 1" > =C2=A0 =C2=A0right =3D ",tiling,cyan/blue,#0x2503:,,light-gray/blue,#0x25= 51" > =C2=A0 =C2=A0bottom_left =3D ",,cyan/blue,#0x2517:,,light-gray/blue,#0x25= 5A" > =C2=A0 =C2=A0bottom =3D ",tiling,cyan/blue,#0x2501:,,light-gray/blue,#0x2= 550" > =C2=A0 =C2=A0bottom_right =3D ",tiling,cyan/blue,#0x251B:,,light-gray/blu= e,#0x255D" > =C2=A0} > > =C2=A0padding { > =C2=A0 =C2=A0padding_top =3D 8/0 > =C2=A0 =C2=A0padding_bottom =3D 8/0 > =C2=A0 =C2=A0padding_left =3D 8/1 > =C2=A0 =C2=A0padding_right =3D 8/1 > =C2=A0} > > =C2=A0term { > =C2=A0 =C2=A0color =3D "cyan/blue:light-gray/blue" > =C2=A0} > } > > panel that has "style =3D 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). > I am not sure this is the right approach. Style writers should be free to style any widget without special support in the widget. 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. Thanks Michal