Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mita5-0007db-Om for mharc-grub-devel@gnu.org; Wed, 02 Sep 2009 13:25:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mita4-0007bt-Fv for grub-devel@gnu.org; Wed, 02 Sep 2009 13:25:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mita2-0007bh-VM for grub-devel@gnu.org; Wed, 02 Sep 2009 13:25:11 -0400 Received: from [199.232.76.173] (port=36535 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mita2-0007be-Pc for grub-devel@gnu.org; Wed, 02 Sep 2009 13:25:10 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:23058) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mita2-0002Qm-3L for grub-devel@gnu.org; Wed, 02 Sep 2009 13:25:10 -0400 Received: by fg-out-1718.google.com with SMTP id 22so422708fge.12 for ; Wed, 02 Sep 2009 10:25:09 -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=hkTx1OQyU033trLqWIuER6WF4MhHIwAJR1x8oKrbe+0=; b=MiPJB9thrglu5wbjJBfGQ9TY0bYZMBMi3aLjQvTv4I+1edOi+LxJIE5ssj//D6xD6I 4czu6OTA+e7LrHUopJ2aOFi8scZdjP1jdyZCkFuwVBsYwf1P+ilt4WoE1auP4k27SpM7 Gric8N76xyDm0YnCXE8FBnbB/MGfJ+fOovL0Q= 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=NeUhg7VMAP/TK6nngFpoaSObnnDzW/DktRPmoCXij9c3N1ecgwIVCHkKFeYa+uJZ9L rQiw6PTSp4iVPP/ZATlVMGBdPZm/qVD6RYWLfjTE4zMjUb8mGNgEjiIZrCYQBEC9Eyqy DgKp0VnyFDze8unI74CsquKKkjZdfGusPrXDg= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.217.8 with SMTP id p8mr2752779fgg.73.1251912307531; Wed, 02 Sep 2009 10:25:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Sep 2009 19:25:06 +0200 X-Google-Sender-Auth: 76112b3e784a5b59 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 monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface 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, 02 Sep 2009 17:25:12 -0000 2009/9/2 Bean : > On Wed, Sep 2, 2009 at 11:27 PM, Michal Suchanek wro= te: >> How will it fit screen? What if the image is 4:3 and =C2=A0the screen is >> 5:4 or widescreen? > > It'd scale to fit the new proportion, although the image perhaps won't > look nice in this case. We could choose one of the following rendering > method based on option: > > Center > Scaling (full) > Scaling (keep ratio) > Tiling Other common uses are Scaling (cover) - keep aspect but cover the whole area (with parts of the picture sticking out of the viewport) - useful with a non-intrusive background like a photo of fallen leaves or the like Left, Right, TopLeft, BottomRight, ... - for side and corner decorations. > >> Percentages are a good start. However, if you make your menu >> percentage based adding new items or new menu areas is still >> problematic. > > Actually I've though of another representation, using the font metrics > as base unit, =C2=A0something like this: > > + menu { > =C2=A0x =3D 10% > =C2=A0y =3D 10% > =C2=A0width =3D 30c > =C2=A0height =3D 30c > } Does that c represent the width of the character "c"? What about proportional fonts? I think it is OK if the layout manager was in Lua if that makes hacking on it easier but you still need the support functions for a fully functional layout manager in C for that to work. Thanks Michal