lib/iconify.rb in iconify-0.1.0 vs lib/iconify.rb in iconify-0.1.1
- old
+ new
@@ -19,10 +19,12 @@
@argv = argv
@terminal = Vte::Terminal.new
+ self.title = "iconify - #{argv[0]}"
+
signal_connect('delete-event') do
hide
end
@state = :stopped
@@ -99,12 +101,16 @@
def redraw
pixmap = Gdk::Pixmap.new(nil, 64, 64, 24)
cr = pixmap.create_cairo_context
- cr.set_source_rgba(*@background_color, 1.0)
+ cr.set_source_rgb(0.8, 0.8, 0.8)
cr.set_operator(Cairo::OPERATOR_SOURCE)
cr.paint
+
+ cr.set_source_rgb(*@background_color)
+ cr.rounded_rectangle(1, 1, 62, 62, 15)
+ cr.fill
cr.set_font_size(24)
cr.move_to(3, 64 / 2 + cr.font_extents.ascent / 2)
cr.set_source_rgba(*@foreground_color, 1)
cr.show_text(@name)