diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-28 16:32:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-30 17:20:20 +0100 |
commit | 8c5536543fb9b4681ac32517f100f9abec6f2162 (patch) | |
tree | 6d17b90c5125f33d8af47033989f13d190f81383 /bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |
parent | bcd4d14425cadc5bd6296f59f14733e8c39c49dd (diff) | |
download | poky-8c5536543fb9b4681ac32517f100f9abec6f2162.tar.gz |
Hob: tweak font sizes and layout
Switch to proportional font sizes and tweak padding and layout based on
feedback from design team.
(Bitbake rev: 356f190bb3f0ee9a15df900714edcb85593d6989)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 8914b1cde0..30f89795d2 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |||
@@ -133,13 +133,13 @@ class ImageConfigurationPage (HobPage): | |||
133 | def create_config_machine(self): | 133 | def create_config_machine(self): |
134 | self.machine_title = gtk.Label() | 134 | self.machine_title = gtk.Label() |
135 | self.machine_title.set_alignment(0.0, 0.5) | 135 | self.machine_title.set_alignment(0.0, 0.5) |
136 | mark = "<span %s>Select a machine</span>" % self.span_tag('24px', 'bold') | 136 | mark = "<span %s>Select a machine</span>" % self.span_tag('x-large', 'bold') |
137 | self.machine_title.set_markup(mark) | 137 | self.machine_title.set_markup(mark) |
138 | 138 | ||
139 | self.machine_title_desc = gtk.Label() | 139 | self.machine_title_desc = gtk.Label() |
140 | self.machine_title_desc.set_alignment(0, 0.5) | 140 | self.machine_title_desc.set_alignment(0.0, 0.5) |
141 | mark = ("<span %s>This is the profile of the target machine for which you" | 141 | mark = ("<span %s>This is the profile of the target machine for which you" |
142 | " are building the image.\n</span>") % (self.span_tag(px='14px')) | 142 | " are building the image.\n</span>") % (self.span_tag('medium')) |
143 | self.machine_title_desc.set_markup(mark) | 143 | self.machine_title_desc.set_markup(mark) |
144 | 144 | ||
145 | self.machine_combo = gtk.combo_box_new_text() | 145 | self.machine_combo = gtk.combo_box_new_text() |
@@ -170,31 +170,31 @@ class ImageConfigurationPage (HobPage): | |||
170 | def set_config_machine_layout(self, show_progress_bar = False): | 170 | def set_config_machine_layout(self, show_progress_bar = False): |
171 | self.gtable.attach(self.machine_title, 0, 40, 0, 4) | 171 | self.gtable.attach(self.machine_title, 0, 40, 0, 4) |
172 | self.gtable.attach(self.machine_title_desc, 0, 40, 4, 6) | 172 | self.gtable.attach(self.machine_title_desc, 0, 40, 4, 6) |
173 | self.gtable.attach(self.machine_combo, 0, 12, 6, 9) | 173 | self.gtable.attach(self.machine_combo, 0, 12, 7, 10) |
174 | self.gtable.attach(self.layer_button, 15, 36, 6, 11) | 174 | self.gtable.attach(self.layer_button, 14, 36, 7, 12) |
175 | self.gtable.attach(self.layer_info_icon, 36, 40, 6, 10) | 175 | self.gtable.attach(self.layer_info_icon, 36, 40, 7, 11) |
176 | if show_progress_bar: | 176 | if show_progress_bar: |
177 | self.gtable.attach(self.progress_box, 0, 40, 13, 17) | 177 | self.gtable.attach(self.progress_box, 0, 40, 15, 19) |
178 | self.gtable.attach(self.machine_separator, 0, 40, 12, 13) | 178 | self.gtable.attach(self.machine_separator, 0, 40, 13, 14) |
179 | 179 | ||
180 | def create_config_baseimg(self): | 180 | def create_config_baseimg(self): |
181 | self.image_title = gtk.Label() | 181 | self.image_title = gtk.Label() |
182 | self.image_title.set_alignment(0, 1.0) | 182 | self.image_title.set_alignment(0, 1.0) |
183 | mark = "<span %s>Select a base image</span>" % self.span_tag('24px', 'bold') | 183 | mark = "<span %s>Select a base image</span>" % self.span_tag('x-large', 'bold') |
184 | self.image_title.set_markup(mark) | 184 | self.image_title.set_markup(mark) |
185 | 185 | ||
186 | self.image_title_desc = gtk.Label() | 186 | self.image_title_desc = gtk.Label() |
187 | self.image_title_desc.set_alignment(0, 0.5) | 187 | self.image_title_desc.set_alignment(0, 0.5) |
188 | mark = ("<span %s>Base images are a starting point for the type of image you want. " | 188 | mark = ("<span %s>Base images are a starting point for the type of image you want. " |
189 | "You can build them as \n" | 189 | "You can build them as \n" |
190 | "they are or customize them to your specific needs.\n</span>") % self.span_tag('14px') | 190 | "they are or customize them to your specific needs.\n</span>") % self.span_tag('medium') |
191 | self.image_title_desc.set_markup(mark) | 191 | self.image_title_desc.set_markup(mark) |
192 | 192 | ||
193 | self.image_combo = gtk.combo_box_new_text() | 193 | self.image_combo = gtk.combo_box_new_text() |
194 | self.image_combo_id = self.image_combo.connect("changed", self.image_combo_changed_cb) | 194 | self.image_combo_id = self.image_combo.connect("changed", self.image_combo_changed_cb) |
195 | 195 | ||
196 | self.image_desc = gtk.Label() | 196 | self.image_desc = gtk.Label() |
197 | self.image_desc.set_alignment(0, 0.5) | 197 | self.image_desc.set_alignment(0.0, 0.5) |
198 | self.image_desc.set_line_wrap(True) | 198 | self.image_desc.set_line_wrap(True) |
199 | 199 | ||
200 | # button to view recipes | 200 | # button to view recipes |
@@ -216,15 +216,15 @@ class ImageConfigurationPage (HobPage): | |||
216 | self.image_separator = gtk.HSeparator() | 216 | self.image_separator = gtk.HSeparator() |
217 | 217 | ||
218 | def set_config_baseimg_layout(self): | 218 | def set_config_baseimg_layout(self): |
219 | self.gtable.attach(self.image_title, 0, 40, 13, 17) | 219 | self.gtable.attach(self.image_title, 0, 40, 15, 17) |
220 | self.gtable.attach(self.image_title_desc, 0, 40, 18, 23) | 220 | self.gtable.attach(self.image_title_desc, 0, 40, 18, 22) |
221 | self.gtable.attach(self.image_combo, 0, 12, 24, 27) | 221 | self.gtable.attach(self.image_combo, 0, 12, 23, 26) |
222 | self.gtable.attach(self.image_desc, 14, 38, 24, 29) | 222 | self.gtable.attach(self.image_desc, 13, 38, 23, 28) |
223 | self.gtable.attach(self.image_separator, 0, 40, 35, 36) | 223 | self.gtable.attach(self.image_separator, 0, 40, 35, 36) |
224 | 224 | ||
225 | def set_rcppkg_layout(self): | 225 | def set_rcppkg_layout(self): |
226 | self.gtable.attach(self.view_recipes_button, 0, 20, 30, 35) | 226 | self.gtable.attach(self.view_recipes_button, 0, 20, 28, 33) |
227 | self.gtable.attach(self.view_packages_button, 20, 40, 30, 35) | 227 | self.gtable.attach(self.view_packages_button, 20, 40, 28, 33) |
228 | 228 | ||
229 | def create_config_build_button(self): | 229 | def create_config_build_button(self): |
230 | # Create the "Build packages" and "Build image" buttons at the bottom | 230 | # Create the "Build packages" and "Build image" buttons at the bottom |
@@ -295,7 +295,7 @@ class ImageConfigurationPage (HobPage): | |||
295 | image_iter = self.builder.recipe_model.get_iter(image_path) | 295 | image_iter = self.builder.recipe_model.get_iter(image_path) |
296 | selected_packages = self.builder.recipe_model.get_value(image_iter, self.builder.recipe_model.COL_INSTALL).split() | 296 | selected_packages = self.builder.recipe_model.get_value(image_iter, self.builder.recipe_model.COL_INSTALL).split() |
297 | 297 | ||
298 | mark = ("<span %s>%s</span>\n") % (self.span_tag('14px'), self.builder.recipe_model.get_value(image_iter, self.builder.recipe_model.COL_DESC)) | 298 | mark = ("<span %s>%s</span>\n") % (self.span_tag('small'), self.builder.recipe_model.get_value(image_iter, self.builder.recipe_model.COL_DESC)) |
299 | self.image_desc.set_markup(mark) | 299 | self.image_desc.set_markup(mark) |
300 | 300 | ||
301 | self.builder.recipe_model.reset() | 301 | self.builder.recipe_model.reset() |