grub-devel
[Top][All Lists]
Advanced

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

Re: [GITGRUB] New menu interface (implementation)


From: Bean
Subject: Re: [GITGRUB] New menu interface (implementation)
Date: Wed, 7 Oct 2009 18:54:04 +0800

Hi,

Update:

Support align in both direction, for example, this works now:

screen {
  direction = left_to_right
  position = center

  panel { valign = extend halign = extend }
  panel { valign = extend halign = extend }
  }
}

The distributed of extra space is based on direction and position:
direction = left_to_right
position = near
space is added to the rightmost widget

direction = left_to_right
position = center
space is distributed evenly

direction = left_to_right
position = far
space is added to the leftmost widget

Remove hspace and vspace, as they're duplicated with margin
properties, add space property which is the reserved space between two
widgets.

Image now support the following modes:

top_left = 
"/menu/menu_tl.png,,black/cyan,#0x250F:/menu/select_tl.png,,black/green,#0x2554"
Load bitmap in graphic mode, use box char in text mode,

top_left = ",,black/cyan,#0x250F:,,black/green,#0x2554"
Use box char in both graphic and text mode

top_left = "/menu/menu_tl.png:/menu/select_tl.png"
Load bitmap in graphic mode, empty in text mode

top_left = "none,,black/cyan,#0x250F:none,,black/green,#0x2554"
Use box char in text mode, empty in graphic mode

Text widget support new property gfx_text, which can be used to
displayed different text in graphic and text mode:

text { text = "text mode" gfx_text="gfx mode" }

Fix a few issue in edit/term widget, now it support the
pageup/pagedown key, and backspace at the beginning of line would
merge the current line with previous one.

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/




reply via email to

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