|  | @@ -1,4 +1,5 @@
 | 
											
												
													
														|  |  use xcb;
 |  |  use xcb;
 | 
											
												
													
														|  | 
 |  | +use ui;
 | 
											
												
													
														|  |  use ui::font;
 |  |  use ui::font;
 | 
											
												
													
														|  |  use ui::color;
 |  |  use ui::color;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -37,7 +38,7 @@ impl DrawContext {
 | 
											
												
													
														|  |              xcb::render::PICT_OP_SRC as u8,
 |  |              xcb::render::PICT_OP_SRC as u8,
 | 
											
												
													
														|  |              self.picture,
 |  |              self.picture,
 | 
											
												
													
														|  |              self.bg_color,
 |  |              self.bg_color,
 | 
											
												
													
														|  | -            &[xcb::Rectangle::new(x as i16, 0, width, 20)]
 |  | 
 | 
											
												
													
														|  | 
 |  | +            &[xcb::Rectangle::new(x as i16, 0, width, ui::SIZE)]
 | 
											
												
													
														|  |          );
 |  |          );
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -54,7 +55,7 @@ impl DrawContext {
 | 
											
												
													
														|  |      pub fn draw_text(&self, name: &str, x: u16) {
 |  |      pub fn draw_text(&self, name: &str, x: u16) {
 | 
											
												
													
														|  |          if !name.is_empty() {
 |  |          if !name.is_empty() {
 | 
											
												
													
														|  |              let text = self.fonts.create_renderable_text(name);
 |  |              let text = self.fonts.create_renderable_text(name);
 | 
											
												
													
														|  | -            let baseline = 20 - self.fonts.default_offset(20);
 |  | 
 | 
											
												
													
														|  | 
 |  | +            let baseline = ui::SIZE as i16 - self.fonts.default_offset(ui::SIZE);
 | 
											
												
													
														|  |              text.render(&self.conn, self.pen, self.picture, x, baseline as u16);
 |  |              text.render(&self.conn, self.pen, self.picture, x, baseline as u16);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
										
											
												
													
														|  | @@ -64,7 +65,7 @@ impl DrawContext {
 | 
											
												
													
														|  |              &self.conn,
 |  |              &self.conn,
 | 
											
												
													
														|  |              self.picture,
 |  |              self.picture,
 | 
											
												
													
														|  |              0, 0,
 |  |              0, 0,
 | 
											
												
													
														|  | -            &[xcb::Rectangle::new(x as i16, 0, width, 20)]
 |  | 
 | 
											
												
													
														|  | 
 |  | +            &[xcb::Rectangle::new(x as i16, 0, width, ui::SIZE)]
 | 
											
												
													
														|  |          );
 |  |          );
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          self.draw_text(name, x);
 |  |          self.draw_text(name, x);
 |