grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Horizontal boot menu


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: Horizontal boot menu
Date: Thu, 02 Jun 2011 00:09:47 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9

On 01.06.2011 12:15, Endres Puschner wrote:
> On 01.06.2011 01:56, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>> On 10.04.2011 15:09, Endres Puschner wrote:
>>> Hi, grub-developers,
>>>
>>> I implemented a complete horizontal extension to the boot menu and
>>> some other little features and fixes for extending the gfxmenu boot
>>> menu.
>>>
>> Haven't looked through whole of it but it has 2 serious problems:
>
> Yes, both problems exist, because I coded it mainly for myself.
>
> Even I was not very happy with this part, but I didn't know how to
> make it better. Maybe it should be reconsidered after the decision of
> the vi-like-keys topic is made, as there was only the predefined user
> interaction in the past, for example, up- and down-keys were a very
> default method for navigating in every interface.
vi-like proposal is likely to be rejected. It's just that I didn't have
time to think about it
>
> I think it would be pointless to fix these bugs now while some other
> things may change meanwhile.
>
>> 1) Environment variable is used where it's not to be used by scripts. In
>> such cases a C variable is more appropriate.
>> 2) It doesn't handle the multiterminal case correctly. Even if the menu
>> on local console is vertical, the menu on e.g. serial will remain
>> vertical and with your code the remote operator will have very confusing
>> key settings. It would be nicer if one could have the same key bindings
>> for both vertical and horizontal menu. The operation of left/right keys
>> can be an alias to up/down. In case it's justifiably impractical you
>> would need a new terminal flag which marks a local console. It should be
>> set on *_keyboard and console (all platform variants). This could then
>> also be used for some things Colin proposed some time ago.
>>> I would just describe my added theme parameters for the boot_menu
>>> control:
>>>
>>>    - item_width: Optionally specifying a width for each item in
>>> horizontal lists, but could also be implemented to work with vertical
>>> lists.
>>>    - item_icon_padding: Padding between icon and box or between icon
>>> and other item if there is no item_box.
>>>    - horizontal: boolean, defining this boot_list as horizontal.
>>>    - item_pixmap_style: like selected_item_pixmap_style but for non
>>> selected entries.
>>>    - item_pixmap_icon_only: boolean, selected and unselected pixmaps
>>> are only shown around the icons and not around the whole item.
>>>
>>> The scrollbars must be manually turned around to be in horizontal
>>> mode, I have uploaded a demo theme as an example:
>>>
>>> http://data.e7p.de/grub-horizontal-theme.png
>>> http://data.e7p.de/grub-horizontal-theme.zip
>>>
>>> I fixed a bug in the icon-section. The first group in any menuentry
>>> was skipped while looking for icons before, so only icons for the
>>> second class would be searched.
>>>
>>> The normal menu is also modified as I wanted to allow to use
>>> right/left keys while navigating through the menu while it is
>>> horizontal. At menu_init, a new environment variable (orientation) can
>>> be set by the used menu module to horizontal for obvious reasons.
>>>
>>> Best regards,
>>>     Endres
>>>
>>>
>>> _______________________________________________
>>> Grub-devel mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]