From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WrVOi-0005E0-Ge for mharc-grub-devel@gnu.org; Mon, 02 Jun 2014 12:47:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrVOa-0005Am-ST for grub-devel@gnu.org; Mon, 02 Jun 2014 12:47:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrVOU-0000AN-Bv for grub-devel@gnu.org; Mon, 02 Jun 2014 12:47:36 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:58872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrVOU-000092-3z for grub-devel@gnu.org; Mon, 02 Jun 2014 12:47:30 -0400 Received: by mail-la0-f46.google.com with SMTP id ec20so2764251lab.33 for ; Mon, 02 Jun 2014 09:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=Z/4/OWHvbJeaupLyYFlNwfVrtaP8AXrX8G5BeKfAGcM=; b=gQpuQ8k/gzci91Htj9ePPoVVM8MiISkvF1g+FUMT510Inj56i6YwQGl4sS21DP0rKl MCnzBvCaNDWUrcUF4VmhE5+NV+JjWJRI2JfL2d2KK9bWJL5AmykOzshSPgkynYqfzS1q uUfWDTPBTVWkR6D+wcXrmMyKqgnstAms0vhXxnBMCRLeWn/A9NGAvUiNt2Txx0ts+lf3 p4r/84wQvSgeXJQ4RwPUhpU/4OHZbNFvYs7zH28OHABfT+FMs1UN6iOSNvIGv2mXVbbN mVlq9xq2NonTGypHOEkRZPgT3cxZ9CLkM1RDNSb23OfIanAZH10r/8lYQv1el8RYfP/w imvg== X-Received: by 10.152.5.98 with SMTP id r2mr3200384lar.59.1401727648701; Mon, 02 Jun 2014 09:47:28 -0700 (PDT) Received: from opensuse.site (ppp37-190-15-130.pppoe.spdop.ru. [37.190.15.130]) by mx.google.com with ESMTPSA id f9sm11595800lae.16.2014.06.02.09.47.27 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Jun 2014 09:47:28 -0700 (PDT) Date: Mon, 2 Jun 2014 20:47:27 +0400 From: Andrey Borzenkov To: John Hupp Subject: Re: Grub2 theme bug with relative numeric values for boot_menu? Message-ID: <20140602204727.1f7f1c44@opensuse.site> In-Reply-To: <538CA0EB.2030703@prpcompany.com> References: <5383BDEB.8000801@prpcompany.com> <20140602175959.70ab0329@opensuse.site> <538CA0EB.2030703@prpcompany.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e Cc: The development of GNU GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2014 16:47:43 -0000 В Mon, 02 Jun 2014 12:06:03 -0400 John Hupp пишет: > > > >> Grub responded well to % values for the numeric values in the progress > >> bar and labels. Also OK with %'s for boot_menu properties top, left, > >> height, width. > >> > >> But I'm getting bad behavior with item_height and the other properties. > >> For a 1024x768 grub display and an original setting of item_height = 26, > >> I can't get equivalent output unless I set item_height = 27% > >> > > These properties do not even understand proportional units. If you are > > using modified grub which adds support for it, please post patch, > > otherwise it is impossible to make any useful comment. > > I did not know that these properties do not understand proportional > units. The documentation indicated that ALL numeric property values > could be absolute or relative/proportional. I re-checked grub2 manual for 2.00 and it explicitly says that item_height is in pixel; it lists several properties for which support for proportional units is explicitly stated. So either you are using different manual (coming from your distribution?) or probably misunderstood it. In which case it would help if you suggested corrections that make it more clear. I guess that grub simply ignored '%' and interpreted value as absolute one. Or your grub does support proportional units for item_height indeed, then it is distribution-specific patch.