From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mv9si-0001tk-IO for mharc-grub-devel@gnu.org; Tue, 06 Oct 2009 09:15:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv9se-0001sM-UL for grub-devel@gnu.org; Tue, 06 Oct 2009 09:15:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv9sa-0001qf-AD for grub-devel@gnu.org; Tue, 06 Oct 2009 09:15:04 -0400 Received: from [199.232.76.173] (port=60901 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv9sa-0001qX-6H for grub-devel@gnu.org; Tue, 06 Oct 2009 09:15:00 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:46530) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mv9sZ-0000jF-PF for grub-devel@gnu.org; Tue, 06 Oct 2009 09:14:59 -0400 Received: by pzk11 with SMTP id 11so2378371pzk.14 for ; Tue, 06 Oct 2009 06:14:58 -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 :content-transfer-encoding; bh=Q8lj/M0HDiyJhIeOAXHl+dTUI1uQ3gtYBsNCnmbHyNQ=; b=wtiUsAAkUNOJhVllajLjOpky3JsJ3K/4VsWVD5ocIJsGp6E329Xu3YUrReoIppCcaG ZnocjDFxhKA7YSrYqWBZEL44qD6nbzWtiDNs1SMAObPsnUVehLw+zb5cQY7CVeun2o6X XxB7LPKiEJlHsG7zncpNBns9eWWtz/2K5t07U= 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:content-transfer-encoding; b=O9B8dpmhwkAOhmoVIOb5RRXdkyUjGNdt7PsoO+j/XqMc2wciRFtEvecAkKhjLVYiwL Ekp5pHMRIYYuKJNcZnT5hONcmaMXgh0ZYdLXbe+d7AwZuRyFRpviq2IW5gy7E7poM1oH 7Bv+k98QvE4GGO4MnwJHZlwydwkzAl9+qI0Bw= MIME-Version: 1.0 Received: by 10.140.225.3 with SMTP id x3mr134160rvg.135.1254834898468; Tue, 06 Oct 2009 06:14:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Oct 2009 21:14:58 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 06 Oct 2009 13:15:05 -0000 On Tue, Oct 6, 2009 at 7:46 PM, Michal Suchanek wrote= : > 2009/10/6 Bean : >> Hi, >> >> Update: >> >> Support fill character in graphic mode, this can be used to draw rect >> box using ascii character, for example: >> >> =A0 =A0top_left =3D ",,cyan/blue,#0x250F:,,green/blue,#0x2554" >> =A0 =A0top =3D ",tiling,cyan/blue,#0x2501:,,green/blue,#0x2550" >> =A0 =A0top_right =3D ",,cyan/blue,#0x2513:,,green/blue,#0x2557" >> =A0 =A0left =3D ",tiling,cyan/blue,#0x2503:,,green/blue,#0x2551" >> =A0 =A0right =3D ",tiling,cyan/blue,#0x2503:,,green/blue,#0x2551" >> =A0 =A0bottom_left =3D ",,cyan/blue,#0x2517:,,green/blue,#0x255A" >> =A0 =A0bottom =3D ",tiling,cyan/blue,#0x2501:,,green/blue,#0x2550" >> =A0 =A0bottom_right =3D ",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. > > This is an interesting feature but I was more interested in > controlling the border in text mode independently of graphics mode. > > For example, I would want something like: > =A0- graphics: 3px outer space, 2px border, 16px inner space > (unfortunately there is no character unit usable because the character > size is different when measured horizontally and vertically) > =A0- text: single border using the box drawing characters, inner space > vertical 1character > > AFAIK this is not possible. Hi, Well, to achieve that, we need some special syntax to allow users to skip the border bitmaps optionally in graphic mode, perhaps something like this: top_left =3D "null,,cyan/blue,#0x250F:,,green/blue,#0x2554" >> 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. >> > > This sucks. Since overlap is not properly handled it should not happen. > > I am not sure what is the use of this property anyway. This can be used to implement the auto hide toolbar. We can use a hotkey to show/hide the bar. In this case, we definitely don't want to add the widget to the layout manger otherwise all widgets on screen would need to be resized after the show/hide operation. --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/