From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mt8UQ-0003s8-1a for mharc-grub-devel@gnu.org; Wed, 30 Sep 2009 19:21:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt8UO-0003s0-Kf for grub-devel@gnu.org; Wed, 30 Sep 2009 19:21:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt8UM-0003ro-4r for grub-devel@gnu.org; Wed, 30 Sep 2009 19:21:39 -0400 Received: from [199.232.76.173] (port=54400 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt8UM-0003rl-1Z for grub-devel@gnu.org; Wed, 30 Sep 2009 19:21:38 -0400 Received: from mx20.gnu.org ([199.232.41.8]:61723) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mt8UL-0007vs-MK for grub-devel@gnu.org; Wed, 30 Sep 2009 19:21:37 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt8UK-000445-JL for grub-devel@gnu.org; Wed, 30 Sep 2009 19:21:36 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1404365fga.12 for ; Wed, 30 Sep 2009 16:21:34 -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; bh=0c9pH/BHwAosSnLNUAU7FW2ivI+iuL2Px6L/08N9GB4=; b=ZxzFLFyQ0j7MY3q4EoGnhpR8Org9VVTkXzGIe6Ac9c4LGZQpCgm0tMXjLqrL+vfQjL NXtz6nW36+kgsSkAqp36toW9ySvc7I1xvUgaSQKAdF0RnxtUQa2Yg0q1eUQ0RMT6f3bv 799LpWMYV/M3OQn3Lxp1HebW+elhtbw5j9Qfs= 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; b=JvAitXYW7U30cyhCxlx1IYxIdNp61Nai9ozoZNvfwsjyZgyKWHdVxBOCG6RFOoQJhI MnZeruhhPo9NUxNc7ZjadV9lQ6ideav3RYnAw1Q68Kr7MZSCFWW/DW7xRZfQLTeGyB0F Lrdsw/UWdZmgLRKdXgEAV94dKqIuqFWR30Yww= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.41.19 with SMTP id o19mr477280fgo.45.1254352894384; Wed, 30 Sep 2009 16:21:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2009 01:21:34 +0200 X-Google-Sender-Auth: 146ebf3fb9d0cd75 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 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: Wed, 30 Sep 2009 23:21:40 -0000 2009/9/30 Bean : > Hi, > > Update: > > Change the region structure, remove region tree as it's duplicate with > similar function of widget. > Change layout manger, only allow one dimension (direction = horizontal > or vertical). > Add margin_top, margin_left, margin_right, margin_bottom, > border_width, border_height, border_color property for panel With these its should be quite easy to put together some nice designs (or at least ones that hint at the nice designs that would be possible). Unfortunately it seems I will have less time for playing with this now. > Create transparent panel when background is null. It's nice that a transparent bitmap is not required for that. > Remove label widget, adds image and text widget, as the layout > function of label is duplicate with panel. It is not. A label can have focus (the whole icon+text widget) but panel cannot. It will be impossible to make both focused at once without special trickery. > Add selected state. You can specify the normal mode and selected mode > bitmap with something like this: > > top_left = "/menu/menu_tl.png,,black/cyan,#0x250F:/menu/select_tl.png,,black/green,/" > > Likewise, to set normal mode and selected mode color: > > color = "yellow:light-green" > > : is used to separate the two parts. > > The demo first shows normal state, then selected state, then return. I finally found utility in the screen widget. While panels should enforce that their content is not overlapped and is nicely and orderly aligned it should be possible to place panels or labels freely in the screen widget so that they can be positioned over particular places of a bitmap if desired. I hoped it would be possible to create custom layouts in lua but it's not necessary to use scripting in most cases and it's moved out of grub core now. Still I would want to see some way that would allow for creating arced panels or the like, eventually. Thanks Michal