Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MvkUd-0002AB-KS for mharc-grub-devel@gnu.org; Thu, 08 Oct 2009 00:20:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvkUa-00027T-25 for grub-devel@gnu.org; Thu, 08 Oct 2009 00:20:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvkUV-00022s-9b for grub-devel@gnu.org; Thu, 08 Oct 2009 00:20:39 -0400 Received: from [199.232.76.173] (port=60443 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvkUV-00022j-6u for grub-devel@gnu.org; Thu, 08 Oct 2009 00:20:35 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:55657) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvkUU-0004Kc-Kx for grub-devel@gnu.org; Thu, 08 Oct 2009 00:20:34 -0400 Received: by pzk11 with SMTP id 11so3898444pzk.14 for ; Wed, 07 Oct 2009 21:20:33 -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=OKWlzCWvkVsgo6z5hbr09ONMMNaXSNIXy6FpYa6G0Q8=; b=eL3LE50Q0ieRKoib96rGvq8FH0RrpFGJkKmxtp7wZeeIwNMrPXy7emkBUKGGGhLPU1 tWMCuwWZRnK+lOVuOkax2d6hBx5lMZcVgzlRdNbSmlADxTl+ep5kEdr99B9olaQGICT4 Jb02hQotOKHGSBquOdKXynaBwawvjVAgWtN+k= 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=eKYWsY47u0On6OoSWFoH987pBjvlI+/oF0pRNdJvaZRBwx962A6uURgCjPBddKXQhB 2x2krRap8B/Dj1B54bSUSv1ZekXDXJfVWBz6zNeOXo4+yKqma+bQTz2T6d0IaIKAo5jc 7zbeeoB/xm+Em07moXqFFkQ5k6f8G1ELNKTqY= MIME-Version: 1.0 Received: by 10.140.140.2 with SMTP id n2mr120573rvd.36.1254975633849; Wed, 07 Oct 2009 21:20:33 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Oct 2009 12:20:33 +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 04:20:41 -0000 On Thu, Oct 8, 2009 at 5:13 AM, Michal Suchanek wrote: > 2009/10/7 Michal Suchanek : >> 2009/10/7 Bean : >>> On Wed, Oct 7, 2009 at 4:54 PM, Michal Suchanek wrote: >>>> This might make switching the direction of a panel more difficult but >>>> there may be other issues. Either way the method with margin does not >>>> work either. >>> >>> Hi, >>> >>> The latest version should work now, although there is a small issue, >>> the margin_*, padding_* property only works for panel widget for now, >>> so you should replace padding_* of the term with margin_* of parent >>> panel. > > I tired the latest code and there is still some alignment issue. > > In graphics mode the top and bottom part of border is missing. > > The problem with zero width panels is fixed but a layout with a > "toolbar" does not really work for me. Hi, Some issue of the config: 1, Don't add the c suffix , now default unit is character, just use number. Also, if you set height/width directly, it should include the border size, so minimum value is 2 (for top and bottom rect). 2, You should use far position as you want to extend the widget at the far side (top). 3, border_width only draws left/right border, to draw top/bottom border, you need to add border_height as well. This config should work: screen { background = "/menu/back.png,,blue" direction = bottom_to_top position = far panel { height = 2 halign = extend 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" } panel { direction = left_to_right position = center valign = extend halign = extend panel { valign = extend halign = extend 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_top = 8/0 padding_bottom = 8/0 padding_left = 8/1 padding_right = 8/1 term { width = 100% height = 100% color = "cyan/blue:light-gray/blue" } } panel { valign = extend halign = extend 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" border_width = 2/0 border_height = 2/0 border_color = brown:red padding_top = 8/0 padding_bottom = 8/0 padding_left = 8/1 padding_right = 8/1 term { width = 100% height = 100% font = "Times Regular 18" color = "cyan/blue:light-gray/blue" } } } } -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/