コミットメタ情報

リビジョンf41a0acc19cf8089126e43d2f75fe1c9fd409510 (tree)
日時2012-11-26 22:36:50
作者masahino
コミッターmasahino

ログメッセージ

change background color of icon

変更サマリ

差分

diff -r a35cbc00d017 -r f41a0acc19cf rwmuim
--- a/rwmuim Wed Oct 05 22:56:55 2011 +0900
+++ b/rwmuim Mon Nov 26 22:36:50 2012 +0900
@@ -482,7 +482,7 @@
482482 end
483483 @imname.set_tip(update[:imshort_description])
484484 @im_popup.add_item(im_a)
485- @imicon.draw_rect(2, 2, 12, 12, "#AEAAAE")
485+ @imicon.draw_rect(1, 1, 15, 15, "#AEAAAE")
486486 @imname.clear()
487487 icon_filename = UIM::PIXMAPSDIR+"/"+update[:imname]+".png"
488488 @imicon.set_image_at_size(icon_filename, 0, 0, 12, 12)
@@ -499,6 +499,7 @@
499499 class WmUIMHelperIcon < WmUIMHelper
500500 ButtonSize = 18
501501 InputStateSize = 27
502+ BACKGROUND_COLOR = "#AEAAAE"
502503 def create_toolbar
503504 # 共通
504505 @dockapp = DockApp.new("WMUIM")
@@ -529,8 +530,10 @@
529530 @dockapp.add( 0, 37, @im_item)
530531 @dockapp.add(19, 37, @config_item)
531532 @dockapp.add(38, 37, @dict_item)
533+ @config_item.draw_rect(1, 1, 15, 15, BACKGROUND_COLOR)
532534 @config_item.set_image_at_size(UIM::PIXMAPSDIR+"/uim-icon.png", 0, 0,
533535 ButtonSize-4, ButtonSize-4)
536+ @dict_item.draw_rect(1, 1, 15, 15, BACKGROUND_COLOR)
534537 @dict_item.set_image_at_size(UIM::PIXMAPSDIR+"/uim-dict.png", 0, 0,
535538 ButtonSize-4, ButtonSize-4)
536539 @dockapp.add( 0, 0, @im_popup)
@@ -590,8 +593,9 @@
590593
591594 def update_input_mode(input_mode_list, update)
592595 icon_filename = UIM::PIXMAPSDIR+"/"+update[:indication_id]+".png"
593- @input_mode_item.draw_rect(2, 2,
594- InputStateSize-4, InputStateSize-4, "#AEAAAE")
596+ @input_mode_item.draw_rect(1, 1,
597+ InputStateSize-3, InputStateSize-3,
598+ BACKGROUND_COLOR)
595599 @input_mode_item.set_image_at_size(icon_filename, 1, 1,
596600 InputStateSize-6, InputStateSize-6)
597601 @input_mode_item.set_tip(update[:label_string])
@@ -604,8 +608,9 @@
604608
605609 def update_input_method(input_method_list, update)
606610 icon_filename = UIM::PIXMAPSDIR+"/"+update[:indication_id]+".png"
607- @input_method_item.draw_rect(2, 2,
608- InputStateSize-4, InputStateSize-4, "#AEAAAE")
611+ @input_method_item.draw_rect(1, 1,
612+ InputStateSize-3, InputStateSize-3,
613+ BACKGROUND_COLOR)
609614 @input_method_item.set_image_at_size(icon_filename, 1, 1,
610615 InputStateSize-6, InputStateSize-6)
611616 @input_method_item.set_tip(update[:label_string])
@@ -618,7 +623,7 @@
618623
619624 def update_im(im_list, update)
620625 icon_filename = UIM::PIXMAPSDIR+"/"+update[:imname]+".png"
621- @im_item.draw_rect(2, 2, ButtonSize-4, ButtonSize-4, "#AEAAAE")
626+ @im_item.draw_rect(1, 1, ButtonSize-3, ButtonSize-3, BACKGROUND_COLOR)
622627 @im_item.set_image_at_size(icon_filename, 0, 0, ButtonSize-4, ButtonSize-4)
623628 @im_item.set_tip(update[:imshort_description])
624629 im_a = []
@@ -632,7 +637,7 @@
632637 def show_version
633638 end
634639
635-style = 'Normal'
640+style = 'icon'
636641 opt = OptionParser.new
637642 opt.on('-v') do |v|
638643 show_version
旧リポジトリブラウザで表示