~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to docs/gfxmenu-theme-example.txt

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# GRUB gfxmenu theme "winter".
2
 
# Uses background image from:
3
 
# http://www.cyberpunkcafe.com/e107_plugins/autogallery/autogallery.php?show=1.Open%20Source%20Wallpaper
4
 
# "without-leaves.png" was called "Without Leafs in Winter.png"
5
 
 
6
 
lua-script: "winter.lua"
7
 
title-text: ""
8
 
title-font: "Helvetica Bold 18"
9
 
status-font: "Helvetica 8"
10
 
terminal-font: "Fixed 9"
11
 
title-color: "40, 40, 40"
12
 
status-color: "#FFF"
13
 
status-bg-color: "0, 166, 183, 128"
14
 
desktop-image: "without-leaves.png"
15
 
desktop-color: "0, 154, 183"
16
 
terminal-box: "terminal_*.png"
17
 
 
18
 
+ boot_menu {
19
 
   position = (120, 60)
20
 
   preferred_size = (400, -1)
21
 
   item_font = "Helvetica Bold 14"
22
 
   selected_item_font = "Helvetica Bold 14"
23
 
   item_color = "0, 0, 0"
24
 
   selected_item_color = "203, 251, 255"
25
 
   menu_pixmap_style = "menu_*.png"
26
 
   selected_item_pixmap_style = "select_*.png"
27
 
   icon_width = 44
28
 
   icon_height = 44
29
 
   item_height = 32
30
 
   item_padding = 0
31
 
   item_icon_space = 3
32
 
   item_spacing = 11
33
 
}
34
 
 
35
 
# You can add text at arbitrary locations on the screen.
36
 
# The specification within the "+label {...}" block is free-form,
37
 
# so you can use as much or as little white space as you like.
38
 
 
39
 
+ label {
40
 
   position = (170, 50)
41
 
   font = "smoothansi 13"
42
 
   color = "0,0,128"
43
 
   text = "This is the Winter theme ... brought to you by GRUB!"
44
 
}
45
 
 
46
 
# Show the text alignment supported by labels.
47
 
+ vbox {
48
 
   position = (220, 347)
49
 
   preferred_size = (200, -1)     # A preferred size of -1 means automatic.
50
 
   + label { text="Text alignment demo" align="center" font="aqui 11" }
51
 
   + label { text="Left" align="left" font="cure 11" }
52
 
   + label { text="Center" align="center" font="cure 11" }
53
 
   + label { text="Right" align="right" font="cure 11" }
54
 
}
55
 
 
56
 
+ vbox {
57
 
   position = (580, 10)
58
 
   + label { text="GNU" font="gelly 11" color="0, 0, 0" }
59
 
   + label { text="GRUB" font="aqui 11" color="0, 0, 0" }
60
 
   + label { text="boot loader" font="cure 11" color="0, 0, 0" }
61
 
}
62
 
 
63
 
+ hbox {
64
 
   position = (80, 10)
65
 
   + label { text="GNU" font="gelly 11" color="0, 0, 0" }
66
 
   + label { text="GRUB" font="aqui 11" color="0, 0, 0" }
67
 
   + label { text="boot loader" font="cure 11" color="0, 0, 0" }
68
 
}
69
 
 
70
 
# Demonstration of a compound layout: boxes within boxes.
71
 
+ hbox
72
 
{
73
 
   position = (480, 3)
74
 
 
75
 
   + vbox
76
 
   {
77
 
      # Note: We can't just use 'size' to set the image's size,
78
 
      #       since the vbox will resize the component according to its
79
 
      #       preferred size, which for images is the native image size.
80
 
 
81
 
      + image { file="/boot/grub/themes/icons/ubuntu.png"
82
 
                preferred_size = (20, 20) }
83
 
      + image { file="/boot/grub/themes/icons/gentoo.png"
84
 
                preferred_size = (20, 20) }
85
 
   }
86
 
 
87
 
   + vbox
88
 
   {
89
 
      + label { text="GRand" font="cure 11" color=#99F }
90
 
      + label { text="Unified" font="cure 11" color=#BBF }
91
 
      + label { text="Bootloader" font="cure 11" color=#DDF }
92
 
   }
93
 
}
94
 
 
95
 
# By defining a 'progress_bar' type component with an ID of '__timeout__',
96
 
# the progress bar will be used to display the time remaining before an
97
 
# the default entry is automatically booted.
98
 
+ progress_bar
99
 
{
100
 
   id = "__timeout__"
101
 
   position = (80, 393)
102
 
   preferred_size = (500, 24)
103
 
   font = "cure 11"
104
 
   text_color = #000
105
 
   fg_color = #CCF
106
 
   bg_color = #66B
107
 
   border_color = #006
108
 
   show_text = false
109
 
}
110
 
 
111
 
# Although the progress_bar component is normally used to indicate the
112
 
# time remaining, it's also possible to create other components with an ID
113
 
# of '__timeout__'.  All components with and ID of 'timeout_bar' will have
114
 
# the following properties set based on the timeout value:
115
 
#   text, value, start, end, visible.
116
 
# In this case, we have set 'show_text=false' on the progress bar, and use
117
 
# the following label's 'text' property to display the message.
118
 
+ label
119
 
{
120
 
   id = "__timeout__"
121
 
   position = (80, 420)
122
 
   preferred_size = (500, 24)
123
 
   font = "lime 11"
124
 
   color = #117
125
 
   align = "center"
126
 
}
127
 
 
128