@@ -753,15 +753,15 @@ Widget_t* add_lv2_switch(Widget_t *w, Widget_t *p, int index, const char * label
753753static void draw_my_vswitch (void *w_, void * user_data) {
754754 Widget_t *wid = (Widget_t*)w_;
755755 X11_UI* ui = (X11_UI*)wid->parent_struct ;
756- const int x = wid->width * 0.2 ;
756+ const int x = wid->width * 0.125 ;
757757 const int y = wid->height * 0.2 ;
758- const int w = wid->width * 0.5 ;
758+ const int w = wid->width * 0.75 ;
759759 const int h = wid->height * 0.6 ;
760760 const int state = (int )adj_get_state (wid->adj );
761761
762762 const int centerW = w * 0.5 ;
763763 const int centerH = state ? centerW : h - centerW ;
764- const int offset = w * 0.2 ;
764+ const int offset = w * 0.21 ;
765765
766766 cairo_push_group (wid->crb );
767767
@@ -814,7 +814,7 @@ static void draw_my_vswitch(void *w_, void* user_data) {
814814 }
815815 cairo_set_font_size (wid->crb , wid->app ->small_font /wid->scale .ascale );
816816 cairo_text_extents (wid->crb ," Mix" , &extents);
817- cairo_move_to (wid->crb , (wid->width *0.45 )-(extents.width *0.5 ), 4 +(extents.height ));
817+ cairo_move_to (wid->crb , (wid->width *0.5 )-(extents.width *0.5 ), 4 +(extents.height ));
818818 cairo_show_text (wid->crb , " Mix" );
819819 cairo_new_path (wid->crb );
820820 /* * show label above the switch**/
@@ -825,7 +825,7 @@ static void draw_my_vswitch(void *w_, void* user_data) {
825825 }
826826 cairo_set_font_size (wid->crb , wid->app ->small_font /wid->scale .ascale );
827827 cairo_text_extents (wid->crb ,wid->label , &extents);
828- cairo_move_to (wid->crb , (wid->width *0.45 )-(extents.width *0.5 ), wid->height -(extents.height *0.8 ));
828+ cairo_move_to (wid->crb , (wid->width *0.5 )-(extents.width *0.5 ), wid->height -(extents.height *0.8 ));
829829 cairo_show_text (wid->crb , wid->label );
830830 cairo_new_path (wid->crb );
831831
0 commit comments