Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MsEeg-0003ly-QX for mharc-grub-devel@gnu.org; Mon, 28 Sep 2009 07:44:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsEee-0003k2-Gd for grub-devel@gnu.org; Mon, 28 Sep 2009 07:44:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsEea-0003fB-Rk for grub-devel@gnu.org; Mon, 28 Sep 2009 07:44:32 -0400 Received: from [199.232.76.173] (port=58226 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsEea-0003et-E9 for grub-devel@gnu.org; Mon, 28 Sep 2009 07:44:28 -0400 Received: from mx20.gnu.org ([199.232.41.8]:19051) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsEeZ-0006gD-Jr for grub-devel@gnu.org; Mon, 28 Sep 2009 07:44:27 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsEeX-00045u-UD for grub-devel@gnu.org; Mon, 28 Sep 2009 07:44:26 -0400 Received: by fxm1 with SMTP id 1so3469227fxm.31 for ; Mon, 28 Sep 2009 04:44:23 -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=MX546bxXXDjOc0GOvo5gGBVzc5VTOJJw4uDJ9O8JFxg=; b=Z6TdHrfKtnC391iUY6cOE4L1w9IoqisljdFDQ9ppwitXhKwYJKJbtmtcpnHFlDYzfO z981AzJevgU+Js4S7bd+Cia1Qy3eHATpK62VSWP8kWA/dVszRX/g724TKASMJmqlq2Sz Z8MLCQrxEZSUjkjLwQYCHdHjl3v2riHscYvWM= 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=t64ccv9aGMY10T3+a3ryeSbRHC70LkAm9fx3W0mnJIOjsuqb1zhDLzzAW7fbSuU+FE p2Rmj4aqDNAwlGnYLM7IfGKzxdRYi1X6MsfMIoAkVFQHbNB/lqlifJW0sHRBzAf25Zw0 15Vhu5tv7Ziswrs5hzjTzLHA9L9tH7/klPstc= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.208.2 with SMTP id f2mr3246660fgg.16.1254138262803; Mon, 28 Sep 2009 04:44:22 -0700 (PDT) In-Reply-To: References: Date: Mon, 28 Sep 2009 13:44:22 +0200 X-Google-Sender-Auth: 936c3f6408b32af3 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 mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: Mon, 28 Sep 2009 11:44:32 -0000 2009/9/28 Bean : > On Mon, Sep 28, 2009 at 5:47 PM, Michal Suchanek wr= ote: >>> There are viewport function in region, available in graphic and text >>> mode. I can use it to limit the widget. >> >> No need for another viewport, we have one in video/fb already. > > But that only works in graphic mode, it we want the ui to be portable > between text and graphic mode, we need to use region function. Or implement a viewport for text which can be undoubtedly used outside of m= enu. > >> OK, so please consider a one pixel border around a widget (it would be >> nice if this was available without supplying a bitmap but you can >> simulate it by creating a 1x1px bitmap in the widget foreground color >> and supplying it to all of top_left/top/../bottom properties). >> >> This layout sucks because there is no space around the border. If you >> look at any newspaper, magazine, word processor, whatever has text >> with borders you can see that the borders are used to separate >> specific piece of text and there is always space on each side of the >> border larger than the spacing of the font. The letters aren't glued >> to the border because the border is used to separate two pieces of >> text, not glue them together. > > I can add border_width/border_height/border_color property that draw a > extra rect around the top/left/bottom/right bitmap. > >> I want the panel to be in all corners at once, with a uniform space >> between the edge of the screen and the panel. I want the same mechanic >> to be usable when I want non-uniform space such as when fitting the >> panel to a background bitmap. > > I see, that can be archived, we can use negative value of width/height > to indicate subtraction from parent's width/height, perhaps something > like this: > > panel > { > =C2=A0vmargin =3D 2 > =C2=A0hmargin =3D 2 > =C2=A0width =3D -4 > =C2=A0height =3D -4 > } OK, and instead of negative width/height and vmargin/hmargin (which should be actually on both sides anyway) can't we just have margin-to, margin-bottom, margin-left, margin-right so that the naming and values make some sense? > > This leaves a 2 character size at the borders. > >> How does it determine the size of the rect if the image is not loaded? >> Shouldn't it be 0x0? > > Actually the size of rect is 1c x 1c. This is used for > top/left/bottom/right bitmap property. In graphic mode, it loads the > bitmap, in text mode, it replace it with a 1 x N rect box with ascii > fill character. That's quite odd way of doing this. What we actually have is a rect, top-left rect, top-rect .. so there's no reason they should be the same size, and they actually aren't only the corner rects and plain rect are 1x1, the side rects are 1xN. Isn't there a more straightforward way of doing this? Perhaps add a property for borders that can hold a bitmap and a simple style (single,double), and defaults to single in text if only a bitmap is specified. > >> Because the generic case creates only poor layouts and adds needless >> complexity to the solution. > > Some uses for columns: > > Dialog boxes. For example, in password input, we have widget label > Name, edit box, label Password, edit box, etc. We can wrap a panel > around each pair, but setting columns =3D 2 is easier. Not that much, really. And wrapping a panel around each pair is more robust, the panel should hold them together even if another element is added. > > If we use a background image like this: > > http://www.kde-look.org/content/preview.php?preview=3D1&id=3D76173&file1= =3D76173-1.png&file2=3D76173-2.png&file3=3D76173-3.png&name=3DGentoo+GFXboo= t+Theme+Set > > The menu is limited to a small box. If we use icons to represent boot > items, then only a few icons can be shown in single row/single column > setup. Using columns can maximize space usage, it also has the > iphone's look and feel. What icons are you going to use for distinguishing boot items? You can either put very few icons there so they will very well fit a single row or single column or you have many icons but then they aren't distinguishing and you can use them at most as bullets for the kernel list. This isn't iPhone so there is no use in making grub look like one. You can't get 20 distinct things you can do with grub so you can't have 20 (4x5) functional icons. You can add dummy icons in your theme if you insist. And I'm sure that even on an iPhone if you enter an application that shows ie your bookmarks or playlist it does not show the entries as icon view but as plaintext list, otherwise you could not tell what is what. Thanks Michal