Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MwEtm-0000LQ-8K for mharc-grub-devel@gnu.org; Fri, 09 Oct 2009 08:48:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwEtj-0000J1-Qa for grub-devel@gnu.org; Fri, 09 Oct 2009 08:48:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwEte-0000Be-K1 for grub-devel@gnu.org; Fri, 09 Oct 2009 08:48:38 -0400 Received: from [199.232.76.173] (port=41186 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwEte-0000BM-C1 for grub-devel@gnu.org; Fri, 09 Oct 2009 08:48:34 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:50729) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwEtd-0000Ui-Tn for grub-devel@gnu.org; Fri, 09 Oct 2009 08:48:34 -0400 Received: by pzk11 with SMTP id 11so5099757pzk.14 for ; Fri, 09 Oct 2009 05:48:32 -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=IeXmQyNvIdudao5hxEwM9tuG21nIMRDMnOJ9NOn7qCQ=; b=AhEXtXNES2OX0uAGjKI6JxcmpfXUtQMioSorAnhjNBSc5s4ODR41Ra0/WchUHxDUtS XdSPN3byoWVGmRa7EIW35j34BONrI94GmrRcuEp7rylwD0OsbcHoJrkSUYV1pWvOqkzh oJAHKC4m5gh1gvQJoq2/lxi0JupDjGsq+HMuk= 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=JYQ7Fhj+97UYAbKMYP6Ju8heIoqErgU10JtP2TkkN3yvUbc4MV6EHDrKOEG0nDFy0P vjjDysyRBdThSsBENnTnr77r2oOz7++xZGHTQ0CTJrxC2VDX5fvCzvUhlfKSvcW84H+G ZYqzkD6BFY1mYhCiFC7ENA3u7LtrxqHcv6We0= MIME-Version: 1.0 Received: by 10.141.43.9 with SMTP id v9mr249477rvj.75.1255092512742; Fri, 09 Oct 2009 05:48:32 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Oct 2009 20:48:32 +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: Fri, 09 Oct 2009 12:48:40 -0000 On Fri, Oct 9, 2009 at 7:52 PM, Michal Suchanek wrote= : > Yes, that's nice to name the dialog so that it can be styled more easily. > > However, the text has no style assigned. Still the user should be able > to do something like > > popup text { font-face: sans } > > or > > =A0.dialog.mesasge text { font-face: sans } > > to override the font used in the dialog although the text element is > not explicitly linked to any style. Hi, Oh, perhaps the name style is not very appropriate here, class may be a better one. As for the sub element, it can be handle it like this: panel { class=3Ddialog.message text { text=3D"Hello" }} class { dialog.message { background =3D "/back.png" color=3D"blue" } } All widgets under the panel would looks in the dialog.message section for default property, this is similar to Xterm*color in Xresource. This method also make it easier to define a menu item: panel { class=3Dmenu.debian image {} text {}} class { menu.debian { image =3D "/debian.png" text =3D "Boot debian" } } --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/