Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mv7uR-0000ni-EG for mharc-grub-devel@gnu.org; Tue, 06 Oct 2009 07:08:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv7uN-0000mG-Li for grub-devel@gnu.org; Tue, 06 Oct 2009 07:08:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv7uH-0000j7-TC for grub-devel@gnu.org; Tue, 06 Oct 2009 07:08:42 -0400 Received: from [199.232.76.173] (port=43076 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv7uH-0000j1-O7 for grub-devel@gnu.org; Tue, 06 Oct 2009 07:08:37 -0400 Received: from mail-px0-f178.google.com ([209.85.216.178]:64941) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mv7uH-0005lj-94 for grub-devel@gnu.org; Tue, 06 Oct 2009 07:08:37 -0400 Received: by pxi8 with SMTP id 8so3857845pxi.27 for ; Tue, 06 Oct 2009 04:08:35 -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=WXGPsYPChTooPcNed6DjyYYfEl8jjltJo/w+gqXTTzM=; b=SsoXUj7bJNyXu77QaKsF3YR7m8vQVxIdJOhWhDE+1lDAanYu1Pbwy4/stKK7o34/DV pO3q/7aoNy1LmD/t9d61yMSwBa6q0WC4fS+yq9v93+QR1i4gjKhgM+wOgpE56y3Gkgz6 P5s4e2N3n/6jLz2iHWIL0kT9DdXscvOGQAdbQ= 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=ptziPBqyF0MvhjIgyvdsNugxdXDT71E5DV9J3CLlSCS68qrAIODCjwrMJKkgZ7fdKJ bsEXhKRo3tw8Nibagciq3ylPp4nv1o6X+nKcZ0LWVbFy+XENKirdvHR1V/Rvnuv6x1nN y22IWdvbbvayr0IL+twWm9+WF8qmnT7+pGCYQ= MIME-Version: 1.0 Received: by 10.140.165.8 with SMTP id n8mr124995rve.289.1254827315772; Tue, 06 Oct 2009 04:08:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Oct 2009 19:08:35 +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: Tue, 06 Oct 2009 11:08:45 -0000 Hi, Update: Support fill character in graphic mode, this can be used to draw rect box using ascii character, for example: top_left = ",,cyan/blue,#0x250F:,,green/blue,#0x2554" top = ",tiling,cyan/blue,#0x2501:,,green/blue,#0x2550" top_right = ",,cyan/blue,#0x2513:,,green/blue,#0x2557" left = ",tiling,cyan/blue,#0x2503:,,green/blue,#0x2551" right = ",tiling,cyan/blue,#0x2503:,,green/blue,#0x2551" bottom_left = ",,cyan/blue,#0x2517:,,green/blue,#0x255A" bottom = ",tiling,cyan/blue,#0x2501:,,green/blue,#0x2550" bottom_right = ",tiling,cyan/blue,#0x251B:,,green/blue,#0x255D" It draws double rect box when selected, single rect box when not selected. Works both in text and graphic mode. To draw a solid color rect, use #0 as the fill character, as in: background = ",,blue,#0" Adjustment to the layout manager, now it support the following properties: direction: Same as before, value can be left_to_right, right_to_left, top_to_bottom (default) and bottm_to_top. position: This indicate how extra space are distributed among children widgets: near: pack the widgets at the near end (for example, in left_to_right, near is left) center: space are distributed evenly among widgets far: pack the widgets at the far end (for example, in left_to_right, far is right) valign, halign: Now align property control the position of current widget, instead of its children, each have four values: left/top center right/bottom extend - Extend the widget to the full width/height of parent. margin_left, margin_right, margin_top, margin_bottom This properties set the inner space reserved by the panel padding_left, padding_right, padding_top, padding_bottom This set the outbound box of the panel attach_left, attach_right, attach_top, attach_bottom Stick the widget to one of the border of parent, once this is set, the widget is no longed controlled by the layout manager and therefore can overlap with other widget. The demo menu.zip is updated for the new properties. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/