2009/10/4 Bean <bean12...@gmail.com>:
> On Sun, Oct 4, 2009 at 6:34 AM, Michal Suchanek <hramr...@centrum.cz> wrote:
>> 2009/10/3 Bean <bean12...@gmail.com>:
>>> Hi,
>>>
>>> Update:
>>>
>>> Add auto scrolling support, view port would be adjusted automatically
>>> to show the current node. In the demo, there are five horizontal
>>> widgets, total length exceed that of the screen, using 'N' and 'P' to
>>> navigating between anchors, and you can see the hidden widget would
>>> scroll into view automatically, ESC to exit the demo.
>>>
>>
>> Hello,
>>
>> Do you have an update of the sample configuration for menu test?
>>
>> The old sample reports "class not found".
>
> Hi,
>
> It's at:
>
> http://grub4dos.sourceforge.net/menu.zip
>
> Download it again and replace the files.
>
Hi

I only tried running the sample, did not look how things are done yet.

The major problem is that the panels are not sorted in any way so the
navigation is very confusing. There should be only a single toplevel
panel which contains all active elements in a layout.

However, when I put everything into a single panel I still get issues:

 - the content is not inside the panel border
 - focus is on an invisible element, not the first element
 - panels are not ordered left to right as specified

There is an issue with setting the border and margins.
 - if I set all margins to the same number the horizontal and vertical
margins are different which is quite ugly
 - the border settings offer many options but I miss the option for
   - setting the text border explicitly to single/double border
without using an image
   - replicating similar effect in graphics (that is setting a few
pixel border with some space on either side - margin should set the
outer space but I am not sure about the inner space)
 - background bitmap does not cover margins. I am not sure if it is
desirable to cover them, though. CSS works that way but I am sure some
systems work differently.

Thanks

