@@ -146,15 +146,16 @@ def __init__(self, argv):
146146 min-height: 18px;
147147 padding:1px;
148148 }
149- /* #__jog_incr_buttons *:checked {
150- background: rgba(230,230,50 ,0.8 );
149+ /* #jog_incr_buttons *:checked {
150+ background: rgba(255,129,22 ,0.6 );
151151 } */
152- #jog_incr_buttons *:active, #jog_buttons *:active {
153- background: rgba(230,230,50,0.8);
154- }
155152 #eb_program_label, #eb_blockheight_label {
156153 background: rgba(0,0,0,1);
157154 }
155+ #jog_incr_buttons *{
156+ padding-left: 3px;
157+ padding-right: 3px;
158+ }
158159 progress, trough {
159160 min-height: 5px;
160161 }
@@ -805,11 +806,14 @@ def _get_space_label(self, name):
805806 lbl .show ()
806807 return lbl
807808
808- def _new_button_with_predefined_image (self , name , size , image = None , image_name = None ):
809- btn = Gtk .Button ()
809+ def _new_button_with_predefined_image (self , name , size , image = None , image_name = None , radio_button = False ):
810+ if radio_button :
811+ btn = Gtk .RadioButton ()
812+ else :
813+ btn = Gtk .Button ()
814+ btn .set_halign (Gtk .Align .CENTER )
815+ btn .set_valign (Gtk .Align .CENTER )
810816 btn .set_size_request (* size )
811- btn .set_halign (Gtk .Align .CENTER )
812- btn .set_valign (Gtk .Align .CENTER )
813817 btn .set_property ("name" , name )
814818 try :
815819 if image :
@@ -1157,9 +1161,14 @@ def _make_jog_increments(self):
11571161 # We use the pressed signal, not the toggled, otherwise two signals will be emitted
11581162 # One from the released button and one from the pressed button
11591163 # we make a list of the buttons to later add the hardware pins to them
1160- label = _ ("Continuous" )
1161- rbt = Gtk .RadioButton (label = label )
1164+ rbt = self ._new_button_with_predefined_image (
1165+ name = _ ("Continuous" ),
1166+ size = (- 1 ,- 1 ),
1167+ image = self .widgets .img_continuous ,
1168+ radio_button = True
1169+ )
11621170 rbt .set_property ("name" ,"rbt_0" )
1171+ rbt .set_tooltip_text (_ ("Continuous jog" ))
11631172 rbt .connect ("pressed" , self ._jog_increment_changed )
11641173 self .widgets .vbtb_jog_incr .pack_start (rbt , True , True , 0 )
11651174 rbt .set_property ("draw_indicator" , False )
@@ -4921,6 +4930,7 @@ def _set_icon_theme(self, name):
49214930 # jog
49224931 ("img_rabbit_jog" , "jog_speed_fast" , 32 ),
49234932 ("img_turtle_jog" , "jog_speed_slow" , 32 ),
4933+ ("img_continuous" , "jog_continuous" , 24 ),
49244934 # fullscreen
49254935 ("img_fullsize_preview0_open" , "fullscreen_open" , 48 ),
49264936 ("img_fullsize_preview0_close" , "fullscreen_close" , 48 ),
0 commit comments