Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MqVMm-0001dL-UD for mharc-grub-devel@gnu.org; Wed, 23 Sep 2009 13:10:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqVMk-0001d8-F4 for grub-devel@gnu.org; Wed, 23 Sep 2009 13:10:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqVMf-0001bg-HB for grub-devel@gnu.org; Wed, 23 Sep 2009 13:10:53 -0400 Received: from [199.232.76.173] (port=35381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqVMf-0001bb-88 for grub-devel@gnu.org; Wed, 23 Sep 2009 13:10:49 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:49034) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqVMe-0002BM-Ta for grub-devel@gnu.org; Wed, 23 Sep 2009 13:10:49 -0400 Received: by pxi40 with SMTP id 40so745982pxi.24 for ; Wed, 23 Sep 2009 10:10:48 -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=eKoq7QLRwsXnXp9ovVhaFmv/eXcNgsx6fSF4edz4Xp4=; b=NEJMLiVQl8Sl2YmeXN8lnpLpfnRRYxXvBwVr4vvAO60q2SVk/mf7hgSbgGlV3hAjw+ nfQ1/FohfPiDMxrpkkFMHnnBP/sPBCjvhz6A3LQRSvWlVyh4Mfe3o5AEsbee1hekWAvK LHscSYLXhWFwlrwxW1RUDVXLdsyIUbyaIq5Mc= 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=ejrrgs6dzjXhZKiO3+zljGiXmfxyNVm7hhyeARo3AdAMCzHffZsodEluDq7YkIwKjq A/DL9XsFiBxtn6prqxEpKlanSGLBGcrHIbJr38EvlJPDzwXSrivwJRYZk5iZLRu+tsVf ckNOXkvvLDmefQ1rxY5iEGJJuWs/OnqLDMAaY= MIME-Version: 1.0 Received: by 10.140.157.9 with SMTP id f9mr146064rve.165.1253725847935; Wed, 23 Sep 2009 10:10:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Sep 2009 01:10:47 +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: Wed, 23 Sep 2009 17:10:54 -0000 Hi, Update: Add widget infrastructure, currently only implement two widget, screen and panel. Support loading from theme file. I've packed the resource and upload it at: http://grub4dos.sourceforge.net/menu.zip To use it, unzip to /menu and add the following line in grub.cfg: . /menu/menu.cfg Select "text mode" or "graphic mode", it would draw the menu based on config file, press any key and it returns to grub menu. Here is the sample theme file: screen { panel { x = "5" y = "5" width = "-5" height = "-5" top_left = "/menu/menu_tl.png,,black/cyan/#0x250F" top = "/menu/menu_t.png,tiling,black/cyan/#0x2501" top_right = "/menu/menu_tr.png,,black/cyan/#0x2513" left = "/menu/menu_l.png,tiling,black/cyan/#0x2503" right = "/menu/menu_r.png,tiling,black/cyan/#0x2503" bottom_left = "/menu/menu_bl.png,,black/cyan/#0x2517" bottom = "/menu/menu_b.png,tiling,black/cyan/#0x2501" bottom_right = "/menu/menu_br.png,tiling,black/cyan/#0x251B" background = "/menu/back.png,,#808080/cyan" panel { x = 1 y = 1 width = -1 height = 2 background = ",blue" } } } The most complex property is the background image, for example: top = "/menu/menu_t.png,tiling,black/cyan/#0x2501" /menu/menu_t.png - image tiling - scaling method (can be empty, center, tiling, minfit, maxfit) black/cyan/#0x2501 - color, the full format is something like this: #808080/black/cyan/A #808080 - color in graphic mode black - foreground in text mode cyan - background in text mode A - fill char in text mode -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/