Michal
screen {
          background = "/menu/back.png,,blue"

    panel {
        direction = left_to_right
          margin_left = 3
          margin_top = 3
          margin_right = 3
          margin_bottom = 3

          top_left = 
"/menu/menu_tl.png,,black/cyan,#0x250F:/menu/select_tl.png,,black/green,/"
          top = 
"/menu/menu_t.png,tiling,black/cyan,#0x2501:/menu/select_t.png,,black/green,-"
          top_right = 
"/menu/menu_tr.png,,black/cyan,#0x2513:/menu/select_tr.png,,black/green,\\"
          left = 
"/menu/menu_l.png,tiling,black/cyan,#0x2503:/menu/select_l.png,,black/green,|"
          right = 
"/menu/menu_r.png,tiling,black/cyan,#0x2503:/menu/select_r.png,,black/green,|"
          bottom_left = 
"/menu/menu_bl.png,,black/cyan,#0x2517:/menu/select_bl.png,,black/green,\\"
          bottom = 
"/menu/menu_b.png,tiling,black/cyan,#0x2501:/menu/select_b.png,,black/green,-"
          bottom_right = 
"/menu/menu_br.png,tiling,black/cyan,#0x251B:/menu/select_br.png,,black/green,/"
          border_width = 0/1
          border_height = 0/1
          border_color = "brown:red"

          panel {
              background = ",,brown,#32:,,red,#32"
                direction = left_to_right
                margin_bottom = 0
                hspace = 10/0
                vspace = 10/0
                anchor = 1

                image {
                    image = "/menu/ubuntu_b.png:/menu/ubuntu.png"
                      command = "aa"
                }

              image {
                  image = "/menu/debian_b.png:/menu/debian.png"
                    command = "bb"
              }

              image {
                  image = "/menu/gentoo_b.png:/menu/gentoo.png"
                    command = "cc"
              }
          }

        panel {
            direction = bottom_to_top
              vspace = 10/1
#background = ",,green,#32:,,cyan,#32"
              border_width = 1
              border_height = 1
              border_color = "brown:red"
              extend = 1
              anchor = 1

              panel {
                  direction = left_to_right
                    hspace = 10/1
                    background = ":,,green, "
                    command = "aa"

                    image {
                        image = "/menu/ubuntu.png"
                    }

                  text {
                      text = "Ubuntu"
                        color = "yellow:light-green"
                  }
              }

            panel {
                direction = right_to_left
                  hspace = 10/1
                  valign = center
                  background = ":,,green, "
                  command = "bb"

                  image {
                      image = "/menu/debian.png"
                  }

                text {
                    text = "Debian Lenny"
                      color = "yellow:light-green"
                }
            }

            panel {
                direction = left_to_right
                  hspace = 10/1
                  valign = bottom
                  halign = right
                  background = ":,,green, "
                  command = "cc"

                  image {
                      image = "/menu/gentoo.png"
                  }

                text {
                    text = "Gentoo"
                      color = "yellow:light-green"
                }
            }
        }

        panel {
            direction = bottom_to_top
              vspace = 10/1
#background = ",,green,#32:,,cyan,#32"
              border_width = 1
              border_height = 1
              border_color = "brown:red"
              anchor = 1

              panel {
                  direction = left_to_right
                    hspace = 10/1
                    background = ":,,green, "
                    command = "aa"

                    image {
                        image = "/menu/ubuntu.png"
                    }

                  text {
                      text = "Ubuntu"
                        color = "yellow:light-green"
                  }
              }

            panel {
                direction = right_to_left
                  hspace = 10/1
                  valign = center
                  background = ":,,green, "
                  command = "bb"

                  image {
                      image = "/menu/debian.png"
                  }

                text {
                    text = "Debian Lenny"
                      color = "yellow:light-green"
                }
            }

            panel {
                direction = left_to_right
                  hspace = 10/1
                  valign = bottom
                  halign = right
                  background = ":,,green, "
                  command = "cc"

                  image {
                      image = "/menu/gentoo.png"
                  }

                text {
                    text = "Gentoo"
                      color = "yellow:light-green"
                }
            }
        }

        panel {
            direction = left_to_right
              hspace = 10/1
#background = ",,green,#32:,,cyan,#32"
              border_width = 1
              border_height = 1
              border_color = "brown:red"
              max_width = 25
              min_height = 8
              extend = 1
              anchor = 1

              panel {
                  direction = top_to_bottom
                    vspace = 10/1
                    background = ":,,cyan, "
                    command = "aa"

                    image {
                        image = "/menu/ubuntu.png"
                    }

                  text {
                      text = "Ubuntu"
                        color = "yellow:light-green"
                  }
              }

            panel {
                direction = bottom_to_top
                  vspace = 10/1
                  halign = center
                  background = ":,,cyan, "
                  command = "bb"

                  image {
                      image = "/menu/debian.png"
                  }

                text {
                    text = "Debian Lenny"
                      color = "yellow:light-green"
                }
            }

            panel {
                direction = top_to_bottom
                  vspace = 10/1
                  halign = center
                  background = ":,,cyan, "
                  command = "bb"

                  image {
                      image = "/menu/gentoo.png"
                  }

                text {
                    text = "Gentoo"
                      color = "yellow:light-green"
                }
            }
        }

        panel {
            direction = left_to_right
              hspace = 10/1
#background = ",,green,#32:,,cyan,#32"
              border_width = 1
              border_height = 1
              border_color = "brown:red"
              max_width = 25
              min_height = 8
              anchor = 1

              panel {
                  direction = top_to_bottom
                    vspace = 10/1
                    background = ":,,cyan, "
                    command = "aa"

                    image {
                        image = "/menu/ubuntu.png"
                    }

                  text {
                      text = "Ubuntu"
                        color = "yellow:light-green"
                  }
              }

            panel {
                direction = bottom_to_top
                  vspace = 10/1
                  halign = center
                  background = ":,,cyan, "
                  command = "bb"

                  image {
                      image = "/menu/debian.png"
                  }

                text {
                    text = "Debian Lenny"
                      color = "yellow:light-green"
                }
            }

            panel {
                direction = top_to_bottom
                  vspace = 10/1
                  halign = center
                  background = ":,,cyan, "
                  command = "bb"

                  image {
                      image = "/menu/gentoo.png"
                  }

                text {
                    text = "Gentoo"
                      color = "yellow:light-green"
                }
            }
        }

        panel {
            direction = top_to_bottom
              border_width = 1
              border_height = 1
              border_color = "brown:red"
              width = 16
              height = 8
              vspace = 1
              anchor = 1

              panel {
                  direction = left_to_right
                    hspace = 2

                    panel {
                        width = 8
                          height = 4
                          background = ",,black,#32:,,light-gray,#32"
                          command = "aa"
                    }

                  panel {
                      width = 8
                        height = 4
                        background = ",,blue,#32:,,brown,#32"
                        command = "bb"
                  }
              }

            panel {
                direction = left_to_right
                  hspace = 2

                  panel {
                      width = 8
                        height = 4
                        background = ",,green,#32:,,magenta,#32"
                        command = "cc"
                  }

                panel {
                    width = 8
                      height = 4
                      background = ",,cyan,#32:,,red,#32"
                      command = "dd"
                }
            }
        }
    }
}
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to